Roundcube Community Forum

 

Access Message Attachment

Started by mstorey, August 10, 2016, 12:49:41 AM

Previous topic - Next topic

mstorey

Hello All,
I'm putting together a simple plugin that allows the user to selectively use the data stores within the email and link it to clients, tasks, events, calendar etc.
At this point in time, I've succeeded in capturing header & body data via the methods below:

      $MESSAGE->headers->messageID;
      $MESSAGE->headers->uid;
      $MESSAGE->headers->subject;
      $MESSAGE->headers->size;
      $MESSAGE->headers->folder;
      $MESSAGE->headers->from;
      $MESSAGE->headers->to;
      $MESSAGE->headers->date;
      $MESSAGE->first_text_part();
      $MESSAGE->first_html_part();


Now I need to capture the attachments. :o

Would someone send me the code please. ;D
regards
Mark

JohnDoh

They are in $MESSAGE->attachments
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...