| | |
| | | } |
| | | } |
| | | // the same with message bodies |
| | | foreach ((array)$this->message->parts as $idx => $part) { |
| | | foreach ((array)$this->message->parts as $part) { |
| | | if ($this->is_vcard($part)) { |
| | | $this->vcard_parts[] = $part->mime_id; |
| | | $this->vcard_bodies[] = $part->mime_id; |
| | |
| | | function html_output($p) |
| | | { |
| | | $attach_script = false; |
| | | $icon = 'plugins/vcard_attachments/' .$this->local_skin_path(). '/vcard_add_contact.png'; |
| | | |
| | | foreach ($this->vcard_parts as $part) { |
| | | $vcards = rcube_vcard::import($this->message->get_part_content($part, null, true)); |
| | |
| | | 'title' => $this->gettext('addvcardmsg'), |
| | | ), |
| | | html::span(null, rcube::Q($display))) |
| | | ); |
| | | ); |
| | | } |
| | | |
| | | $attach_script = true; |
| | |
| | | $mime_id = rcube_utils::get_input_value('_part', rcube_utils::INPUT_POST); |
| | | |
| | | $rcmail = rcmail::get_instance(); |
| | | $storage = $rcmail->get_storage(); |
| | | $storage->set_folder($mbox); |
| | | $message = new rcube_message($uid, $mbox); |
| | | |
| | | if ($uid && $mime_id) { |
| | | list($mime_id, $index) = explode(':', $mime_id); |
| | | $part = $storage->get_message_part($uid, $mime_id, null, null, null, true); |
| | | $part = $message->get_part_content($mime_id, null, true); |
| | | } |
| | | |
| | | $error_msg = $this->gettext('vcardsavefailed'); |