Closed Bug 1753973 Opened 2 years ago Closed 2 years ago

pop3-js - messages over 50KB are not fully downloaded by default

Categories

(MailNews Core :: Networking: POP, defect)

defect

Tracking

(thunderbird_esr91 unaffected)

RESOLVED FIXED
99 Branch
Tracking Status
thunderbird_esr91 --- unaffected

People

(Reporter: mkmelin, Assigned: rnons)

References

Details

Attachments

(2 files)

I set up a new POP3 account. Some of the messages are not fully downloaded, but get the "Truncated!This message exceeded the Maximum Message Size set in Account Settings, so we have only downloaded the first few lines from the mail server." message.

I didn't change any defaults, so no such limitations should apply. Seems it's messages over 50KB.

Clicking the "Download the rest of the message." link doesn't work either.

Good catch. "Download the rest of the message." works for me though.

Blocks: pop3-js
Status: NEW → ASSIGNED
Target Milestone: --- → 99 Branch

For the "download the rest link" I just get this:

mailnews.pop3: Connecting to pop://pop.gmx.com:995 Pop3Client.jsm:122:18
mailnews.pop3: Connected Pop3Client.jsm:239:18
mailnews.pop3: S: +OK POP server ready H migmx107 1MA4fK-1nRoyL22Pa-00D85R

Pop3Client.jsm:274:18
mailnews.pop3: C: QUIT Pop3Client.jsm:425:20
mailnews.pop3: S: +OK POP server signing off

Pop3Client.jsm:274:18
mailnews.pop3: Connection closed. Pop3Client.jsm:297:18

Thanks. This happens when the message has been removed from the server. Seems the C++ code will remove this partial message if not found on server.

Keywords: leave-open

This message is still on the server - I can see it through IMAP. I have the settings not to remove stuff from the server set as well so it should not have removed it (which it correctly has not).

The code is https://searchfox.org/comm-central/rev/50d06c67e97daebd61b3da2b490c68e674a5ef97/mailnews/local/src/Pop3Client.jsm#185-186
Can you see if this uidl is still in popstate.dat and status should be b?
Also do a get messages request, is this uidl still in the UIDL response?

1MA4fK-1nRoyL22Pa-00D85R is not in popstate.dat.
It's not in the UIDL response either.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/996762d9ecf6
Fetch full message if server.limitOfflineMessageSize is false in Pop3Client.jsm. r=mkmelin

(In reply to Magnus Melin [:mkmelin] from comment #8)

It's not in the UIDL response either.

I guess many mail services have separate logic for pop3/imap connections. GMail has some special settings to keep mails for pop3.

Will send a patch to delete partial message not found on server.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/ad3ce437ca0d
Delete partial message if not found on server in Pop3Client.jsm. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: