roundcubemail/plugins/vcard_attachments/vcard_attachments.php
function message_load($p)
    {
        $this->message = $p['object'];

        // handle attachments vcard attachments
        foreach ((array)$this->message->attachments as $attachment) {
            if ($this->is_vcard($attachment)) {
                $this->vcard_parts[] = $attachment->mime_id;
            }
        }
        // the same with message bodies
        foreach ((array)$this->message->parts as $part) {
            if ($this->is_vcard($part)) {
                $this->vcard_parts[]  = $part->mime_id;
                $this->vcard_bodies[] = $part->mime_id;
            }
        }

        if ($this->vcard_parts) {
            $this->add_texts('localization');
        }
    }
function message_load($p)
    {
        $this->message = $p['object'];

        // handle attachments vcard attachments
        foreach ((array)$this->message->attachments as $attachment) {
            if ($this->is_vcard($attachment)) {
                $this->vcard_parts[] = $attachment->mime_id;
            }
        }
        // the same with message bodies
        foreach ((array)$this->message->parts as $part) {
            if ($this->is_vcard($part)) {
                $this->vcard_parts[]  = $part->mime_id;
                $this->vcard_bodies[] = $part->mime_id;
            }
        }

        if ($this->vcard_parts) {
            $this->add_texts('localization');
        }
    }
function message_load ( $ p ) { $ this -> message = $ p [ 'object' ] ; // handle attachments vcard attachments foreach ( ( array ) $ this -> message -> attachments as $ attachment ) { if ( $ this -> is_vcard ( $ attachment ) ) { $ this -> vcard_parts [ ] = $ attachment -> mime_id ; } } // the same with message bodies foreach ( ( array ) $ this -> message -> parts as $ part ) { if ( $ this -> is_vcard ( $ part ) ) { $ this -> vcard_parts [ ] = $ part -> mime_id ; $ this -> vcard_bodies [ ] = $ part -> mime_id ; } } if ( $ this -> vcard_parts ) { $ this -> add_texts ( 'localization' ) ; } }
Check message bodies and attachments for vcards
Check message bodies and attachments for vcards