Procmail Maildir messages disappearing

June 26, 2007 [Tech]

Google-friendly title, no?

Executive summary:

In your ~/.procmailrc

MAILDIR=$HOME/Maildir - is BAD, whereas

MAILDIR=$HOME/Maildir/ - is good.

The slash at the end appears to tell procmail that this is a Maildir directory, rather than something else, elusive.

For a week my messages were appearing in $HOME/Maildir, but they were just in there with names like msg.zFS, instead of going into $HOME/Maildir/new and having a name like 1282544959.Q22432E173.192.0.54.2:1,T.

This meant they effectively disappeared, and I had a quiet, relaxing week.

Followed by a panicked and expletive-filled hour or so.

When I put the slash back, new messages started appearing in my Inbox again.

I was also able just to move the msg.zFS files into "new", and they appeared fine, which was nice.

Comments

Andy Balaam 2007-06-27

I feel much more comfortable now reality has been restored.

Charles Bailey 2007-06-26

I think you should have:
MAILDIR=$HOME/Maildir
and
DEFAULT=${MAILDIR}/

This specifies where your Maildir "tree" is, and that by default you want to deliver into that directory as a top level Maildir format folder.

Andy Balaam 2007-06-26

I’m not going to touch it ever again. It made me too frightened.

Charles Bailey 2007-06-26

OK, I admit it, perhaps I’m wrong. I’ve just checked my /etc/procmail.
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR

Andy Balaam 2007-06-26

Today truly is a special day.

Charles Bailey 2007-06-27

Right, in order not to be wrong I’ve changed it to this:

MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR/

and am so far suffering from no adverse affects.