I'm using fetchmail to download email, and using procmail for delivery as the mda. I'd like them to be delivered for use with mh, but procmail seems to deliver them in a manner that mh doesn't understand: I get subdirectories new/ cur/ and tmp/ with files in new/ named something like 1484079635.67044_0.HOSTNAME
If I rename these files to just integers and move them up one directory, mh will pick them up fine. I'd like to be able to do this automatically, as well as to maintain the sequence from the last fetchmail run.
set logfile /path/to/fetchmail.log set no bouncemail poll "imap.gmail.com" protocol imap username "USER" password "PASSWORD" fetchall keep ssl mda "/path/to/procmail -m /path/to/.procmailrc"
LOGFILE=$HOME/procmail.log VERBOSE=on DELIVERED=yes MAILDIR=$HOME/Mail/. DEFAULT=inbox/