Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8181

Re: Emails backup in python 3.2

References <itq4qa$31r$1@speranza.aioe.org>
Date 2011-06-22 00:20 -0400
Subject Re: Emails backup in python 3.2
From Michael Hrivnak <mhrivnak@hrivnak.org>
Newsgroups comp.lang.python
Message-ID <mailman.269.1308716455.1164.python-list@python.org> (permalink)

Show all headers | View raw


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.berlios.de/

Michael

On Tue, Jun 21, 2011 at 9:03 AM, TheSaint <nobody@nowhere.net.no> wrote:
> 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 which might not have any declared codec?
>
> As far as python moved into unicode, why doesn't it handle these undecoded
> bytes as it was with strings before?
>
> --
> goto /dev/null
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Emails backup in python 3.2 TheSaint <nobody@nowhere.net.no> - 2011-06-21 21:03 +0800
  Re: Emails backup in python 3.2 Michael Hrivnak <mhrivnak@hrivnak.org> - 2011-06-22 00:20 -0400
    Re: Emails backup in python 3.2 TheSaint <nobody@nowhere.net.no> - 2011-06-22 19:20 +0800

csiph-web