Author Topic: Attachments in the cloud  (Read 5680 times)

Offline anekdot

  • Newbie
  • *
  • Posts: 1
Attachments in the cloud
« on: May 22, 2018, 05:25:59 AM »
Good day all !
I write a plug-in which saves in a cloud (on the external or local server) of attachment if their size exceeds some value, e.g. about 20M. For a research of a possibility of writing I researched the program\steps\mail\sendmail.inc file from which I draw a conclusion that rouncube does not provide the events suitable for correct deleting / adding attachments to emails and also uses for compose of emails of PEAR:: Mail_mime which also has no methods for deleting attachments. Whether it is planned to use instead of PEAR:: Mail_mime any other framework which will allow to delete from the email of attachment or adding of any events allowing to manipulate correctly with attachments?
To completely compose the email in case of fire event 'message_ready' it seems to me the bad idea.
« Last Edit: May 22, 2018, 05:31:33 AM by anekdot »

Offline alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: Attachments in the cloud
« Reply #1 on: May 22, 2018, 05:38:25 AM »
Adding attachments is possible. Removing is not. We do not plan on replacing Mail_mime, but we could extend it with attachment deleting functionality. Create a pull request.