[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Converting between maildir and mbox



On Thu, 2001-12-20 at 20:05, Craig Dickson wrote:

> Or, if you already have procmail set up, just adjust it for the new
> format, then pipe your old mail into it. Actually, I'm not sure that
> will work with an mbox file as input, because procmail might prefer to
> be invoked once per message (?). But it definitely works when your
> source format is MH or maildir. I imagine with mbox as input, you could
> do a simple script using awk or perl to pipe each message individually
> though procmail. Though at that point, the MUA would be simpler, as long
> as it understands both formats (which may not be the case).

This is a bash script I picked up somewhere that will forward mboxes
through procmail, filling your new maildirs.

#! /bin/bash

formail -s procmail < $1

-- 
first impressions are bunk (unknown)



Reply to: