Author Topic: Access Message Attachment  (Read 2734 times)

Offline mstorey

  • Newbie
  • *
  • Posts: 3
Access Message Attachment
« 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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: Access Message Attachment
« Reply #1 on: August 11, 2016, 02:06:48 AM »
They are in $MESSAGE->attachments
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