procmail
[Top] [All Lists]

Re: Whole new question - procmail almost working

2006-06-19 21:59:52
Michelle Konzack schreef:
Robert Moskowitz:

    :0
    * ^(To|Cc|Bcc)(_dot_)*(_at_)fax(_dot_)htt-consult(_dot_)com
    /var/spool/asterfax/inbox/

Why do you use maildir for this which crates unneccesary
subdirectories?

The new, cur and tmp are all necessary, but they are implementation
details that are transparent: in normal circumstances you don't need to
know (or deal with) that they are there.

This is mentioned in the Dovecot-documentation:
"Maildir format is somewhat compatible with MH format. This is sometimes
a problem when people configure their procmail to deliver mails to
Maildir/new. This makes procmail create the messages in MH format, which
basically means that the file is called msg.inode_number. While this
appears to work first, after expunging messages from the maildir the
inodes are freed and will be reused later. This means that another file
with the same name may come to the maildir, which makes Dovecot think
that an expunged file reappeared into the mailbox and an error is
logged."


 Why not MH?

There are many reasons for not using MH-type delivery, like the
mentioned problem with the msg.inode_number naming system.
You can get arround that by setting the MSGPREFIX yourself, like to
"$YYYY$MM$DD_$HH$NN$SS_$$.", with the date- and time-values parsed from
the postmark line.

I am not sure that procmail uses msg.inode_number, see man procmailrc:
"procmail will use the next number it finds  available".

The advantage of operating on maildir-type delivery is that
(theoretically) it doesn't need locking. But read
http://en.wikipedia.org/wiki/Maildir aboout issues.

See also http://en.wikipedia.org/wiki/MH_Message_Handling_System

Nice article with further links:
http://libetpan.sourceforge.net/mailstorage.html


Have lunch and eat it too:

    MSGPREFIX = "$YYYY$MM$DD_$HH$NN$SS_$$."
    :0
    * Subject: Test MH/Maildir
    test/MH test/
That "test/MH" is an existing *directory*.

-- 
Groet, Ruud


____________________________________________________________
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