I'm using fetchmail to download email, and using procmail for delivery as the mda.  I'd like them to be delivered in maildir format 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.HOSTNAMEIf 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.fetchmail config:set logfile /path/to/fetchmail.logset no bouncemailpoll imap.gmail.comprotocol imapusername USERpassword PASSWORDfetchallkeepsslmda /path/to/procmail -m /path/to/.procmailrcprocmail config:LOGFILE=$HOME/procmail.logVERBOSE=onDELIVERED=yesMAILDIR=$HOME/Mail/.DEFAULT=inbox/
How do you use procmail mda to deliver files to be read by mh?
email;procmail;fetchmail;maildir
Your DEFAULT=inbox/ says that mail should be delivered to a Maildir mailbox (with subdirectories cur, new and tmp). This mailbox is located in $HOME/Mail/. according to the MAILDIR variable.To deliver to an MH mailbox instead, you should set DEFAULT to inbox/. (note the dot at the end). MAILDIR can be set to $HOME/Mail.In short:The final mailbox path has / at the end: Maildir mailbox... has /. at the end: MH mailbox... has none of the above: Ordinary Unix mbox mailbox.See the procmailrc(5) manual.