Index: /trunk/plugins/vcard_attachments/package.xml
===================================================================
--- /trunk/plugins/vcard_attachments/package.xml	(revision 4092)
+++ /trunk/plugins/vcard_attachments/package.xml	(revision 4093)
@@ -20,9 +20,9 @@
 		<active>yes</active>
 	</lead>
-	<date></date>
-	<time></time>
+	<date>2010-10-14</date>
+	<time>19:00</time>
 	<version>
-		<release></release>
-		<api>2.0</api>
+		<release>3.0</release>
+		<api>3.0</api>
 	</version>
 	<stability>
@@ -33,4 +33,6 @@
 	<notes>
 - Exec contact_create hook when adding contact (#1486964)
+- Make icons skinable
+- Display vcard icon on messages list when message is of type vcard
     </notes>
 	<contents>
@@ -44,11 +46,18 @@
 				<tasks:replace from="@package_version@" to="version" type="package-info"/>
 			</file>
+			<file name="localization/cs_CZ.inc" role="data"></file>
 			<file name="localization/en_US.inc" role="data"></file>
 			<file name="localization/de_CH.inc" role="data"></file>
 			<file name="localization/de_DE.inc" role="data"></file>
+			<file name="localization/es_ES.inc" role="data"></file>
+			<file name="localization/et_EE.inc" role="data"></file>
+			<file name="localization/ja_JP.inc" role="data"></file>
+			<file name="localization/es_ES.inc" role="data"></file>
 			<file name="localization/pl_PL.inc" role="data"></file>
 			<file name="localization/ru_RU.inc" role="data"></file>
 			<file name="localization/sv_SE.inc" role="data"></file>
-			<file name="vcard_add_contact.png" role="data"></file>
+			<file name="localization/zh_TW.inc" role="data"></file>
+			<file name="skins/default/vcard_add_contact.png" role="data"></file>
+			<file name="skins/default/vcard.png" role="data"></file>
 		</dir>
 		<!-- / -->
Index: /trunk/plugins/vcard_attachments/vcard_attachments.php
===================================================================
--- /trunk/plugins/vcard_attachments/vcard_attachments.php	(revision 4092)
+++ /trunk/plugins/vcard_attachments/vcard_attachments.php	(revision 4093)
@@ -21,4 +21,9 @@
             $this->add_hook('message_load', array($this, 'message_load'));
             $this->add_hook('template_object_messagebody', array($this, 'html_output'));
+        }
+        else if (!$rcmail->output->framed && (!$rcmail->action || $rcmail->action == 'list')) {
+            $icon = 'plugins/vcard_attachments/' .$this->local_skin_path(). '/vcard.png';
+            $rcmail->output->set_env('vcard_icon', $icon);
+            $this->include_script('vcardattach.js');
         }
 
@@ -58,4 +63,5 @@
     {
         $attach_script = false;
+        $icon = 'plugins/vcard_attachments/' .$this->local_skin_path(). '/vcard_add_contact.png';
 
         foreach ($this->vcard_parts as $part) {
@@ -84,6 +90,5 @@
                         'onclick' => "return plugin_vcard_save_contact('".JQ($part.':'.$idx)."')",
                         'title' => $this->gettext('addvcardmsg')),
-                        html::img(array('src' => $this->url('vcard_add_contact.png'),
-                            'style' => "vertical-align:middle")))
+                        html::img(array('src' => $icon, 'style' => "vertical-align:middle")))
                     . ' ' . html::span(null, Q($display)));
             }
Index: /trunk/plugins/vcard_attachments/vcardattach.js
===================================================================
--- /trunk/plugins/vcard_attachments/vcardattach.js	(revision 4092)
+++ /trunk/plugins/vcard_attachments/vcardattach.js	(revision 4093)
@@ -10,2 +10,14 @@
   return false;
 }
+
+function plugin_vcard_insertrow(data)
+{
+  var ctype = data.row.ctype;
+  if (ctype == 'text/vcard' || ctype == 'text/x-vcard' || ctype == 'text/directory') {
+    $('#rcmrow'+data.uid+' > td.attachment').html('<img src="'+rcmail.env.vcard_icon+'" alt="">');
+  }
+}
+
+if (window.rcmail && rcmail.gui_objects.messagelist) {
+  rcmail.addEventListener('insertrow', function(data, evt) { plugin_vcard_insertrow(data); });
+}
