procmail
[Top] [All Lists]

Re: To: field handling Question.

1999-04-01 23:27:25
"Banerjee, Tapas" <Tapas(_dot_)Banerjee(_at_)gs(_dot_)com> writes:
-----Original Message-----
From:        Philip Guenther [SMTP:guenther(_at_)gac(_dot_)edu]
"Banerjee, Tapas" <Tapas(_dot_)Banerjee(_at_)gs(_dot_)com> writes:
   I'd like to do the following using proc mail/formail.
   
   1. Re-format "To:" field, but I don't want the mail to be send "To:
filed users.
       rather it will go the all the user present in Bcc: list.

       For example:

        Mail to the all user, forwarded by procmail should show
           To: "To the subscribers'"  - which is not valid address.

Right.  So make it a valid address: turn it into a 'group' address with
an empty group:

     To: The subscribers:;

      [Banerjee, Tapas],  Now I understand. 
      But the To: filed is in Japanese.
      On encoding it looks  like following.
      -I"To:=?iso-2022-jp?B?GyRCJDQ5WEZJJE4zJyQ1JF4kWBsoQg==?=" \ 
      So should I make
:=?iso-2022-jp?B?GyRCJDQ5WEZJJE4zJyQ1JF4kWBsoQg==?="  as
      empty group in /etc/aliases file?.

No.  The colon and the semi-colon are part of the address syntax and
must not be encoded.  The argument for formail would therefore look
something like:
        -I"To: =?iso-2022-jp?B?GyRCJDQ5WEZJJE4zJyQ1JF4kWBsoQg==?= :;"

You should not need to add anything to your /etc/aliases file.

If you included the ':;' in the encoded data, take them out again.  I
can't tell whether you did as I don't have access to the iso-2022-jp
encoding.


...
      2.  Any idea how to get rid of "@gs.com" on "From" and "To" field shown
           to the recipient?. Do I have to change "sendmail" configuration 
file,
              so that it does not attaches these.

Sendmail shouldn't add the @gs.com to the group address if you leave
the ':;' unencoded.  If you sendmail is older than version 8.7 you'll
need to upgrade, as group address handling was broken prior to then.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>