Closed Bug 82696 Opened 24 years ago Closed 24 years ago

Mail deleted in offline mode doesn't "migrate" when going online again

Categories

(SeaMonkey :: MailNews: Backend, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: Roger.Martensson, Assigned: Bienvenu)

Details

Bug number 76668 is fixed but the deleted mail doesn't get removed when going online again. (Shouldn't a Sync happen when going online?). If I go offline again THEN the deleted mail gets removed from the IMAP server. (checked using mailx -f in a unix enviroment). BuildID: 2001052420
Roger can you post a step by step instructions on what you exactly did? thanks
I) Go Offline(and Download) II) Open a folder with messages III) Mark All and Delete IV) Go online(And Send) V) Check with "mailx -f" on Folder to see messages is still there VI) Use Download/Synch Now. Check Mail messages only. VII) Check with "mailx -f" and messages are still there VIII)Go Offline(and Download) IX) Check with "mailx -f" and messages are removed from Folder. Same BuildID as above.
Using branch build 2001-06-07-13-0.9.1/ on NT 4.0. This is what I found out. Again Roger if I don't have something correct please let me know. You have an imap mail account. For deleting mail you have it set to "Move it to the trash folder". You then do these simplified steps (not quite as elaborate as your steps to reproduce but I think you'll see the same problem) -Start messenger -login to your imap acct -download a folder or some mesages (by any means) -have another folder or some messages that haven't been downloaded -go offline (can say yes you want to download your messages) -delete some downloaded/non-downloaded messages -go to trash folder and verify they are now there -go to File|Empty trash -verify the messages in trash folder are gone -go back online (can say yes send unsent mesgs) -go to the trash folder -messages are still there. In 4.x, if I repeat the same steps, when I go online, the messages are not present in the trash folder. I assume this is the problem you are talking about and that this is a bug? marking as new
Status: UNCONFIRMED → NEW
Ever confirmed: true
No, that's a different bug - empty trash is not implemented offline.
ok, I'll create a new bug on the emtpy trash doesn't work while offline. all right, if I follow Roger's exact steps to reproduce (assuming he has trash mode set to "Move it to the trash folder" and he wants messages to be actually downloaded), I can confirm that yes messages aren't really removed from the folder until you go offline again.
Is the folder that you deleted the messages in configured for offline use? I tried the following steps which worked fine. 1. Go offline. 2. Select a folder with 30 messages (none downloaded for offline use, but that shouldn't matter. 3. Ctrl A to select all 4. Delete. 5. click the online/offline icon (at this point, I can see that we're sending the commands to the server to move the messages to the trash) 6. Select another folder and go back to the original folder. The messages are all deleted. How are you going online? Are you using the menu item? It shouldn't matter, but I can try that.
Hey David. I was using the online/offline icon to go online/offline. If I follow your steps to reproduce, you are correct that it does work. (I'm using branch build 20010724 on NT 4.0). I think the key thing here is when you visit the folder (that you deleted the messages from while offline) after going back online. Until you click on another folder then go back to the original folder where you deleted mesgs from, the messages won't truly be deleted. For your steps (I broke up last step into 2 steps): >5. go online >6. Select another folder >7. go back to the original folder. The messages are all deleted. I was using the mboxutil command (I'm using messaging server 4.15). Before doing step 6, I would use the mboxutil and it would show my messages still in the folder, even though visually it appeared messages were removed from the folder. After doing step 6, the mboxutil still shows messages in that folder. But as soon as I did step 7 the mboxutil showed the folder empty. I think that is what Roger was talking about. In his steps he doesn't say clicking on another folder, so I am assuming he still has the original folder selected (like I did) and when you run whatever command to verify messages in that folder were deleted, it would show they had not. For what it's worth, when I followed Roger's steps, after I did a download and sync, the mboxutil showed the folder empty. So if you don't see any problem, I'll mark this as 'works for me' when you comment back.
It is true that if you select a folder which has offline events, like deletes, to playback, it will play them back. So if the going online didn't do the sync, selecting the folder would. But, when I did it, I could see the playback happening when I went online, before I selected the folder. The other thing is, mboxutil is probably making a second connection to the folder in question, and the first connection may not have flushed its state to disk so that the second connection would see the new state (i.e., the state where the deleted messages were actually deleted). So, I'm pretty tempted to mark this works for me as well.
Status: NEW → ASSIGNED
Ok. I'm going to mark this as works for me. Thanks David.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.