You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Jamesmail <Ja...@jamesmail.dnsalias.net> on 2010/02/20 19:40:13 UTC

"RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Good day.

My MUA began fetching only one line after I upgraded to 3.0-M1 Trunk.

Upon investagation, I discovered during a telnet session with the POP3 server that when the"RETR" command is entered only one line is retrieved.

"TOP" works fine, though.

To reproduce, at a console session:
----------------------------------------------------------------------
# telnet [POPSERVER] [PORT]
Trying [POPSERVER IP NO.]...
Connected to [POPSERVER IP NO.].
Escape character is '^]'.
+OK [SERVERNAME]. POP3 server (JAMES POP3 Server @@VERSION@@) ready
USER [USERNAME]
+OK 
PASS [PASSWORD]
+OK Welcome [USERNAME]
STAT
+OK 1 742
RETR 1
+OK Message follows
[ONLY ONE LINE IS RETRIEVED]
TOP 1 10000
+OK Message follows
[FULL MESSAGE IS RETRIEVED]
----------------------------------------------------------------------

Any ideas?

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: "RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Posted by Norman Maurer <no...@apache.org>.
Nah....

Bugreports helps us to make the software better, so feel free to
report bugs any time

thank you
Norman

2010/2/22, Jamesmail <Ja...@jamesmail.dnsalias.net>:
> On Mon, 22 Feb 2010 15:06:30 +0100
> Norman Maurer <no...@apache.org> wrote:
>
>> Fixed... Hope this was the last one :/
>>
>>  ...
>
> Even if it isn't, I won't bother you for at least a week.
>
> Thanks a million!
>
> Regards.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: "RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Posted by Jamesmail <Ja...@jamesmail.dnsalias.net>.
On Mon, 22 Feb 2010 15:06:30 +0100
Norman Maurer <no...@apache.org> wrote:

> Fixed... Hope this was the last one :/
> 
>  ...

Even if it isn't, I won't bother you for at least a week.

Thanks a million!

Regards.

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: "RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Posted by Norman Maurer <no...@apache.org>.
Fixed... Hope this was the last one :/

Thx,
Norman

2010/2/22 Norman Maurer <no...@apache.org>:
> Sigh....  I will have a look
>
> Bye Norman
>
>
> 2010/2/22, Jamesmail <Ja...@jamesmail.dnsalias.net>:
>> On Sun, 21 Feb 2010 18:56:09 +0100
>> Norman Maurer <no...@googlemail.com> wrote:
>>
>>> You were right.. I fixed the bug.
>>>
>>>  ...
>>
>> I confirmed that the "RETR" command now retrieves the whole message, thank
>> you.
>>
>> However, James now suppresses or strips the empty line between the message
>> headers and body.
>>
>> This is not a problem during a telnet session because you are able to read
>> the whole message.
>>
>> But this is a problem when a message is fetched with a MUA because the
>> visible body of the message doesn't start until after the first empty line
>> of the body.
>>
>> What makes this even more puzzling is that if you examine the message in
>> James' inbox for the user, the empty line is there.
>>
>> Again, thank you for your interest, help and hard work.
>>
>> Regards.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: "RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Posted by Norman Maurer <no...@apache.org>.
Sigh....  I will have a look

Bye Norman


2010/2/22, Jamesmail <Ja...@jamesmail.dnsalias.net>:
> On Sun, 21 Feb 2010 18:56:09 +0100
> Norman Maurer <no...@googlemail.com> wrote:
>
>> You were right.. I fixed the bug.
>>
>>  ...
>
> I confirmed that the "RETR" command now retrieves the whole message, thank
> you.
>
> However, James now suppresses or strips the empty line between the message
> headers and body.
>
> This is not a problem during a telnet session because you are able to read
> the whole message.
>
> But this is a problem when a message is fetched with a MUA because the
> visible body of the message doesn't start until after the first empty line
> of the body.
>
> What makes this even more puzzling is that if you examine the message in
> James' inbox for the user, the empty line is there.
>
> Again, thank you for your interest, help and hard work.
>
> Regards.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: "RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Posted by Jamesmail <Ja...@jamesmail.dnsalias.net>.
On Sun, 21 Feb 2010 18:56:09 +0100
Norman Maurer <no...@googlemail.com> wrote:

> You were right.. I fixed the bug.
> 
>  ...

I confirmed that the "RETR" command now retrieves the whole message, thank you.

However, James now suppresses or strips the empty line between the message headers and body.

This is not a problem during a telnet session because you are able to read the whole message.

But this is a problem when a message is fetched with a MUA because the visible body of the message doesn't start until after the first empty line of the body.

What makes this even more puzzling is that if you examine the message in James' inbox for the user, the empty line is there.

Again, thank you for your interest, help and hard work.

