Re: ox x mails fetches all but latest mail
Zoe <[email protected]> Thu, 14 Apr 2005 11:23:17 +0200
| Newsgroups | gmane.mail.zoe.general |
|---|---|
| Message-ID | <[email protected]> |
On Apr 14, 2005, at 01:13, Mark Crocker wrote:
>> my mail progam (OS X Mail) only fetches all but the very latest mail
>> from Zoe i.e I always have to look into Zoes Web UI in order to see
>> the very latest mail what could be wrong?
>
> I have the same problem and have reported it in the past, but haven't =20=
> gotten around to setting things up to get a nice concise debug log of =20=
> the issue.
Do you mean that the built-in POP3 server is always off by one email?
Hmmm... OK... lets try to figure this one out :)
If you start ZO=CB in debug mode, you can see the entire POP3 session =20=
from the server point of view:
% java -jar Zoe.jar debug
Here is a typical POP3 session between ZO=CB and Apple's Mail.app 1.3.9 =20=
(v619/619.2):
s: +OK Hi
c: USER username
s: +OK
c: PASS password
s: +OK Welcome
c: STAT
s: +OK 1702 6808000
c: UIDL
s: +OK unique-id listing follows
s: 1 36EC2BA80103305A0C1E3F820B6FA4EF
...
c: LIST
s: +OK 1702 6808000
s: 1 4000
...
c: RETR 1
s: +OK Message follows
...
You can do the same by using telnet directly:
% telnet localhost 10110
And then typing the relevant POP3 commands.
The critical information provided by ZO=CB's POP3 server is how many =20
messages there is. This is handled in the SZPOPSession.uuids() method:
http://dev.alt.textdrive.com/file/ZOE/Frameworks/SZPOP/SZPOPSession.java
This method in turn calls SZTimeline.uuidsOfClassInStore() to get a =20
list of message ids:
http://dev.alt.textdrive.com/file/ZOE/Frameworks/SZObject/=20
SZTimeline.java
Which usually calls SZIndex.ids() to get the ids directly from Lucene's =20=
indices themselves:
http://dev.alt.textdrive.com/file/ZOE/Frameworks/SZObject/SZIndex.java
As far as I can tell, I always get up-to-date messages from ZO=CB's POP3 =
=20
server. Could someone try to track down this problem?
Thanks!
Cheers,
R.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click