Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: mstorey on August 10, 2016, 12:49:41 AM

Title: Access Message Attachment
Post by: mstorey on August 10, 2016, 12:49:41 AM
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
Title: Re: Access Message Attachment
Post by: JohnDoh on August 11, 2016, 02:06:48 AM
They are in $MESSAGE->attachments