Regards.

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: "RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Posted by Norman Maurer <no...@googlemail.com>.
You were right.. I fixed the bug.

Thx again,
Norman

2010/2/21 Norman Maurer <no...@googlemail.com>:
> Ok let me recheck the code and write some unit test + fix.
>
> Bye,
> Norman
>
> 2010/2/20 Jamesmail <Ja...@jamesmail.dnsalias.net>:
>> On Sat, 20 Feb 2010 20:25:08 +0100
>> Norman Maurer <no...@apache.org> wrote:
>>
>>> Ok fixed..
>>>
>>> Sorry for the trouble.
>>>
>>>  ...
>>
>> Thank you Norman.
>>
>> No trouble at all.  I appreciate your instantaneous response.
>>
>> However, now "RETR" retrieves the message body but no headers.
>>
>> Regards.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: "RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Posted by Norman Maurer <no...@googlemail.com>.
Ok let me recheck the code and write some unit test + fix.

Bye,
Norman

2010/2/20 Jamesmail <Ja...@jamesmail.dnsalias.net>:
> On Sat, 20 Feb 2010 20:25:08 +0100
> Norman Maurer <no...@apache.org> wrote:
>
>> Ok fixed..
>>
>> Sorry for the trouble.
>>
>>  ...
>
> Thank you Norman.
>
> No trouble at all.  I appreciate your instantaneous response.
>
> However, now "RETR" retrieves the message body but no headers.
>
> Regards.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: "RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Posted by Jamesmail <Ja...@jamesmail.dnsalias.net>.
On Sat, 20 Feb 2010 20:25:08 +0100
Norman Maurer <no...@apache.org> wrote:

> Ok fixed..
> 
> Sorry for the trouble.
> 
>  ...

Thank you Norman.

No trouble at all.  I appreciate your instantaneous response.

However, now "RETR" retrieves the message body but no headers.

Regards.

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: "RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Posted by Norman Maurer <no...@apache.org>.
Ok fixed..

Sorry for the trouble.

Bye,
Norman

2010/2/20 Norman Maurer <no...@apache.org>:
> Sounds like abug which was introduced in the last refactoring related
> to Async processing. I will have a look in a few...
>
> Thx for reporting
> Norman
>
> 2010/2/20, Jamesmail <Ja...@jamesmail.dnsalias.net>:
>> Good day.
>>
>> My MUA began fetching only one line after I upgraded to 3.0-M1 Trunk.
>>
>> Upon investagation, I discovered during a telnet session with the POP3
>> server that when the"RETR" command is entered only one line is retrieved.
>>
>> "TOP" works fine, though.
>>
>> To reproduce, at a console session:
>> ----------------------------------------------------------------------
>> # telnet [POPSERVER] [PORT]
>> Trying [POPSERVER IP NO.]...
>> Connected to [POPSERVER IP NO.].
>> Escape character is '^]'.
>> +OK [SERVERNAME]. POP3 server (JAMES POP3 Server @@VERSION@@) ready
>> USER [USERNAME]
>> +OK
>> PASS [PASSWORD]
>> +OK Welcome [USERNAME]
>> STAT
>> +OK 1 742
>> RETR 1
>> +OK Message follows
>> [ONLY ONE LINE IS RETRIEVED]
>> TOP 1 10000
>> +OK Message follows
>> [FULL MESSAGE IS RETRIEVED]
>> ----------------------------------------------------------------------
>>
>> Any ideas?
>>
>> Thank you.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: "RETR" POP3 command retrieves only one line (3.0-M1 Trunk)

Posted by Norman Maurer <no...@apache.org>.
Sounds like abug which was introduced in the last refactoring related
to Async processing. I will have a look in a few...

Thx for reporting
Norman

2010/2/20, Jamesmail <Ja...@jamesmail.dnsalias.net>:
> Good day.
>
> My MUA began fetching only one line after I upgraded to 3.0-M1 Trunk.
>
> Upon investagation, I discovered during a telnet session with the POP3
> server that when the"RETR" command is entered only one line is retrieved.
>
> "TOP" works fine, though.
>
> To reproduce, at a console session:
> ----------------------------------------------------------------------
> # telnet [POPSERVER] [PORT]
> Trying [POPSERVER IP NO.]...
> Connected to [POPSERVER IP NO.].
> Escape character is '^]'.
> +OK [SERVERNAME]. POP3 server (JAMES POP3 Server @@VERSION@@) ready
> USER [USERNAME]
> +OK
> PASS [PASSWORD]
> +OK Welcome [USERNAME]
> STAT
> +OK 1 742
> RETR 1
> +OK Message follows
> [ONLY ONE LINE IS RETRIEVED]
> TOP 1 10000
> +OK Message follows
> [FULL MESSAGE IS RETRIEVED]
> ----------------------------------------------------------------------
>
> Any ideas?
>
> Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org