Re: Using Procmail
XRDLAB dixit:
> >
> As mentioned earlier, the mail is received on the spool
> correctly. But procmail does not seem to be doing its job.
>
> Well, here is something which might help in troubleshooting.
>
> 1. As soon as I dial-up and the ppp link is established, the root
> does not do a fetchmail. I do it as a normal user. Does it in any
> way affect the behaviour of fetchmail?
is .procmailrc in your user's home dir?
^^
> ***************** $HOME/.procmailrc ********************
>
> LOGFILE=$HOME/.maillog
> VERBOSE=no
> PATH=$PATH:/usr/local/bin:/usr/bin
> MAILDIR=$HOME/mail
>
> :0
> * ^TO.*debian-user-digest@.*
> debian-user
I don't know which header you expect to find under "To". I might be wrong,
but you might mean "To:"; also, the dot "." right after the @ sign... means
that procmail will look for a dot after the @ sign (which will not find, of
course); and just in case there's something else between debian-user-diges
and the @ sign, I would suggest to ommit @, thus:
* ^To:.*debian-user-digest*
debian-user
But sometimes the address won't be in the "To:" header, but in "From:", or
"Cc:"... so this is what I do:
* ^(To|From|Cc):.*debian-user-digest*
debian-user
Horacio.
Reply to: