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 Jay Kraly <ja...@perspectivesoftware.com> on 2003/07/11 20:21:32 UTC

pop3 issue on specific message

I'm having a problem popping mail from james using netscape7.1.  It does 
fine overall but seems to get hung-up on a specific message.  I'm almost 
100% sure that its not netscape because I have two mailboxes setup in 
netscape, one pulling from my ISP and one from James.  I have my ISP set 
to forward mail to the James server, the message was retrieved fine from 
the ISP but the exact same message seems to have trouble from James.  
Below is the details of the pop3 debug output :

11/07/03 13:08:08 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:08 DEBUG pop3server: Command received: LIST
11/07/03 13:08:08 DEBUG pop3server: Sent: +OK 594 4770176
11/07/03 13:08:08 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:08 DEBUG pop3server: Command received: LIST
11/07/03 13:08:09 DEBUG pop3server: Sent: +OK 594 4770176
11/07/03 13:08:09 DEBUG pop3server: Sent: +OK 594 4770176
11/07/03 13:08:10 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:10 DEBUG pop3server: Command received: UIDL
11/07/03 13:08:10 DEBUG pop3server: Sent: +OK unique-id listing follows
11/07/03 13:08:10 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:10 DEBUG pop3server: Command received: DELE 1
11/07/03 13:08:10 DEBUG pop3server: Sent: +OK Message removed
11/07/03 13:08:10 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:10 DEBUG pop3server: Command received: DELE 2
11/07/03 13:08:10 DEBUG pop3server: Sent: +OK Message removed
11/07/03 13:08:10 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:10 DEBUG pop3server: Command received: XSENDER 3
11/07/03 13:08:10 DEBUG pop3server: Sent: -ERR
11/07/03 13:08:10 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:10 DEBUG pop3server: Command received: UIDL
11/07/03 13:08:10 DEBUG pop3server: Sent: +OK unique-id listing follows
11/07/03 13:08:10 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:10 DEBUG pop3server: Command received: DELE 1
11/07/03 13:08:10 DEBUG pop3server: Sent: +OK Message removed
11/07/03 13:08:10 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:10 DEBUG pop3server: Command received: DELE 2
11/07/03 13:08:10 DEBUG pop3server: Sent: +OK Message removed
11/07/03 13:08:10 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:10 DEBUG pop3server: Command received: XSENDER 3
11/07/03 13:08:10 DEBUG pop3server: Sent: -ERR
11/07/03 13:08:10 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:10 DEBUG pop3server: Command received: RETR 3
11/07/03 13:08:10 DEBUG pop3server: Sent: +OK Message follows
11/07/03 13:08:10 DEBUG pop3server: Calling reset() default Worker #32
11/07/03 13:08:10 DEBUG pop3server: Calling stop() default Worker #32

Any ideas?  Why is James returning "-ERR" after the XSENDER 3, and why 
does Netscape issue a UIDL and restart the process after receiving the 
first "-ERR"?

Thanks

-J



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


RE: pop3 issue on specific message

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Its true that James doesn't hang, rather it seems to prematurely abort,
> possibly because Netscape closes the connection.  You can see that there
> are 594 messages in the queue, but after 'RETR 3' there is a reset and a
> stop.

There are messages, but Netscape isn't asking for them.  The "reset()"
message is just a debugging notice in James that it is resetting the
watchdog timer for that connection.

> What I don't understand is why Netscape was able to pop the same
> messages from my ISP successfully, but gets stuck popping from James.

Well, the fact that DELE x works multiple times in a row is bothersome.

> I'm using James 2.1.2.  It may be worth noting that I'm using the
> filesystem to store messages not the database.

I did my test with James v2.2.0a8 using JDBC, but the file system shouldn't
be the issue.  The DELETE operation is handled internally.  I just checked
the diff between the code I'm running, and v2.1.2, and I don't see anything
that would make a difference.

http://cvs.apache.org/viewcvs/james-server/src/java/org/apache/james/pop3ser
ver/POP3Handler.java.diff?r1=1.18.4.3&r2=1.18&diff_format=h&only_with_tag=br
anch_2_1_fcs

Can you run the same telnet test I did and check the results?

	--- Noel


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


Re: pop3 issue on specific message

Posted by Jay Kraly <ja...@perspectivesoftware.com>.
A quick search on XSENDER showed alot of confusion so I agree that it 
isn't involved. 

Its true that James doesn't hang, rather it seems to prematurely abort, 
possibly because Netscape closes the connection.  You can see that there 
are 594 messages in the queue, but after 'RETR 3' there is a reset and a 
stop.  After further research I also realized that it isn't a specific 
message.  I deleted emails day-by-day until Netscape was able to get 
through the remaining messages and pretty much had to delete everything 
until it could pop messages successfully.  I may try adding back 
messages until it gets stuck to see if there is anything specific about 
the sequence.

What I don't understand is why Netscape was able to pop the same 
messages from my ISP successfully, but gets stuck popping from James.

I'm using James 2.1.2.  It may be worth noting that I'm using the 
filesystem to store messages not the database.

Thanks

-J

Noel J. Bergman wrote:

>>Why is James returning "-ERR" after the XSENDER
>>    
>>
>
>Because XSENDER is not supported.  The command itself is not without some
>controversy.  As far as I know, it is a Netscape-specific command, which
>Qpopper (Eudora) and even Netscape recommend turning off.
>
>  http://www.eudora.com/qpopper/faq.html#netscape.auth
>  http://www.geocrawler.com/mail/thread.php3?subject=xsender&list=126
>
>For those who don't know, XSENDER "[gets] the email address of the sender of
>the specified message. Client uses this to query whether an individual
>message has been authenticated. Server returns an empty OK string if no
>authenticated sender is found."
>
>ref: http://developer.netscape.com/docs/manuals/messaging/msdkj/prorj.htm
>
>It would be possible to support it once we have mail attributes.
>
>  
>
>>why does Netscape issue a UIDL and restart the process
>>    
>>
>
>Who knows.
>
>More disturbing is this sequence:
>
>  Command received: DELE 1
>  Sent: +OK Message removed
>  Command received: DELE 2
>  Sent: +OK Message removed
>  Command received: UIDL
>  Sent: +OK unique-id listing follows
>  Command received: DELE 1
>  Sent: +OK Message removed
>  Command received: DELE 2
>  Sent: +OK Message removed
>
>Something is wrong with that sequence because the second set of deletes
>should have returned an -ERR response saying that the message was deleted.
>I just tested this using telnet:
>
>  RSET
>  +OK
>  LIST
>  +OK 4 8314
>  1 3491
>  2 2911
>  3 956
>  4 956
>  .
>  DELE 3
>  +OK Message removed
>  LIST
>  +OK 3 7358
>  1 3491
>  2 2911
>  4 956
>  .
>  UIDL
>  +OK unique-id listing follows
>  1 Mail1057948559166-4377
>  2 Mail1057948805540-4386
>  4 Mail1057949404326-4408
>  .
>  DELE 3
>  -ERR Message (3) does not exist.
>
>So that is working as expected.  What verson of James are you using?
>
>In any event, I don't see from your log extract where something is getting
>hung-up.  James doesn't hang.  Is Netscape misbehaving?
>
>	--- Noel
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>For additional commands, e-mail: server-user-help@james.apache.org
>
>
>  
>

RE: pop3 issue on specific message

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Why is James returning "-ERR" after the XSENDER

Because XSENDER is not supported.  The command itself is not without some
controversy.  As far as I know, it is a Netscape-specific command, which
Qpopper (Eudora) and even Netscape recommend turning off.

  http://www.eudora.com/qpopper/faq.html#netscape.auth
  http://www.geocrawler.com/mail/thread.php3?subject=xsender&list=126

For those who don't know, XSENDER "[gets] the email address of the sender of
the specified message. Client uses this to query whether an individual
message has been authenticated. Server returns an empty OK string if no
authenticated sender is found."

ref: http://developer.netscape.com/docs/manuals/messaging/msdkj/prorj.htm

It would be possible to support it once we have mail attributes.

> why does Netscape issue a UIDL and restart the process

Who knows.

More disturbing is this sequence:

  Command received: DELE 1
  Sent: +OK Message removed
  Command received: DELE 2
  Sent: +OK Message removed
  Command received: UIDL
  Sent: +OK unique-id listing follows
  Command received: DELE 1
  Sent: +OK Message removed
  Command received: DELE 2
  Sent: +OK Message removed

Something is wrong with that sequence because the second set of deletes
should have returned an -ERR response saying that the message was deleted.
I just tested this using telnet:

  RSET
  +OK
  LIST
  +OK 4 8314
  1 3491
  2 2911
  3 956
  4 956
  .
  DELE 3
  +OK Message removed
  LIST
  +OK 3 7358
  1 3491
  2 2911
  4 956
  .
  UIDL
  +OK unique-id listing follows
  1 Mail1057948559166-4377
  2 Mail1057948805540-4386
  4 Mail1057949404326-4408
  .
  DELE 3
  -ERR Message (3) does not exist.

So that is working as expected.  What verson of James are you using?

In any event, I don't see from your log extract where something is getting
hung-up.  James doesn't hang.  Is Netscape misbehaving?

	--- Noel


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