Pop3 autosave attachment.

P

p-nut

newbie here needing some help.
Is there a way to set up a script that will check a pop3 account and
autosave the file attachments to a folder specified?

The thing is:
I have 1 single email account that will always have emails with nothing but
emails with attachments.

Since there will be thousands of these emails , I would like to be able to
check a couple times a day this account and have the script auto save all
attachments by their actual attached name to a specified folder.

Is this possible?
 
F

fishboy

newbie here needing some help.
Is there a way to set up a script that will check a pop3 account and
autosave the file attachments to a folder specified?

The thing is:
I have 1 single email account that will always have emails with nothing but
emails with attachments.

Since there will be thousands of these emails , I would like to be able to
check a couple times a day this account and have the script auto save all
attachments by their actual attached name to a specified folder.

Is this possible?

Little old, but doesn't look like anyone has responded. So here.

poplib will let you access the mailbox and get messages. although
poplib docs suggest you use imaplib if you can.

It also says look at the test in the source for poplib for a more
complete example

email module will let you handle message parsing and attachment

look at get_payload()

cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top