move/copying multiple imap messages to local folder bypasses offline store and redownloads messages. Need to preflight the move/copy.
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
People
(Reporter: Bienvenu, Assigned: gds)
References
(Blocks 1 open bug)
Details
(Keywords: perf)
Attachments
(1 file, 1 obsolete file)
|
4.71 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
Comment 2•17 years ago
|
||
Updated•17 years ago
|
Updated•16 years ago
|
Comment 3•15 years ago
|
||
Updated•11 years ago
|
Updated•8 years ago
|
| Assignee | ||
Comment 4•7 years ago
|
||
Yes, I just tested this and emails are fetched from server before they are copied of a folder in Local Folders, even if the source imap folder has offline storage. However, if the copy is to another imap server's folder, the messages are just read from offline store and then imap appended to the destination folder. I didn't know this and it may be relevant to Bug 538375
Note also that if you go offline and do the copy to Local Folders, the source data is obtained from offline store.
| Assignee | ||
Comment 5•6 years ago
|
||
With this change IMAP messages copied to Local Folders are now obtained from offline storage if all messages being copied reside in offline storage. Otherwise, they are fetched from the IMAP server.
Previously, if more than one IMAP messages is copied to Local Folders and if TB is online, the messages are always fetched from the IMAP server.
So this fixes the "homogeneous, low-hanging fruit" case described in Comment 0.
This greatly impacts Bug 1566717 and other similar bugs regarding copying from IMAP folders to Local Folders (See Bug 1566717 comment 53).
Comment 6•6 years ago
|
||
Updated•6 years ago
|
| Assignee | ||
Comment 7•6 years ago
•
|
||
Changed "TB is" to "we're" in 3 places.
Maybe as a follow-up we could split up into two arrays and do both cases: first copy what we got locally, and only after that go and copy the ones we didn't have locally yet.
Good idea. I'll keep this in mind.
Comment 8•6 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/9185bf0f28e2
Make imap folders with offline store not fetch from IMAP when copying to local folders. r=mkmelin
Updated•6 years ago
|
Description
•