Mail Archives: cygwin/2010/02/23/14:06:09
On Tue, Feb 23, 2010 at 11:49 AM, Gary wrote:
>> If I pipe one message into procmail with:
>>
>> =C2=A0 =C2=A0 =C2=A0 procmail -v -d tbaker <msg.mbox
>>
>> procmail reports:
>>
>> =C2=A0 =C2=A0 =C2=A0 Locking strategies: =C2=A0 =C2=A0 dotlocking, fcntl=
()
>> =C2=A0 =C2=A0 =C2=A0 Default rcfile: =C2=A0 =C2=A0 =C2=A0 =C2=A0 $HOME/.=
procmailrc
>> =C2=A0 =C2=A0 =C2=A0 Your system mailbox: =C2=A0 =C2=A0/var/spool/mail/T=
Baker
>>
>> and appends the message to the file /var/spool/mail/TBaker,
>> ignoring the recipe in $HOME/.procmailrc.
>
> Oh. Actually I thought procmail was not suppose to deliver when given -v
> =C2=A0 =C2=A0 =C2=A0 -v =C2=A0 Procmail =C2=A0will =C2=A0print its versio=
n number, display its compile time
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0configuration and exit. (from t=
he man page)
My mistake. It did just display and exit. The appended message
was indeed from the next command I executed (below).
>> This also does not work:
>>
>> =C2=A0 =C2=A0 =C2=A0 procmail -d tbaker <msg.mbox
>
> Can you be a bit more specific? Is anything added to the procmail log?
> You could also add VERBOSE=3Don on the command line for more
> info. http://pm-doc.sourceforge.net/pm-tips.html recommends
> =C2=A0 =C2=A0 =C2=A0LOGFILE =C2=A0 =C2=A0 =3D $PMSRC/pm.log
> =C2=A0 =C2=A0 =C2=A0LOGABSTRACT =3D "all"
> =C2=A0 =C2=A0 =C2=A0VERBOSE =C2=A0 =C2=A0 =3D "on"
> in the .procmailrc.
I have had logs set up all along, and have now made them verbose.
When I execute
=C2=A0 =C2=A0 =C2=A0 procmail -d tbaker <test.mbox
-- On the netbook, it gets correctly delivered by procmail and verbosely
described in the log.
-- On the desktop, the message gets appended to /var/spool/mail/TBaker,
and nothing is written into the log. None of the tests I have done
on the desktop have been recorded in the log. The same log
directory exists on both machines - I have been using the same
log filename for several years as the entire directory structure
got passed back and forth between the two machines.
Tom
>
> And you're sure you are running the correct procmail, i.e. there is no
> other procmail in your path before the one you are expecting to run?
> $ type -a procmail
> procmail is /usr/bin/procmail
> procmail is /bin/procmail
>
> --
> Problem reports: =C2=A0 =C2=A0 =C2=A0 http://cygwin.com/problems.html
> FAQ: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http:=
//cygwin.com/faq/
> Documentation: =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://cygwin.com/docs.html
> Unsubscribe info: =C2=A0 =C2=A0 =C2=A0http://cygwin.com/ml/#unsubscribe-s=
imple
>
>
--=20
Tom Baker <tbaker AT tbaker DOT de>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -