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


Groups > comp.lang.python > #30300

Ordering of mailbox.mbox contents?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-2.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python.list@tim.thechases.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'append': 0.07; 'calls.': 0.07; 'missed': 0.09; 'added.': 0.09; 'source,': 0.15; '-tkc': 0.16; 'deletions': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'message-id:@tim.thechases.com': 0.16; 'received:70.251': 0.16; 'received:dsl.rcsntx.swbell.net': 0.16; 'received:rcsntx.swbell.net': 0.16; 'received:swbell.net': 0.16; 'thanks,': 0.18; 'trying': 0.21; "i'd": 0.22; 'header:User- Agent:1': 0.26; '[1]': 0.27; "i'm": 0.29; 'code': 0.31; 'url:python': 0.32; 'file': 0.32; 'to:addr:python-list': 0.33; 'consistent': 0.35; 'subject:?': 0.35; 'url:org': 0.36; 'url:library': 0.36; 'keeps': 0.37; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'end': 0.40; 'remove': 0.61; 'received:50.22': 0.84; 'to:name:python': 0.84
Date Thu, 27 Sep 2012 10:59:06 -0500
From Tim Chase <python.list@tim.thechases.com>
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16
MIME-Version 1.0
To Python <python-list@python.org>
Subject Ordering of mailbox.mbox contents?
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - boston.accountservergroup.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - tim.thechases.com
X-Source
X-Source-Args
X-Source-Dir
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.1490.1348761486.27098.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1348761486 news.xs4all.nl 6954 [2001:888:2000:d::a6]:34386
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30300

Show key headers only | View raw


Reading through the docs[1] and the source, I'm trying to discern if
there's any guarantee that the contents of a mbox file remain in a
consistent ordering across add/delete calls.

As best I can tell from the source, it _looks_ like the code keeps
an existing file in the same order, deletions remove without
changing the order, and additions append at the end of the file in
the order they're added.  That's what I'd expect.

Is this accurate, or have I missed anything?

Thanks,

-tkc


[1]
http://docs.python.org/library/mailbox.html#mbox

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


Thread

Ordering of mailbox.mbox contents? Tim Chase <python.list@tim.thechases.com> - 2012-09-27 10:59 -0500

csiph-web