Re: Converting mbox to Maildir
Tyrin, * Tyrin R. Price [EMAIL PROTECTED] [2002-Mar-20 08:38 AKST]: Are any tools or guidance available for converting mailboxes from mbox to Maildir? Use mutt. Tag all the mbox messages (T.*), tag-save (;s=new_maildir) to the maildir mailbox. I think you need to create the maildir directory first, with the requisite tmp/ cur/ and new/ directories underneath. Chris -- Christopher S. Swingley phone: 907-474-2689 Computer Systems Manager email: [EMAIL PROTECTED] IARC -- Frontier Program GPG and PGP keys at my web page: University of Alaska Fairbankswww.frontier.iarc.uaf.edu/~cswingle
Re: Converting mbox to Maildir
On Wed, Mar 20, 2002 at 09:38:42AM -0800, Tyrin R. Price wrote: Are any tools or guidance available for converting mailboxes from mbox to Maildir? Mutt will do. 1. Create a maildir. 2. Open the mbox in mutt. 3. Tag all, save to Maildir. or if you want to batch it; http://www.qmail.org/mbox2maildir /magnus -- Words of the week: gao (tall) ai (short) http://x42.com/i/cn/pct/gao-ai.jpg
Re: Converting mbox to Maildir
On Wed, Mar 20, 2002 at 09:38:42AM -0800, Tyrin R. Price wrote: Are any tools or guidance available for converting mailboxes from mbox to Maildir? Can someone describe the mbox and Maildir formats for me? Is mbox the same as Unix format? -- John
Re: Converting mbox to Maildir
Chris -- ...and then Christopher Swingley said... % % * Tyrin R. Price [EMAIL PROTECTED] [2002-Mar-20 08:38 AKST]: ... % from mbox to Maildir? % % Use mutt. Tag all the mbox messages (T.*), tag-save (;s=new_maildir) Always good to use what's handy :-) % to the maildir mailbox. I think you need to create the maildir % directory first, with the requisite tmp/ cur/ and new/ directories % underneath. If you set mbox_type to maildir then when it creates a new box it will do it all for you; no need to create the dir and subdirs on your own (that works because mutt can then autodetect the format of the mailbox, even empty, and fill it). % % Chris % -- % Christopher S. Swingley phone: 907-474-2689 % Computer Systems Manager email: [EMAIL PROTECTED] % IARC -- Frontier Program GPG and PGP keys at my web page: % University of Alaska Fairbankswww.frontier.iarc.uaf.edu/~cswingle :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg25785/pgp0.pgp Description: PGP signature
Re: Converting mbox to Maildir
John -- ...and then John Poltorak said... % % On Wed, Mar 20, 2002 at 09:38:42AM -0800, Tyrin R. Price wrote: % Are any tools or guidance available for converting mailboxes % from mbox to Maildir? % % Can someone describe the mbox and Maildir formats for me? Yes. *wink* % % Is mbox the same as Unix format? Yes, mbox is the same mailbox format that you know from years and years ago. Each message is delimited by ^From_ (a newline, From, and a space) and so matching patterns in the message body are escaped by prepending a ''. Maildir is a qmail invention (AFAIK) and does not have locking issues because each message is in its own file named in a unique way. There's more at qmail.org and/or cr.yp.to if you're interested (before anyone else pipes up here). There are also MMDF and MH folders, and they are of the one-file-per variety but don't have the tmp, new, and cur subdirs of Maildir. % % -- % John HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg25787/pgp0.pgp Description: PGP signature
Re: Converting mbox to Maildir
begin quoting what David T-G said on Wed, Mar 20, 2002 at 01:08:56PM -0500: % Is mbox the same as Unix format? Yes, mbox is the same mailbox format that you know from years and years ago. Each message is delimited by ^From_ (a newline, From, and a Well, technically, I don't think UNIX has a mail format. UNIX doesn't do mail. *SENDMAIL* has a mail format, and it's mbox. Other common UNIX utilities recognize this format, but UNIX itself doesn't do mail. BYKT. :-) msg25790/pgp0.pgp Description: PGP signature
Re: Converting mbox to Maildir
Quoting Christopher Swingley [EMAIL PROTECTED]: Use mutt. Tag all the mbox messages (T.*), tag-save (;s=new_maildir) to the maildir mailbox. I think you need to create the maildir directory first, with the requisite tmp/ cur/ and new/ directories underneath. Thanks, Chris. I am using exim, fetchmail (running a global rc file in daemon mode), and procmail. From what I've read online I can remove the trailing : (for file locking) and just add a / to the destination in my procmail recipe to deliver mail in Maildir format. Is this correct? So I just use your tip above, change my muttrc to use Maildir type mailboxes, change my procmail recipes and I should be good to go, right? Resent-Date: Wed, 20 Mar 2002 10:29:39 -0800 (PST) Resent-From: [EMAIL PROTECTED] Resent-To: [EMAIL PROTECTED] Resent-Message-ID: [EMAIL PROTECTED] Quoting Christopher Swingley [EMAIL PROTECTED]: Use mutt. Tag all the mbox messages (T.*), tag-save (;s=new_maildir) to the maildir mailbox. I think you need to create the maildir directory first, with the requisite tmp/ cur/ and new/ directories underneath. Thanks, Chris. I am using exim, fetchmail (running a global rc file in daemon mode), and procmail. From what I've read online I can remove the trailing : (for file locking) and just add a / to the destination in my procmail recipe to deliver mail in Maildir format. Is this correct? So I just use your tip above, change my muttrc to use Maildir type mailboxes, change my procmail recipes and I should be good to go, right?
Re: Converting mbox to Maildir
On 03-20-2002 at 13:02 EST, Shawn McMahon [EMAIL PROTECTED] wrote: *SENDMAIL* has a mail format, and it's mbox. Other common UNIX utilities recognize this format, but UNIX itself doesn't do mail. Local Delivery Agent handles that. Sendmail does not have a mail format. I run Sendmail and use Maildir (compliments of Procmail). Cheers, -- David Collantes - http://www.bus.ucf.edu/david/ College of Business Administration, University of Central Florida Common sense is the collection of prejudices acquired by age eighteen. smime.p7s Description: application/pkcs7-signature
Re: Converting mbox to Maildir
On Wed, Mar 20, 2002 at 01:21:08PM -0500, Shawn McMahon wrote: begin quoting what David T-G said on Wed, Mar 20, 2002 at 01:08:56PM -0500: % Is mbox the same as Unix format? Yes, mbox is the same mailbox format that you know from years and years ago. Each message is delimited by ^From_ (a newline, From, and a Well, technically, I don't think UNIX has a mail format. UNIX doesn't do mail. *SENDMAIL* has a mail format, and it's mbox. Other common UNIX utilities recognize this format, but UNIX itself doesn't do mail. well, if you want to be pickey, sendmail doesn't deal with mailboxes either. the MDA does, though which defined the format for the mbox, I'm not sure. I would believe it's a unix standard, part of the unix operating system, but can't back that up with facts. the mbox manpage does mention this, under history: The mbox format occured in Version 6 ATT Unix. A variant of this format was documented in RFC 976. :) -- Dan Boger [EMAIL PROTECTED] msg25798/pgp0.pgp Description: PGP signature
Re: Converting mbox to Maildir
At 13:08 -0500 20 Mar 2002, David T-G [EMAIL PROTECTED] wrote: There are also MMDF and MH folders, and they are of the one-file-per variety but don't have the tmp, new, and cur subdirs of Maildir. True for MH, but not MMDF. MMDF has all the messages in one file, like mbox, but uses \001\001\001\001\n as the separator rather than ^From_ . -- Aaron Schrab [EMAIL PROTECTED] http://www.schrab.com/aaron/ What kind of head of security would I be if I let people like me know things that I'm not supposed to know?-- Garibaldi
Re: Converting mbox to Maildir
Aaron, et al -- ...and then Aaron Schrab said... % % At 13:08 -0500 20 Mar 2002, David T-G [EMAIL PROTECTED] wrote: % There are also MMDF and MH folders, and they are of the one-file-per % variety but don't have the tmp, new, and cur subdirs of Maildir. % % True for MH, but not MMDF. MMDF has all the messages in one file, like Oh! % mbox, but uses \001\001\001\001\n as the separator rather than ^From_ . Thanks for the clarification. % % -- % Aaron Schrab [EMAIL PROTECTED] http://www.schrab.com/aaron/ % What kind of head of security would I be if I let people like me know % things that I'm not supposed to know?-- Garibaldi :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg25803/pgp0.pgp Description: PGP signature
Re: Converting mbox to Maildir
On Wed, Mar 20, 2002 at 01:21:08PM -0500, Shawn McMahon wrote: begin quoting what David T-G said on Wed, Mar 20, 2002 at 01:08:56PM -0500: % Is mbox the same as Unix format? Yes, mbox is the same mailbox format that you know from years and years ago. Each message is delimited by ^From_ (a newline, From, and a Well, technically, I don't think UNIX has a mail format. UNIX doesn't do mail. *SENDMAIL* has a mail format, and it's mbox. No, SENDMAIL does not have a mail format, it delivers either to a QUEUE directory or to a local delivery agent. BYKT. :-) -- John
Re: Converting mbox to Maildir
Le 20/03/02 à 17:57, John Poltorak écrivit: On Wed, Mar 20, 2002 at 09:38:42AM -0800, Tyrin R. Price wrote: Are any tools or guidance available for converting mailboxes from mbox to Maildir? Can someone describe the mbox and Maildir formats for me? I'm too tired to describe it myself now, and these man pages do that quite well already: http://www.qmail.org/man/man5/mbox.html http://www.qmail.org/man/man5/maildir.html In short: they do what their names suggest. Is mbox the same as Unix format? Yes. There are several flavours of mbox, though. Gerhard -- mail: gerhard at bigfoot dot de registered Linux user #64239 web:http://www.cs.fhm.edu/~ifw00065/OpenPGP public key id AD24C930 public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930 reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
Re: Converting mbox to Maildir
* Tyrin R. Price [EMAIL PROTECTED], 2002-03-20 18:38 -0500: I am using exim, fetchmail (running a global rc file in daemon mode), and procmail. From what I've read online I can remove the trailing : (for file locking) and just add a / to the destination in my procmail recipe to deliver mail in Maildir format. Is this correct? A little OT... here are the relevant parts from my /etc/exim.conf: # TRANSPORTS CONFIGURATION # maildir_delivery: driver = appendfile no_from_hack prefix = suffix = maildir_format directory = $home/Maildir create_directory address_directory: driver = appendfile no_from_hack prefix = suffix = maildir_format # DIRECTORS CONFIGURATION # real_local: prefix = real- driver = localuser # transport = local_delivery transport = maildir_delivery HTH -Andre msg25836/pgp0.pgp Description: PGP signature