procmail recipe for cctalk -- was -- Re: PC floppy disk sets avaialble free

Grant Taylor cctalk at gtaylor.tnetconsulting.net
Tue Aug 10 11:34:56 CDT 2021


Hi Christian,

Thank you for sharing your procmail recipe.  Like all good recipes, I 
have taken ideas from it to adapt ~> augment my own.

# cctalk - List-ID
:0 E
* List-Id: .*<cctalk.classiccmp.org>
{
    :0 Whc: .maildir/.Mail\ Lists.cctalk/procmail.lock
    |/usr/bin/formail -D 4096 .maildir/.Mail\ 
Lists.cctalk/formail.message-id.cache
    :0 a:
    .maildir/.Mail\ Lists.cctalk/duplicates.mbox
    CCTALKFROM=`formail -czxReply-To: | cut -f1 -d, | sed -e 's/\"/\\\"/g'`
    :0 fB
    |/usr/bin/formail -fb -i "List-Post: <mailto:cctalk 
<cctalk at classiccmp.org>>" -R Reply-To: Old-Reply-To: -i "From: $CCTALKFROM"
    :0
    .maildir/.Mail\ Lists.cctalk/
}

On 8/10/21 12:23 AM, Christian Corti wrote:
> That's why I have a procmail rule that fixes that:
> 
> REPLYTO_=`formail -cXReply-To: | cut -d',' -f1 | sed -e 's/Reply-To: //' 
> | sed -e 's/\"/\\\"/g'`

Aside:  You can remove use "-x" to extract the header without the 
(Reply-To:) header.  You can use "-z" to remove the space between the 
(Reply-To:) header and it's value.  Thus eliminating the need for the 
first sed.



-- 
Grant. . . .
unix || die


More information about the cctech mailing list