Closed Bug 138962 Opened 23 years ago Closed 23 years ago

moving imap msgs to Local Folders not working

Categories

(MailNews Core :: Backend, defect)

x86
Windows 98
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 153982

People

(Reporter: later.mozilla, Assigned: naving)

References

Details

Attachments

(4 files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc1) Gecko/20020417 BuildID: 2002041711 Have encountered this error on 1.0 rc1. Use IMAP. Select multiple messages and either drag and drop to Local folder or right click for menu for Move To or Copy To, to Local folder. In either situation messages do not appear in the Local folder. The only method to get messages into Local folder is to do a select on individual message, and then drag and drop. The message no longer appears in the IMAP folder and is only found in Local folder. Doing an individual message right click and then Move or Copy to Local does not work. Doing a block move from IMAP folder to IMAP folder works. Reproducible: Always Steps to Reproduce: 1.Open IMAP folder 2. Select a group of messages 3. Drag and drop into Local folder (same or different folder name as IMAP folder names) 4. Select one message in the group (ie only one message is highligted) 5. Drag and drop into Local folder 6. Message no longer in the IMAP folder. Can now be found only in the Local folder Actual Results: Nothing. Expected Results: Should have moved the messages same as when it does for a single message into the Local folder. Bugzilla #67736 indicated same/similar problem and that it was fixed. have not tried procedure in earlier versions.
not movemail componenet...
Assignee: adam → mscott
Component: Movemail → Mail Back End
QA Contact: gayatri → huang
Reproduced on Mozilla 1.0 build id 2002052918 on Linux. In addition to block copying of messages, moving or copying an IMAP folder to a local folder produces an empty subfolder, without populating it with the original messages. I believe the feature of block copying IMAP messages or copying folders is really important because it is the only way to make a local backup of an IMAP folder. This feature used to work in Netscape 4.7
QA Contact: huang → gchan
*** Bug 149381 has been marked as a duplicate of this bug. ***
*** Bug 147317 has been marked as a duplicate of this bug. ***
using commercial trunk: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a+) Gecko/20020621 and commercial branch: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.0) Gecko/20020622 I don't see any problems moving/copying block of mesgs from imap to Local Folders. Or copying an entire IMAP folder to Local Folders Adrian & Peter can you try a more recent build? I think your problems both have resolved. And to everyone else who was having problems moving multiple mesgs with 1.1a build (20020611), you were running into bug 150716. This has been fixed in latest trunk builds Marking as works for me, if any of you are still seeing problems like this in latest builds, than please reopen this bug. marking as works for me.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Still does not work for me in the following recent 1.0 build: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/2002062407 I am using SSL IMAP, maybe this makes a difference. Adrian
hmm Adrian, someone else is reporting similar bug: bug 120306 but I am unable to reproduce. Maybe you can report/add yourself to that bug..
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/2002062407 Summary: * the contents of folders containing more than one object (message of subfolder) is NOT copied from IMAP to local folder * IMAP folders and their contents does not get deleted when moved to a local folder I am conecting through IMAP via SSL (IMAP server: po11.mit.edu) Detailed test cases: Action: move one message from IMAP folder to local folder Result: as expected Action: move two messages from IMAP folder to local folder Expected: the messeges are marked deleted and appear in the local folder Result: the messages are not marked deleted and do not appear in the local folder Action: move subfolder containing exactly one message from IMAP folder to local folder Expected: the folder should be deleted from IMAP, and it should appear in the local foder containing the message Result: the subfolder correctly appears in local folder, but is NOT deleted from IMAP, and the original message is not marked deleted Action: move subfolder containing two messages from IMAP to local Expected: subfolder deleted from IMAP; subfolder appears in local with the two messages inside Result: subfolder NOT deleted from IMAP; subfolder appears in local, WITHOUT the two messages Action: move the following nested structure from IMAP to local folder1 +- folder2 +- folder3 +- folder4 +- folder5 - message1 Results: correctly copied (as long as there are no other messages or subfolders), but nothing gets deleted from IMAP
using commercial branch 1.0 on linux 2.2: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020624 Adrian, when you move a folder (& subfolders) from your imap mail account to Local Folders, it will not result in the folder being deleted from your IMAP mail account. When you Move A folder from IMAP to Local Folders, it's really a *Copy*. We don't want to make it to easy for people to accidentally delete their folders via drag and drop. So that's why they don't get deleted from your imap account. Trying your steps w/Imap via SSL: >Action: move one message from IMAP folder to local folder >Result: as expected works for me >Action: move two messages from IMAP folder to local folder >Expected: the messeges are marked deleted and appear in the local folder >Result: the messages are not marked deleted and do not appear in the local folder For me, I moved 2 mesgs, intially they 'dissapear' from the IMAP folder. When I click on another folder and go back to that IMAP folder, I see the mesgs I moved w/red x in them. That might be a bug. When I moved the mesgs, it successfully moved them to my folder under Local Folders. No problems. >Action: move subfolder containing exactly one message from IMAP folder to local >folder >Expected: the folder should be deleted from IMAP, and it should appear in the >local foder containing the message >Result: the subfolder correctly appears in local folder, but is NOT deleted >from IMAP, and the original message is not marked deleted Same results as you. The subfolder from Imap will NOT BE deleted (by design). And i'm not sure how behavior for 'mark as deleted' applies to moving a folder vs moving individual mesgs. I think 'mark as deleted' applies to messages only, not folders. >Action: move subfolder containing two messages from IMAP to local >Expected: subfolder deleted from IMAP; subfolder appears in local with the two >messages inside >Result: subfolder NOT deleted from IMAP; subfolder appears in local, WITHOUT the >two messages This worked for me. Subfolder (and the 2 mesgs) successfully copied over from IMAP to Local Folders. >Action: move the following nested structure from IMAP to local >folder1 +- folder2 +- folder3 +- folder4 +- folder5 - message1 >Results: correctly copied (as long as there are no other messages or >subfolders), but nothing gets deleted from IMAP This worked for me. I had this setup -folder (55 mesgs) -foldera 7 mesgs -folderb 33 mesgs -folderc 6 mesgs And all folders and mesgs were successfully copied over from IMAP to Local Folders.
It does seem that you cannot reproduce the behaviour of not copying more than one message. It might be an error that occurs only on the IMAP server I am using. I will try to reproduce the behaviour on a different IMAP server. Unfortunately I cannot give you access to my IMAP server (po11.mit.edu). Adrian
Adrian, did anyone ask you to generate an imap protocol log? It might give us some clue: http://www.mozilla.org/quality/mailnews/mail-troubleshoot.html#imap
This is normal behaviour. However, when the folder contains three messages, the contents of the messages is not querried at all (attachment 89033 [details])
I had a another look at copying messages from IMAP folders. Set up: Windows 98se Mozilla 1.0 build 2002053012 (official release) IMAP server www.fastmail.fm via SSL Test results below & prefixed with PS. Bottom line, is that for me most works, however, it isn't working when there are folders within folders to be moved. See below. If this should be opened under a new number, then let me know and will oblige with request. bugzilla-daemon@mozilla.org wrote: >http://bugzilla.mozilla.org/show_bug.cgi?id=138962 > > > > > >------- Additional Comments From adrianc@mit.edu 2002-06-24 14:09 ------- >Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/2002062407 > >Summary: >* the contents of folders containing more than one object (message of subfolder) > is NOT copied from IMAP to local folder >* IMAP folders and their contents does not get deleted when moved to a local > folder > >I am conecting through IMAP via SSL (IMAP server: po11.mit.edu) > >Detailed test cases: > >Action: move one message from IMAP folder to local folder >Result: as expected > PS: Works for me > >Action: move two messages from IMAP folder to local folder >Expected: the messeges are marked deleted and appear in the local folder >Result: the messages are not marked deleted and do not appear in the local folder > PS: Works for me. Messages are moved to local and removed from IMAP folder > >Action: move subfolder containing exactly one message from IMAP folder to local >folder >Expected: the folder should be deleted from IMAP, and it should appear in the >local foder containing the message >Result: the subfolder correctly appears in local folder, but is NOT deleted from >IMAP, and the original message is not marked deleted > PS: Folder contained 2 messages. Messages and folder copied over to local folder and appeared correctly (folder as sub-folder and containing 2 messages). However, IMAP folder still exists with 2 messages (not marked for deletion or anything else). I have read later emails indicating this is designed behaviour as Mozilla is protecting users from accidently deleting messages & folders. I guess work around is create the folder in local directory and do block copy of IMAP messages to this local folder. Then messages are gone from IMAP folder & user can decided to delete or retain IMAP folder. PS: Further notes. I set up a sub-folder on the IMAP with one message. Moved the sub-folder to a folder destination (ie to become a sub-folder of a local folder). The sub-folder and one message was created under the local folder. However, the sub-folder and one message still exist in IMAP. > >Action: move subfolder containing two messages from IMAP to local >Expected: subfolder deleted from IMAP; subfolder appears in local with the two >messages inside >Result: subfolder NOT deleted from IMAP; subfolder appears in local, WITHOUT the >two messages > PS I set up on IMAP a folder and sub-folder. Each with 2 messages. Picked up the folder (ie folder + 2 messages + sub-folder + 2 messages) and moved them to be a sub-folder on the local directory. Only the folder & 2 messages appeared as a sub-folder with 2 messages on the local directory. The sub-folder & 2 messages did not appear. I then tried to copy the sub-folder from IMAP & its 2 messages to the directory it should have appeared in on the local and got an error message that the folder already exists. However, I am not able to see the folder in the expect sub-folder (see below for example) eg IMAP folder1 (2 messages) +- folder2 (2 messages) moved to LOCAL folder3 +- folder1 (2 messages) +- folder2 (2 messages) <<< did not appear. But when I tried copying folder2 to here I got the error message from Mozilla indicating it already exists. > >Action: move the following nested structure from IMAP to local >folder1 >+- folder2 > +- folder3 > +- folder4 > +- folder5 > - message1 >Results: correctly copied (as long as there are no other messages or >subfolders), but nothing gets deleted from IMAP > PS: Did not work for me with this set up IMAP folder1 (2 messages) +- folder2 (2 messages) copied to LOCAL folder1 (2 messages) +- folder2 (2 messages) <<< did not appear. Tried to copy just this folder from IMAP to here and got "A folder with that name already exists. Please enter a different name".
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
several people are seeing this (for example, jeffp at http://www.deftone.com/blogzilla/), so confirming. re-assign to naving to investigate.
Assignee: mscott → naving
Status: UNCONFIRMED → NEW
Ever confirmed: true
updating summary.
Summary: IMAP Block Move or Copy to Local folder not working → multiple message Move or Copy from IMAP to Local folder not working
jeffp, can you also generate an IMAP protocol log since you can reproduce this? http://www.mozilla.org/quality/mailnews/mail-troubleshoot.html#imap
Log activated to show moving folder & sub-folder from IMAP to local. Since sub-folder does not appear in local, try and move sub-folder from IMAP to local location.
After creating the log and then re-booting machince to de-activate logging I have found that the local folder is showing the sub-folder Local: Folder3 +- folder1 << this and folder2 copied from IMAP folders +- folder2 << did not appear after the move from IMAP. Now appears after PC reboot.
After reading this report, it looks like the problem is in moving imap folder tree to local folders. Updating summary to reflect that. This bug could be a dup of bug 153982 which deals with non-ascii folder names. Does your imap folder tree have non-ascii folder names ?
Summary: multiple message Move or Copy from IMAP to Local folder not working → moving imap folder tree to Local Folders not working (for subfolders)
The IMAP folder names only contain letters, numbers and space (single). The sub-folder name on IMAP only contains letters.
We were not handling spaces also correctly. bug 153982 has a patch that fixes this bug. marking dup *** This bug has been marked as a duplicate of 153982 ***
Status: NEW → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
This bug is NOT a duplicate of 153982. As stated in the original posting the bug is that multiple messages cannot be copied from an IMAP folder to a local folder, unless they are copied one at a time. In the same spirit, folders that contain more than one message are copied without their messages (which do not appear after restarting Mozilla). On the other hand, folders with exactly one message get copied correctly. Some people cannot reproduce this bug, but I can always reproduce it, on Linux, Windows NT, with the last builds.
Well, this bug is talking about lot of things. The only thing that I could reproduce was moving imap folder w/ subfolders to local folders. so I duped it. I think this is what peter and you are complaining about. Also from your comments it sounded like you were able to move block of messages from imap to local. >> >>Action: move two messages from IMAP folder to local folder >>Expected: the messeges are marked deleted and appear in the local folder >>Result: the messages are not marked deleted and do not appear in the local folder >> >PS: Works for me. Messages are moved to local and removed from IMAP folder
No, multiple messages do not get copied from IMAP to local folders. Reports of this behaviour: 1. The description of this bug 2. My comment (comment #2) 3. Comment #2 from bug #120306 I believe we should leave this bug for multiple-message IMAP to local copying, where the messages are copied by plain selection, or along with the folder that contains them. Other problems could go in bug #120306 which is about folder disappearance.
When trying to copy an IMAP folder that contains more than one message to a local folder, the copy process fails at the first message being copied. Specifically, mozilla fails to get the header of the first message from the IMAP folder, with an warning to stderr: WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsImapService.cpp, line 3964 WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsCopyMessageStreamListener.cpp, line 152 It seems that the requested message header is not in the msgdatabase of the IMAP folder! I have provided a backtrace of mozilla when this error is detected. Note that while the backtrace is on the 1.0 release, I can reproduce the same error on the latest nightly build, thus it has not been fixed yet. Adrian
Adrian, anything unique about the mesgs in the folder you are trying to copy to Local folders? attachments, size, etc..? just curious. And have you tried new profile w/same mail account settings?
Adrian, since peter filed this bug originally, I don't want to change the summary yet another time. He may come back and object to it. Can you file a new bug about what you are seeing with latest nightly trunk builds? thx.
Summary: moving imap folder tree to Local Folders not working (for subfolders) → moving imap msgs to Local Folders not working
I have added a new bug for the copying of multiple IMAP messages to local folders (bug #154928). The condition occurs only in IMAP servers that use '.' as a subfolder separator. See bug #154928 for constructive information about how to fix it. The current bug should be closed as a duplicate of #153982 or #154928
verified dup
Status: RESOLVED → VERIFIED
QA Contact: gchan → stephend
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: