procmail
[Top] [All Lists]

RE: Integrating procmail, zmailer and cyrus IMAP

2003-03-07 18:18:41

Well I tried both incarnations until I was blue in the face, but it won't
pipe the second (well, third actually) command. I get this with sed:

 Subject: test
  Folder: sed {/^From /d;} | /usr/cyrus/bin/deliver -a tlichti -q -m u
852
sed: invalid option -- a
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be
executed
      --help     display this help and exit
  -V, --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

E-mail bug reports to: bug-gnu-utils(_at_)gnu(_dot_)org .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.

And this with formail:

 Subject: test
  Folder: formail -I"From " | /usr/cyrus/bin/deliver -a tlichti -q -m
852
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 ...]]
 
It seems in both cases the last pipe symbol is not being processed
correctly. Is this a zmailer problem or a procmail problem? I guess I could
just shell out to a script that does them both, but it seems kind of silly
to have to do that.

Thanks anyway for the help, it's close...

Tom

-----Original Message-----
From: Dallman Ross
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Sent: 3/7/2003 6:13 PM
Subject: Re: Integrating procmail, zmailer and cyrus IMAP

On Fri, Mar 07, 2003 at 02:52:50PM -0800, Bart Schaefer wrote:

IMAP="sed '1{/^From /d;}' | $DELIVERMAIL -a $USER -q -m user.$USER"

Or use formail, since it's cheaper.

IMAP="formail -I"From " | $DELIVERMAIL -a $LOGNAME -q -m user.$LOGNAME"

-- 
dman

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail