Bug 2117 - Unread flag is reset when copying folders
Summary: Unread flag is reset when copying folders
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (Windows)
Classification: Unclassified
Component: default (show other bugs)
Version: 3.7.4
Hardware: PC Windows XP
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2010-02-15 14:19 UTC by Sylvain Hall
Modified: 2015-07-25 14:17 UTC (History)
0 users

See Also:


Attachments

Description Sylvain Hall 2010-02-15 14:19:50 UTC
1. Set up two WinXP computers with identical installations (same mail account info) of Claws-mail. Use all the default settings.

2. Use computer "A" to retrieve/write some messages. Open some messages so that they are marked as "read".  Close Claws-mail.

3. Copy Claws-mail's config from computer "A" to computer "B".  In the Windows port, I figured it means copying both %APPDATA%\Claws-mail and %APPDATA%\Mail to their corresponding location on the other computer.

4. Open Claws-mail on computer "B".  The mail folder structure and contents of each folder are exact copies of what was in "A" (as expected), except that all messages are reset to the unread status (regardless of which were read on computer "A").

5. The bug reproduces if you flag messages as read on "B", and copy the mail folders back to "A".

NOTE 1:  I never use both computers at the same time.  I only want to *overwrite* the contents of one mailbox with another, read flags included.

NOTE 2:  Not sure if this is a bug.  Maybe I'm only missing some folders/files when copying?

NOTE 3:  Not sure if this is Windows-specific.  I didn't try on other platforms.

Thanks for your help!
Comment 1 Sylvain Hall 2010-02-15 14:28:08 UTC
More specifically:  if you open a message on computer "A", it will be re-marked as unread as soon as you switch to computer "B", and vice versa.
Comment 2 Salvatore De Paolis 2010-02-15 14:56:32 UTC
While doing this operation, be sure to close claws mail first and later copy the folders.
HTH
Sal
Comment 3 Holger Berndt 2010-02-18 15:37:37 UTC
If you want synchronous mailboxes across machines, IMAP might be a better solution.

Claws Mail treats messages as unread when the modification timestamp of the corresponding file changes. So when doing your copy/overwrite magic, make sure the file's mtime is preserved.

I am not a Windows user, so I can't know for sure if that's really the reason, and I also can't help you much on how to preserve timestamps.
Comment 4 Andrej Kacian 2015-07-25 14:17:18 UTC
I think this has been fixed for 3.12.0. Feel free to reopen if that is not the case.

Note You need to log in before you can comment on or make changes to this bug.