ietf-822
[Top] [All Lists]

Re: MIME boundary strings

2002-08-22 05:46:38

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 22 August 2002 13:20, Arnt Gulbrandsen wrote:
That's one possible strategy. There are three that I know of:

a) if using quoted-printable, quote something.
b) if using format=flowed, rewrap differently
c) if nothing else helps, use base64 for that body-part

Basically, the boundary strings should be treated like "From " or
".". A good MUA avoids those strings at the beginnings of lines. IMO,
avoiding n strings isn't harder than avoiding 2.
<snip>

n strings? Just include '-' in the "From ", "." list.

But base64 and qp encoded body parts are no problem, since you just need 
to include "=_" in the boundary string, which cannot be part of a qp or 
b64 encoded stream (from rfc2046 ;-)

For 7bit or 8bit, you need to actually do something, though, if you want 
to make it perfect. But IMO,
  "=_" + base64encode( time(0) rand() rand() ) 
(ie. a time_t followed by a 64bit random number) is reasonable enough.

Marc

- -- 
Mutig warf sich die kleine Überwachungskamera zwischen Täter und Opfer!
                                        --Rena Tangens / FoeBuD e.V.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9ZN0T3oWD+L2/6DgRAlKQAJ9e07Dr9zqSnZ9KSKcaKrORXYdXLgCgjL5d
bLe5JsBa+PKou2UQ98uIIjE=
=v/r7
-----END PGP SIGNATURE-----


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