procmail
[Top] [All Lists]

Re: procmail cannot write to directories

2001-12-10 13:42:55
I am running cygwin, and am trying to get procmail working.

I have zero experience of combining cygwin and procmail, so take that
into account when considering my answer.

When I try to do this, procmail gives me all kinds of odd errors.  Here's
what procmail puts into stderr:

    ~/Mail$ cat testspool |procmail
    "rocmail: Error while writing to "/home/porter/.procmail/log
    "rocmail: Skipped "
    "rocmail: Skipped "
    "rocmail: Error while writing to "/home/porter/Mail/inbox
    "rocmail: Skipped "
    .lock"il: Lock failure on "/home/porter/Mail/inbox
    "rocmail: Error while writing to "/home/porter/Mail/inbox

See how there is a quote at the start of many of the lines?  Looks to me
like a classic CRLF versus LF line-end problem.  That quote is actually
(probably) at the end of the line, but preceded by a carriage-return
character.

Try using an editor that doesn't put carriage-return characters on the
ends of lines.

You may be able to work around the problem on the variable-assignment
lines by doing things like:

  PATH="/usr/bin:/bin"

and putting quotes around the value, but the CRs might still cause a
problem, and that isn't going to help with the actual recipe.

The 'skipped' messages are probably where it found a CR character that
it didn't understand.

Hope that helps,
Martin
-- 
Martin McCarthy                 /</                  PGP key available
    `Procmail Companion'        \>\  http://www.ancient-scotland.co.uk
     Addison Wesley             /</    http://www.ehabitat.demon.co.uk
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>