procmail
[Top] [All Lists]

Re: Moving from mbox to Maildir

2009-02-25 15:31:39
On Wed, Feb 25, 2009 at 01:09:54PM -0700, LuKreme wrote:

On 25-Feb-2009, at 10:10, Dallman Ross wrote:
formail -s procmail -m DEFAULT=/path/to/maildir/folder/ /dev/null < mbox 

That syntax doesn't appear to work as it returns a rcfile not found  
error.

Then you didn't do it right.  The /dev/null above is the rcfile.

================================================
   9:28pm [~/Mail] 15[0]> formail -s procmail -m DEFAULT=$HOME/Mail/testme/ 
/dev/null < kremels 
  
   9:29pm [~/Mail] 16[0]> ls -lR testme
  testme:
  total 12
  drwx------    2 dman     users        4096 Feb 25 21:29 cur
  drwx------    2 dman     users        4096 Feb 25 21:29 new
  drwx------    2 dman     users        4096 Feb 25 21:29 tmp
  
  testme/cur:
  total 0
  
  testme/new:
  total 8
  -rw-------    1 dman     users        5580 Feb 25 21:29 
1235593762.873_0.panix2.panix.com
  
  testme/tmp:
  total 0
================================================


I was messing about with something like this:

for i in `find Mail.mbox/ -type f `
do
DEFAULT=$HOME/Mail/$i/
formail +1 -fs procmail < $i
done

Testing it now to see how it does.  Then, of course, I have to clean all 
my .procmailrc and releated files, and then figure out how to move from 

You don't have to clean up anything if you use the command-line with
/dev/null as the designated rcfile.

Dallman
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail