delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/25/11:32:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Newsgroups: gmane.os.cygwin
Subject: sed problem with procmail
Date: Mon, 25 Mar 2002 08:31:23 -0800
Lines: 39
Message-ID: <3C9F50DB.20605@DeFaria.com>
NNTP-Posting-Host: dsl-64-195-250-225.telocity.com
Mime-Version: 1.0
X-Trace: main.gmane.org 1017073897 27384 64.195.250.225 (25 Mar 2002 16:31:37 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Mon, 25 Mar 2002 16:31:37 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2
X-Accept-Language: en,ru
Note-from-DJ: This may be spam

I have procmail reciepes such as the following:

:0
* !^From:.*@<domain1>.com
* !^From:.*@<domain2>.com
{
# Fall through
}

:0 E
| formail -rf -I "X-Mailer: AD Spam Canceller" \
   -i "Subject: Your mail is suspected of being SPAM and has been filtered! (24)"
  | \
   cat - "$SPAMREPLY" | sendmail -t

Where <domain1> and <domain2> are domains that I filter out totally. $SPAMREPLY is defined to
point to a file and sendmail is setup to be exim.

Now the filtering works except I see the following in my procmail log:


 From <user>@<domain1>.com  Sun Mar 24 13:21:35 2002
  Subject: NO OTHER Spy/Security CD Like THIS
   Folder:  formail -rf -I "X-Mailer: AD Spam Canceller" \   -i "Subjec     1484
sed: -e expression #1, char 11: No previous regular expression

Hmmm... I didn't call sed at all here! Why's it complaining? Also, sometimes I get the following:

Usage: formail [-vbczfrktqY] [-D nnn idcache] [-p prefix] [-l folder]
         [-xXaAiIuU field] [-R ofield nfield]
    Or: formail [+nnn] [-nnn] [-bczfrktedqBY] [-D nnn idcache] [-p prefix]
         [-n [nnn]] [-m nnn] [-l folder] [-xXaAiIuU field] [-R ofield nfield]
         -s [prg [arg ...]]

But that *is* how I am calling formail. Again, any ideas as to why this is happening?

I know that these are more procmail questions than Cygwin questions except this whole setup was
transfered from my domain which was running FreeBSD and did not exhibit these problems.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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