procmail
[Top] [All Lists]

Re: writing in mbox file after formail command.

2005-02-09 09:51:47
Am 2005-02-09 11:53:03, schrieb Mohamed Badri:
salut,

thanks for your reply,
I changed my line in /etc/procmailrc to :

  OTRE=`formail -x X-Original-To: | /bin/sed -e "s/@.*//" -e "s/\ //"`

This works:
        OTRE=`formail -zx X-Original-To: |sed s/@.*//`

but it still doens't work.
the original header is : 

================================================================================
From root(_at_)el38sr009(_dot_)momchy(_dot_)com  Wed Feb  9 11:38:34 2005
Return-Path: <root(_at_)el38sr009(_dot_)momchy(_dot_)com>
X-Original-To: 0251003403(_at_)mobile(_dot_)eliot(_dot_)com

I have tried it with:

michelle.konzack:~ > echo "0251003403(_at_)mobile(_dot_)eliot(_dot_)com" |sed 
s/@.*//
0251003403

The problem is probably in the sed command as without sed the variable

I use version 3.0.2-8 because 4.1.2-0 is broken.

=> merci pour le coup de main, mais j'aimerai bien comprendre pourquoi cette
commande ne marche pas.

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail