OT: procmailrc question

jdow jdow at earthlink.net
Wed Jan 8 09:14:09 UTC 2014


On 2014/01/07 23:44, Cameron Simpson wrote:
> On 07Jan2014 23:14, Ranjan Maitra <maitra.mbox.ignored at inbox.com> wrote:
>>> Example (untested, needed adapting):
>>>
>>>    # Get rid of duplicates
>>>    :0 Wc
>>>    | sylfilter ...
>>>    :0 a
>>>    /dev/null
>>
>> So, I tried this, but without the .... (I guessed that you were
>> suggesting this for arguments, is this correct, and the default
>> versions are just fine for using sylfilter).
>>
>> Therefore, I put in this:
>>
>> :0 Wc
>> | /usr/local/bin/sylfilter
>> :0 a
>> $HOME/Mail/Junk/.
>>
>>
>> However, I still get the same error in my procmail.log file:
>>
>> No input file.
>
> The web page shows:
>
>    sylfilter ~/Mail/inbox/1234
>
> as the example to classify a message. So I believe you want:
>
>    :0 Wc
>    | /usr/local/bin/sylfilter /dev/stdin
>    :0 a
>    $HOME/Mail/Junk/.
>
> because the message will be in the standard input and sylfilter
> wants a filename.
>
> Cheers,


Shouldn't this simpler invocation work?

:0 Wc
| /usr/local/bin/sylfilter -

:0 a
$HOME/Mail/Junk

{^_^}


More information about the users mailing list