Changeset 3892 in subversion


Ignore:
Timestamp:
Aug 12, 2010 3:11:28 AM (3 years ago)
Author:
alec
Message:
  • add message_part_structure hook also for text parts of mixed messages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_message.php

    r3873 r3892  
    394394                    $part_mimetype == 'message/delivery-status' || $part_mimetype == 'message/disposition-notification' 
    395395                ) { 
     396                    // Allow plugins to handle also this part 
     397                    $plugin = $this->app->plugins->exec_hook('message_part_structure', 
     398                        array('object' => $this, 'structure' => $mail_part, 
     399                            'mimetype' => $part_mimetype, 'recursive' => true)); 
     400 
     401                    if ($plugin['abort']) 
     402                        continue; 
     403 
     404                    $mail_part = $plugin['structure']; 
     405                    list($primary_type, $secondary_type) = explode('/', $plugin['mimetype']); 
     406 
    396407                    // add text part if it matches the prefs 
    397408                    if (!$this->parse_alternative || 
Note: See TracChangeset for help on using the changeset viewer.