[sclug] procmail help

Tom Dawes-Gamble tmdg at tmdg.co.uk
Sun Mar 21 22:50:28 UTC 2004


Doesn't it always happen that way?  You ask he question and then you
find an answer.  :-)

I found that 

:0:
* ^Sender: listname-bounces at domain.org.uk
| sed -e s/bogus.dom.ain.domain.org.uk/listname.domain.org.uk/ >>
List_folder

So who know why it failed before.

Tom.

On Sun, 2004-03-21 at 20:50, Tom Dawes-Gamble wrote:
> OK you procmail gurus.
> 
> One of the mailing lists I subscribe to have the "List-Id:" header
> configured wrongly.  So when I use "Reply To List" in Evolution
> I get a bogus address.  I've told them but they know better and 
> insist it's configured correctly.
> 
> So I'd like to configure procmail to correct it for me.
> 
> I used to have 
> :0:
> * ^Sender: listname-bounces at domain.org.uk
> List_Folder
> 
> that put everything in to the folder OK.
> 
> I thought something like :-
> 
> :0:
> * ^Sender: listname-bounces at domain.org.uk
> | sed -e 's/List-Id: List name <bogus.dom.ain.domain.org.uk>/List-Id:
> List Name <listname.domain.org.uk>/' >> List_Folder
> 
> should do the trick but that just puts the mail in my normal inbox
> so it looks like the rule is not being triggered.
> 
> The sed line is on one line in the .procmailrc file.
> 
> So what is the magic to make it do what I want.
> 
> Tom.
-- 
main(int c,char **v){long x;while(--c){sscanf(*++v,"%li",&x);
printf("Decimal = %ld\nHex = 0x%lx\nOctal = 0%lo\n",x,x,x);}}  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.tmdg.co.uk/pipermail/sclug/attachments/20040321/538840d3/attachment.bin


More information about the Sclug mailing list