delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/23/14:06:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20100223164927.GA212@mimosa.garydjones.name>
References: <3a8528891002220612q63d1ee8fxc69140f9b41685c5 AT mail DOT gmail DOT com> <20100222220208 DOT GA1308 AT tishler DOT net> <3a8528891002221452h48008b49t2a17aa42a97ee5e AT mail DOT gmail DOT com> <20100223021729 DOT GA6116 AT tishler DOT net> <3a8528891002221948k38c0cc7ei24a4822a86803df6 AT mail DOT gmail DOT com> <20100223131352 DOT GA4172 AT tishler DOT net> <3a8528891002230733x644a3bc1na91ddccacafb2e41 AT mail DOT gmail DOT com> <20100223164927 DOT GA212 AT mimosa DOT garydjones DOT name>
Date: Tue, 23 Feb 2010 14:05:52 -0500
Message-ID: <3a8528891002231105g236a3178j1ffb50a3c4f39c95@mail.gmail.com>
Subject: Re: Fetchmail call to procmail no longer works under Cygwin 1.7.1-1
From: Thomas Baker <thomasbaker49 AT googlemail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019