procmail
[Top] [All Lists]

Re: Need help

1997-01-06 17:17:10
Yossi Itzkovich <Yossi(_dot_)Itzkovich(_at_)ecitele(_dot_)com> writes:
I use procmail for a few months, but suddenly procmail just read the mail
and makes it disappear !!! the mail is disappeard from the mailbox, but
doesn't get anywhere !!!

I didn't change nothing in procmailrc !!

And in a previous message Yossi wrote:
In my "debugging" file I got:
procmail: Forcing lock on "~/.lockmail"
stty: : No such device or address
backup: Not a directory.
procmail: Terminating prematurely whilst waiting for a kernel-lock
From Asi.Sudai Thu Dec 19 12:34 IST 1996
 Folder: **Requeued**
625


Four suggestions:

1) Move the "stty" command from your .cshrc to your .login (assuming you
        use csh or tcsh).  Commands like "stty" that operate on terminals
        should only be run when it's a login shell.  Similarly, it looks
        like the startup file also tries to do something with a directory
        named "backup".  That should either be an absolute reference
        (e.g., a full pathname starting with a / or $HOME), or it should
        be moved to your .login.  Or both.

2) For efficiency's sake, and to avoid future problems in this line,
        put the line
                SHELL = /bin/sh
        at the top of your .procmailrc.

3) Procmail doesn't do tilde '~' expansion in filenames.  In you want
        to locate a file relative to your home directory, use $HOME
        instead of '~'.  That is, instead of your .procmail saying
        "~/.lockmail", it should say "$HOME/.lockmail"

4) The reason you're losing mail is that the script that is invoking
        procmail is failing to check procmail's return code.  If procmail
        doesn't return success, then something failed during procmail's
        run, and your script shouldn't delete the mail.  How is procmail
        being invoked on your system, via a cron job, or by hand?

Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Need help, Philip Guenther <=