On Sat, Oct 14, 2000 at 08:33:50AM -0300, Marco Shaw wrote:

Hi Marco,

Thanks for your response

> I'm sorry, but I don't understand what your ultimate result should be.  You
> want to run this from an HTML (CGI) page, or you want to expand on the
> footers, and maybe add a header as well?

Sorry for my poor explanation
I run a regular pop server.

Most of my users use Outlook Express and the format is mostly in html
so that they can use the local script Sinhala.

I want to add a footer to user's mail, mostly in html format,
but sometimes in Text format.

The format of Outlook Express is as below:

Outlook first defines boundary. (this is different in each message)
boundary="----=_NextPart_000_0120_01C033AD.8D13AE90"
----=_NextPart_000_0120_01C033AD.8D13AE90
message in text format 
----=_NextPart_000_0120_01C033AD.8D13AE90
message in html format.
</BODY></HTML>
----=_NextPart_000_0120_01C033AD.8D13AE90--


I need to add my footer to 2 places as shown below

boundary="----=_NextPart_000_0120_01C033AD.8D13AE90"
----=_NextPart_000_0120_01C033AD.8D13AE90
message in text format 
footer 1
----=_NextPart_000_0120_01C033AD.8D13AE90
message in html format
footer 2
</BODY></HTML>
----=_NextPart_000_0120_01C033AD.8D13AE90--  

(the last -- indicates end of message)

Thanks for you help.
Jacob

> > I see it like this:
> > 1 find value of boundary=" "
> >                in this case ----=_NextPart_000_0120_01C033AD.8D13AE90
> >    if "boundary=" is found
> >    then proceed to 2

If the expression boundary=" is found in the email message then it is in
HTML format 

> >    otherwise go to 10

If the expression boundary=" is not found then it is in Text format and the
normal footer should be added

This assumption might be wrong and I might have to change the conditions
as I learn more about the different formats of mail, but this is a fair
start as most users use Outlook Express 5.5 

> > 2 load value of boundary into a buffer " buf "
> > 3 find " buf "
> > 4 find " buf "
> > 5 insert "message1" before " buf "
> > 6 find </BODY></HTML>
> > 7 insert "message2" before </BODY></HTML>

> > 10 insert "message1"
> > end



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to