Closed Bug 351565 Opened 19 years ago Closed 4 years ago

Existence of movemail account prevents all accounts from being synced for offline use

Categories

(MailNews Core :: Movemail, defect)

x86
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: td, Unassigned)

References

Details

(Whiteboard: [patchlove])

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.6) Gecko/20060728 SUSE/1.5.0.6-1.4 Firefox/1.5.0.6 Build Identifier: Thunderbird version 1.5.0.5 (20060725) I have several accounts (IMAP/POP3) configured in TB. Usually File->Offline->Work Offline->Download works fine. If I add a movemail account syncing doesn't work any more. Reproducible: Always Steps to Reproduce: 1. add a movemail account 2. try to download messages for offline use Actual Results: Nothing, except for a quick message rushing through the status bar (something like "no new messages are on the server"). Expected Results: Normal download of all messages in all folders marked for offline use.
A big 'ol me too. I was wondering why my messages weren't being downloaded. Saw this bug report, removed the movemail account, and voila, the download/sync menu item actually downloads everything. A couple of observations from when the movemail account was there: if you go to the properties on the individual folder, select the Offline tab, and click the Downlad now button, it will actually synchronize. Second, the problem seemed to be with messages that were moved into IMAP folders; the act of reading the message in the folder seemed to be enough to make the synchronization happen.
Yup; Me TOO! As above, complete ditto Now I know how to get my mail locally; but, now I can't get my logs... Weird, why would these two components be mucking with each other?
Hmm, is there an explanation why the person this bug is assigned to is being excluded from receiving mail on this bug...? Perhaps it needs re-assigning?
Here you go, current default assignee and QA contact instead of the defaults from a year ago; just like having a leprechaun grant you a wish, isn't it?
Assignee: mscott → nobody
I suspected I was likely to get more than I bargained for...:)
how is this related to bug 350380?
No longer blocks: 350380
Maybe this has a similar cause as bug 278383...
Assignee: nobody → pkwarren
Component: General → MailNews: Movemail
Product: Thunderbird → Core
QA Contact: general → movemail
Product: Core → MailNews Core
seems overdue for confirming
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reconfirmed on Linux trunk, 3.0b1pre. If you select Work Offline and then (attempt to) download messages before going offline, it doesn't actually go offline although the indicator seems to indicate that is offline. Bumping up to major.
Severity: normal → major
Version: unspecified → Trunk
Oh, that's why it fails. Since movemail downloads synchronously, it doesn't bother with the URL listeners, which is how the offline manager decides to move to the next account. The simplest fix would be to construct a URI and use the listener stuff. Some clients may not like the url listener being used before GetNewMail is called, but such is life.
Status: NEW → ASSIGNED
Assignee: pkwarren → Pidgeot18
Attached patch Patch, version 1 (obsolete) — Splinter Review
This allows nsMsgOfflineManager to go offline with movemail. It should probably be noted somewhere that some callers depend on GetNewMail using nsIURLListeners to work properly. Another option I did not explore would be to make the offline manager not download inherently offline protocols.
Attachment #389409 - Flags: superreview?(bienvenu)
Attachment #389409 - Flags: review?(mnyromyr)
Comment on attachment 389409 [details] [diff] [review] Patch, version 1 why not poke aUrlListener directly? aUrlListener->OnStartRunningUrl(nsnull), aUrlListener->OnStopRunningUrl(nsnull, rv);
Attachment #389409 - Attachment is obsolete: true
Attachment #389409 - Flags: superreview?(bienvenu)
Attachment #389409 - Flags: review?(mnyromyr)
Comment on attachment 389409 [details] [diff] [review] Patch, version 1 marking obsolete since jcranmer's going to try my suggestion.
Attached patch Patch, version 2Splinter Review
Updated patch, using bienvenu's suggestion.
Attachment #390649 - Flags: superreview?(bienvenu)
Attachment #390649 - Flags: review?(mnyromyr)
Comment on attachment 390649 [details] [diff] [review] Patch, version 2 sr=me, with one nit: @@ -382,6 +383,7 @@ nsMovemailService::GetNewMail(nsIMsgWind nsIURI ** aURL) { LOG(("nsMovemailService::GetNewMail")); + NS_ENSURE_ARG_POINTER(aURL); you can lose that change - we allow callers to pass null in if they don't care about the resulting url, and we don't assign it if null. (In this case, we never assign it, actually).
Attachment #390649 - Flags: superreview?(bienvenu) → superreview+
Attachment #390649 - Flags: review?(mnyromyr) → review+
Pushed as changeset 3200:484c394ba889, with bienvenu's nit.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Summary: Existance of movemail account prevents all accounts from being synced for offline use → Existence of movemail account prevents all accounts from being synced for offline use
Depends on: 507721
This now utterly crashes almost any profile with a Movemail account when getting new mails by biff or manually. I wonder under which circumstances I tested this patch that I didn't crash... :-( 1. Startup with "Check on startup": see bug 507721 2. Even with NS_ENSURE_ARG_POINTER(aURL), you can't get new mails for Movemail: An error occurred executing the cmd_getNewMessages command [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgIncomingServer.getNewMessages]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: chrome://messenger/content/mailCommands.js :: GetNewMessages :: line 56" data: no] Backing out as <http://hg.mozilla.org/comm-central/rev/ffc4730d6619>.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
no activity for a long time, should be closed
(In reply to comment #20) > no activity for a long time, should be closed No, there was a valid bug, that we don't know if it has been fixed or not, and there's a patch that was started but needs revisiting.
(In reply to comment #20) > no activity for a long time, should be closed Nope, the bug still exists. Just because I haven't touched it for 1.5 years doesn't mean it isn't a bug anymore
Status: REOPENED → NEW
Assignee: Pidgeot18 → nobody
Whiteboard: [patchlove]
See Also: → 269374
Re Comment 22: I've been using 'Server Type: Unix Movemail' successfully for a long time now. So, 'worksforme' So, imho, should be closed fixed

Support for Movemail has been removed as of version 87 per Bug 1625741

Status: NEW → RESOLVED
Closed: 16 years ago4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: