En/na Jordi Moles Blanco ha escrit:
En/na Magnus Bäck ha escrit:
On Thu, March 5, 2009 10:13 am, Jordi Moles Blanco said:

En/na martijn.list ha escrit:

You are probably forgetting to convert the single dot (.) to dot-dot
(..)

See RFC 2821 section 4.5.2 Transparency
thanks for your suggestion, I'll give it a try. However, I think that
I've already tried this. As far as I can remember, the problem by
modifying the content of the message was that when a user used some kind
of signature, the checksum wouldn't match and users complain about the
body being altered. Does that make sense to you? Or may be it's only
that my implementation was buggy.

The extra dot is removed by the SMTP server so that the message remains
the same after transmission.

Hi,

thanks for the info. Now the filter seems to work properly.

I guess it was my fault the first time I tried this. I didn't keep that piece of code cause it wasn't working anyway... but it was defenetly buggy.

Thanks for your help.

Hi,

after your comments I thought I had "fixed" my filter and everything seemed to work fine. I only replaced \n.\n with \n..\n in the body of the message.

But now I've found out that when the message contains html code, it doesn't work properly.

If you look at the content of the message, by doing "cat" for example, you can see a line like this <br>.<br>, which is obvious for being HTML . However, i can't add the second dot properly. After trying several approaches I can only replace some of the dots there are in the message.
For example, if the body of the message is something like this:

**************

asdf*adsfa*sd
.
MAIL FROM: unremit...@vivalasvegas.com
RCPT TO: jo...@cdmon.com
DATA

prova, pro*va, prov*a sense quota
.

***************

it will only replace the first dot, but not the second one.

How can I replace the dot properly when the text has HTML code?

Thanks.

Reply via email to