Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Pop3 autosave attachment.

Reply
Thread Tools

Pop3 autosave attachment.

 
 
p-nut
Guest
Posts: n/a
 
      05-26-2004
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?


 
Reply With Quote
 
 
 
 
fishboy
Guest
Posts: n/a
 
      06-04-2004
On Wed, 26 May 2004 03:33:15 GMT, "p-nut" <I-dont-gots->
wrote:

>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,
><{{{*>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autosave fields in GridView (ASP.NET 2.0 - using C# internal) RBM007 ASP .Net Web Controls 1 09-21-2006 09:53 AM
Build an autosave function on page? Groove ASP .Net 2 08-30-2006 06:15 PM
autosave everytime loops runs Shan Perl Misc 1 08-11-2006 10:27 PM
Fuji Finepix's autosave? Mexican George Digital Photography 8 03-17-2005 08:00 PM
Re: Multi-POP3 and only one inbox??? Matt O'Toole Firefox 0 06-22-2003 05:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57