Re: Emails backup in python 3.2

2011-06-22 Thread TheSaint
Michael Hrivnak wrote: > Do you have a special reason for wanting to implement > your own email storage? Learning python :) It seems very easy to get my mails with the poplib help. Usually I work with Kmail which imports mbox files. I'm not prone to set up a SMTP server on my PC. -- goto /dev/

Re: Emails backup in python 3.2

2011-06-21 Thread Michael Hrivnak
Why not use one of the many projects and products that are designed to store email? Do you have a special reason for wanting to implement your own email storage? I'm thinking that you can use fetchmail with your favorite mail store, and you won't need to write any code at all. http://fetchmail.b

Emails backup in python 3.2

2011-06-21 Thread TheSaint
Hello, I'm looking for an idea how to backup emails retrieved by poplib and save them into mailbox.mbox file. The problem is the received message which is a list of bytes streams, mailbox.mbox don't expect a list. What conversion should I do? A file type io.StringIO ? decoding every bytes stream