Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8181
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.shlink.de!news1.wobline.de!news.bcc.de!newsfeeder.ewetel.de!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <mhrivnak@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.031 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'retrieved': 0.05; 'python': 0.08; '21,': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'subject:python': 0.14; '/dev/null': 0.16; 'poplib': 0.16; 'streams,': 0.16; 'cc:addr:python-list': 0.17; 'tue,': 0.17; 'bytes': 0.19; 'header:In-Reply-To:1': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'code': 0.24; "doesn't": 0.25; 'expect': 0.25; 'url:mailman': 0.26; "i'm": 0.27; 'sender:addr:gmail.com': 0.28; 'message-id:@mail.gmail.com': 0.28; 'problem': 0.28; 'implement': 0.30; "won't": 0.30; 'cc:addr:python.org': 0.30; 'url:listinfo': 0.30; 'goto': 0.30; 'received:209.85.215': 0.30; 'unicode,': 0.30; 'michael': 0.32; 'wanting': 0.32; 'file.': 0.32; 'list': 0.33; 'list.': 0.33; 'file': 0.34; 'thinking': 0.34; 'all.': 0.35; 'do?': 0.35; 'store': 0.35; 'idea': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'url:python': 0.38; 'hello,': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'received:209': 0.39; 'your': 0.60; 'emails': 0.62; 'designed': 0.65; 'special': 0.66; 'store,': 0.67; 'email?': 0.69; 'products': 0.72; 'stream': 0.77; 'before?': 0.93; 'to:addr:nobody': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=6amTML55Wu4f55i6b0AikCD9hALW3sUnYJw6KzGm9Qk=; b=dSqR8WzsrSQ6PCCKUSd27xK565VuaMaOyXl/JAvC5Z/xONmRTdLLsKXxADCOJvUVj/ K2kYjv7d1yrKn5I/yKXlFmdBZzYxZzvYT+CQF1fec/SBizeSzoih2xwlF9S9gB3aX716 pV4NmWd4fYqCujHrODiClrtMFISyybmuUMZwQ= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=OEdEn8CFFwDoYQ69BhqjmTapshULQIViJNN14CJyqlD5Vh0nn5o0vsKSCvGgJXB14s B8eGEltA9AeLGOqB10nn0BEXPSwId64xefuPVUiwkCGaR9Tyz6PrgT+9FNmALKyMarhi 09oZoijeE97tF9e8u3i1Yx2NdNflwnw/Vx11U= |
| MIME-Version | 1.0 |
| Sender | mhrivnak@gmail.com |
| In-Reply-To | <itq4qa$31r$1@speranza.aioe.org> |
| References | <itq4qa$31r$1@speranza.aioe.org> |
| Date | Wed, 22 Jun 2011 00:20:54 -0400 |
| X-Google-Sender-Auth | Aj6vKdjO1vdhppPDlG74oJv0xbY |
| Subject | Re: Emails backup in python 3.2 |
| From | Michael Hrivnak <mhrivnak@hrivnak.org> |
| To | TheSaint <nobody@nowhere.net.no> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.269.1308716455.1164.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1308716455 news.xs4all.nl 49048 [::ffff:82.94.164.166]:36272 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8181 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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