procmail
[Top] [All Lists]

RE: To: field handling Question.

1999-04-07 07:29:22
        Thanks for you reply.
        Please see below my vain attempts and results for ";;" handling, as
per you suggestions.

        I also have this following questions, please help if you know the
answer.
 
        I am trying to strip first line of body which gives the name of the
mailing list to which the processed mail should be send. So I strip out that
and use in my Bcc: list. But the problem happens when user sends an
attachment - since my Unix mail reader sometimes cat not read the document
type, mail body shows
"---------------------------------------------------------------------------
----------------------------------------------------------------
"This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
 
------ =_NextPart_000_01BE80FC.ADC85E7A
Content-Type: text/plain
 
sizar  <---- This is the mailing list I would like to extract"
----------------------------------------------------------------------------
-----------------------------------------------------------     
         Is it possible to handle both types cases without really calling an
external  script. Following is the recipe.
        :0
        * ^From:.*(david\.schuman|tapas\.banerjee)@ny\.email\.gs\.com
        * !^Subject:.*\<RE:
        * !^Subject:.*unsubscribe
        * B ?? ^\/.*
        {
             # extract subject from first line of body
             SUBJ="$MATCH"
         
             # Remove first line containing subject, from body
             :0 fbw
             | awk 'NR>1'
         
             #  Change BCC and save in a file,
             #  attach :; tag to To: field to prevent mail bounce
             :0:
             | (formail -A"Bcc: $SUBJ" \
             -I"To: =?iso-2022-jp?B?GyRCJDQ5WEZJJE4zJyQ1JF4kWBsoQg==?= :;" \
             -I"MIME-Version: 1.0" \
             -I"From:
=?iso-2022-jp?B?GyRCJTQhPCVrJUklXiVzISYlNSVDJS8lOUVqPy4bKEI=?= :;" ) >>
"$SUBJ"_mails
        }
          Thanks a lot for your help.
        - Tapas
-----Original Message-----
From: Philip Guenther [SMTP:guenther(_at_)gac(_dot_)edu]
Sent: Tuesday, April 06, 1999 5:08 PM
To:   Banerjee, Tapas
Subject:      Re: To: field handling Question. 


"Banerjee, Tapas" <Tapas(_dot_)Banerjee(_at_)gs(_dot_)com> writes:
    Please recall your following solution against my question:

    Sending mail works fine. I was happy to see recipient does not see
@gs.com extension 
    on Outlook. But I get the following warning message while sending
mail
    using sendmail.

    "=?iso-2022-jp?B?GyRCJDQ5WEZJJE4zJyQ1JF4kWBsoQg==?=:;... list:;
syntax illegal for recipient addresses".

You could try quoting the =?...?= block and see if it works then.

      "=?iso-2022-jp?B?GyRCJDQ5WEZJJE4zJyQ1JF4kWBsoQg==?=":;
        [Banerjee, Tapas]  TRIED BUT RESULTS WERE SAME. 

    I looked into the header of msg processed through procmail

    "X-Mailer: Internet Mail Service (5.0.1460.8)
    Content-Type: text/plain;
            charset="iso-2022-jp"
    Bcc: davinci
    To: =?iso-2022-jp?B?GyRCJDQ5WEZJJE4zJyQ1JF4kWBsoQg==?= :;"

It's not clear to me where those double quotes are coming from.  Are
you adding the first and last ones?  If so, don't -- you've already set
the block of text away from the preceeding text, so adding the quotes
just confuses the issue of what is in the message and what is
'wrapper'.

Assuming you did add them, so that the To: header had the value
        [Banerjee, Tapas]  - YES IT WAS MY TYPO 
      =?iso-2022-jp?B?GyRCJDQ5WEZJJE4zJyQ1JF4kWBsoQg==?= :;

then that is correct and valid, and the mail system is broken.  You
should figure out exactly which of the 'hops' is rejecting the address,
as that's the source of the problem.
        [Banerjee, Tapas]  - DO YOU KNOW WHAT COMMAND CAN BE USED TO FIND
OUT HOPS STATUS? 

Philip Guenther

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