[ANN] mbox: qimport patches from mailboxes

Peter Hosey boredzo at gmail.com
Mon Jan 5 16:57:15 CST 2009


On Jan 05, 2009, at 14:12:19, Patrick Mézard wrote:
> Some of you might be interested in the mbox extension here:
>
>    http://www.bitbucket.org/pmezard/hgmbox/
>
> It adds an "mimport" command which reads from one or more mbox  
> files, extract patch groups and let you qimport them interactively.  
> I have only tested it against Thunderbird mailbox files but it  
> should be easy to extend support to whatever python mailbox module  
> can parse.

Apple Mail on the Mac can export mbox files, too, although only from a  
mailbox/folder and not one message at a time.

So here's how you can export a single message to an mbox file in Mail:

1. Create a folder. I named mine “Patch staging”.
2. Hold down Option (Alt on PC keyboards) and drag the message to the  
folder.
3. View the folder and choose “Archive Mailbox” from the Mailbox  
menu.
4. Choose where to save it.

It shouldn't take long for Mail to save the mailbox. It will appear as  
a folder containing two files; one is named “mbox” and is the one  
you want to mimport from, and the other is named  
“table_of_contents”.




More information about the Mercurial mailing list