Chen Shiyuan <csy(_at_)hjc(_dot_)edu(_dot_)sg> writes:
> >
> > If you really need the message filenames in the maildir to be on
> > the
> > time.pid.host format, I have a maildir shell utility you could
> > try. Procmail can use it to deliver all your mail like this:
> >
> > :0 W
> > | maildir deliver $HOME/Maildir
> >
> > EXITCODE=$?
> > HOST
>
> Thanks for the file. I tried it out and noticed that the above does
> not create the $HOME/Maildir if it does not exist and hence
> "maildir deliver" will fail because it tries to chdir to
> $HOME/Maildir directly.
>
> Do you have any idea how the above can be changed to make it create
> the $HOME/Maildir first?
I suppose the easiest thing to do would be for me to just make the
`maildir' utility create the maildir if it did not exist. It was a
councious design decision to make it fail in this case, but thinking
about it again I think maybe this was wrong.
As a temporary work-around, you could have procmail call
`maildir create' first. In /etc/procmailrc for example:
DROPPRIVS = yes
:0 W
| maildir create $HOME/Maildir; maildir deliver $HOME/Maildir
EXITCODE=$?
HOST
The DROPPRIVS assignment seems neccesary here to make procmail
run the delivery programs as the receiving users uid.
--
Gjermund Sorseth
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail