How do you use procmail mda to deliver files to be read by mh?
1
vote
2
answers
2580
views
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.
fetchmail config:
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"
procmail config:
LOGFILE=$HOME/procmail.log
VERBOSE=on
DELIVERED=yes
MAILDIR=$HOME/Mail/.
DEFAULT=inbox/
Asked by Angelo
(2022 rep)
Jan 10, 2017, 08:51 PM
Last activity: Apr 18, 2018, 08:00 PM
Last activity: Apr 18, 2018, 08:00 PM