[Mailman-Users] merging 2 mbox files

Mark Sapiro mark at msapiro.net
Sat Mar 22 16:13:25 CET 2008


Christopher X. Candreva wrote:
> On Fri, 21 Mar 2008, Mark Heer wrote:
> 
>> reproduced the file just as I had concatenated it. Is there a way to merge 
>> 2 same list mboxes into 1 properly sequenced mbox?
> 
> If this is a one-time thing for the transition, you could load them into a 
> mail program, move all the messages to a single folder, sort the folder 
> by date, then save all to another folder again. I've done this with Pine. 


I hacked a crude script to do the merge. It needs more work to become a 
really useful tool such as a switch to choose between the UnixMailbox 
(more strict From_ recognition) and PortableUnixMailbox (loose From_ 
recognition) classes and a switch to choose whether Date: or 
X-List-Received-Date: is the preferred merge key, but I have attached it 
in case it may be useful.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mbmerge
Url: http://mail.python.org/pipermail/mailman-users/attachments/20080322/80455064/attachment.txt 


More information about the Mailman-Users mailing list