This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: forwarding of announcements disabled?


On Thu, 2 Sep 2004, Brian Ford wrote:

> Should I simply add a -c to the formail subject extraction?  Other ideas?

This is just a follow up to close this issue.  It looks like:

http://www.cygwin.com/cgi-bin/get-raw-msg?listname=cygwin-announce&date=2004-10&msgid=87brfhnsfq.fsf%40vzell-de.de.oracle.com
http://www.cygwin.com/cgi-bin/get-raw-msg?listname=cygwin&date=2004-10&msgid=200410051441.i95EfHa23419%40esds.vss.fsi.com

amoung others probably, confirms the fix described above worked.  It does
appear to add an extra space in the subject where the newline was, though
(Library for generating...).  If anyone knows how to fix that, please let
me know.  Thanks.

Old context follows:

> On Mon, 23 Aug 2004, Brian Ford wrote:
> > On Mon, 23 Aug 2004, Andreas Seidl wrote:
> > > It seems mails are no longer forwarded (and prefixed with
> > > "[ANNOUNCEMENT]") from the cygwin-announce list to the cygwin list
> > > anymore. So I have to send mails to both lists?
> >
> > I looks like something in your message confused the procmail recipe and
> > it sent it back to cygwin-announce again.  I'll look into it as soon as I
> > have time, but I'm swamped right now.
> >
> > This is working for the majority of announce messages, and the recipe is
> > exactly CGF's old one.
>
> CGF notified me that fowarding another of your announcements failed in
> the same manner.  I took a closer look and found his procmail recipe is
> failing for subjects that contain embedded newlines.  This has happened
> four times since I took over the forwarding; three of which were yours
> :-(.
[snip references]
> I'm afraid I need some help because I can't see how to fix this.  I'm far
> from a procmail guru.
>
> Here is the recipe snippet:
>
> :0
> * ^TO_cygwin-announce
> {
>     SUBJECT=`formail -xSubject:`
>     FROM0=`formail -X'From '`
>     FROM1=`formail -X'From:'`
>
>     :0fW
>     | formail -I '' \
>         -I"$FROM0" \
>         -I"$FROM1" \
>         -I'To: cygwin-AT-cygwin-DOT-com' \
>         -I"Subject: [ANNOUNCEMENT]$SUBJECT" \
>         -I'Reply-To: cygwin-AT-cygwin-DOT-com'
>
>     :0
>     !cygwin-AT-cygwin-DOT-com
> }
>
> and the applicable verbose procmail log snippet:
>
> procmail: Executing "formail,-xSubject:"
> procmail: Assigning "SUBJECT= Updated: TeXmacs-1.0.4-4: A scientific wysiwyg Editor and Interface
>  for Computer Algebra Systems"
> procmail: Executing "formail,-XFrom "
> procmail: Assigning "FROM0=From
> cygwin-announce-return-1243-ford=vss-DOT-fsi-DOT-com-AT-cygwin-DOT-com  Thu Sep  2 12:59:48 2004" procmail: Executing "formail,-XFrom:"
> procmail: Assigning "FROM1=From: Andreas Seidl <seidlcw-AT-gmx-DOT-net>"
> procmail: Executing " formail -I '' \
>             -I"$FROM0" \
>             -I"$FROM1" \
>             -I'To: cygwin-AT-cygwin-DOT-com' \
>             -I"Subject: [ANNOUNCEMENT]$SUBJECT" \
>             -I'Reply-To: cygwin-AT-cygwin-DOT-com'"
> Unmatched ".
> procmail: Error while writing to " formail -I '' \
>             -I"$FROM0" \
>             -I"$FROM1" \
>             -I'To: cygwin-AT-cygwin-DOT-com' \
>             -I"Subject: [ANNOUNCEMENT]$SUBJECT" \
>             -I'Reply-To: cygwin-AT-cygwin-DOT-com'"
> procmail: Rescue of unfiltered data succeeded

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]