r/pythonhelp • u/capsload • Jul 24 '22
Save GMAIL Attachments (images) on the Linux Server
Hello,
i want to receive Emails (GMAIL) on my Server.
The Mails have Image-Attachments in it. The Attachments should be saved in my folder /var/www/mail/.
Now the clue:
I send image to the following email account using the gmail filter:
(its always the same account [email protected] but its "filtered" with the +food +flowers2 etc.)
The Script should save the files then in filtered-folders:
/var/www/mail/user1/image1.jpg
/var/www/mail/flowers2/image1.jpg
/var/www/mail/food/image1.jpg
2
Upvotes
2
u/CaptainKangaroo33 Jul 24 '22
I do not know the answer. But I want to!