[EMAIL PROTECTED] writes:
> Hi Harry Putnam
>
> This was a very good tutorial.
> I was not the person asking but anyway thank you very much for that.
>
> I have a similar problem but a little bit different,
> and wonder if awk can be used for that too.
>
> I am presently trying to learn perl to do the job with
> as I think it will be useful for me later on.
>
> What I need to do is to add a footer in my outgoing email.
> It has to be placed at different places in the file depending whether it
> is in html format or in text/plain format.
> Please have a look at a cut from the email below.
>
> In simple terms:
>
> Find string `boundary"`
> put string `----=_NextPart_001_004B_01C08570.D30AB6E0` into "$variable"
> find next "$variable" # skip this one
> find next "$variable" # skip this one
> replace "$variable" with xxxxxx+"$variable"
> write balance of file to outputfile.
>
> Your help is much appriciated
>
> Best regards
> Mettavihari
> Sri Lanka.
>
>
> cut from an email
> --------------------------------------
> Content-Type: multipart/related;
> type="multipart/alternative";
> boundary="----=_NextPart_000_004A_01C08570.D30AB6E0"
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook Express 5.50.3825.400
> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.3825.400
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_004A_01C08570.D30AB6E0
> Content-Type: multipart/alternative;
> boundary="----=_NextPart_001_004B_01C08570.D30AB6E0"
>
>
> ------=_NextPart_001_004B_01C08570.D30AB6E0
> Content-Type: text/plain;
> charset="Windows-1252"
> -----------------------------------------------------
Sorry, wasn't able to understand your requirements
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list