[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: Bug#2394: kmail doesn't handle period escapes properly (SMTP and POP)
From:       Malte.Starostik () t-online ! de (Malte Starostik)
Date:       2000-11-01 11:54:17
[Download RAW message or body]

Am Mittwoch,  1. November 2000 12:34 schrieb Michael Haeckel:
> On Wednesday,  1. November 2000 10:43, Malte Starostik wrote:
> > The next line was composed with exactly one period at the beginning of
> > the line and nothing else:
> > ..
> > Now, two periods:
> > ..
> > And here's a real life example I hit recently (quoting from a sh script)
> > There is only one period in what I typed:
> > .. /etc/rc.d/init.d/functions
> >
> > This is the conversation to my local sendmail (over SMTP) for a test
> > mail, to avoid the effect here, I indented all lines:
>
> Thanks, I tested with quoted-printable and for some reason the first dot in
> a line is escaped there.
>
> Now it should also work correctely for SMTP. For sendmail I worked around
> the problem by converting a line containing only a dot to ". " since I
> don't know how to do that otherwise.
According to RFC 821 quite simple:

(from section 4.5.2)
            1. Before sending a line of mail text the sender-SMTP checks
            the first character of the line.  If it is a period, one
            additional period is inserted at the beginning of the line.

            2. When a line of mail text is received by the receiver-SMTP
            it checks the line.  If the line is composed of a single
            period it is the end of mail.  If the first character is a
            period and there are other characters on the line, the first
            character is deleted.

So I think you're calling for trouble if you just add a space as the leading 
period will most likely be removed (2).
The problem was, that for some reason two periods were correctly converted to 
three in my example while one period was strangely also converted to three 
and not two as it should be.
-Malte
_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic