Modify ↓
Opened 5 months ago Closed 4 months ago #367 closed bug (fixed)New Mails are not changed to 'unread' after start of YAM
Description
If a newly received mail is moved to another folder (by hand or by (spam)filter), it will not be marked as 'unread' after the next start of YAM but will still have the status 'new': Only if the mail is in the incoming folder it will marked as unread (check mark 'mark new mail as unread at start' is set). Attachments (3)Change History (19)comment:1 Changed 43 years ago by immomdv
comment:1 Changed 5 months ago by damato
comment:2 Changed 5 months ago by damato
comment:3 Changed 5 months ago by thboeckel
comment:4 Changed 5 months ago by thboeckelcomment:5 Changed 4 months ago by thboeckel
Any news on this issue? comment:6 follow-up: ↓ 7 Changed 4 months ago by thboeckel
comment:7 in reply to: ↑ 6 ; follow-up: ↓ 8 Changed 4 months ago by immomdv
Sorry I was a bit busy the last days. I did this test:
I did my test with MorphOS 3.1. I hope you can reproduce the behaviour with AmigaOS comment:8 in reply to: ↑ 7 ; follow-up: ↓ 9 Changed 4 months ago by thboeckel
Replying to immomdv:
Repeating these steps still correctly results in one "unread" message in the spam folder for me, even if it was "new" before.
Please provide a FOLDER debug log created with the next nightly build of YAM 2.9-dev. Details about how to create this log can be found in the FAQ. comment:9 in reply to: ↑ 8 ; follow-up: ↓ 10 Changed 4 months ago by thboeckel
Replying to thboeckel:
I just forgot to tell, please also provide the subject of the "new" mail as the debug log will list the subject of the mails of which the status is changed while starting up YAM. comment:10 in reply to: ↑ 9 ; follow-up: ↓ 11 Changed 4 months ago by immomdv
Replying to thboeckel:
Here is what I did: comment:11 in reply to: ↑ 10 Changed 4 months ago by thboeckel
Replying to immomdv:
Now I finally understand what is going wrong here, and what is not. Let me explain.
The startup option "mark new mails as unread" can only be applied to folders for which the index is loaded during the startup phase. By default the option to load the index of all folders is inactive to save time and memory. Thus YAM will skip the "mark new mails as unread" for all folders except the current one, which will be the incoming folder by default. Hence its index will always be loaded and new mails in the incoming folder will become unread. This is something which had to be changed in YAM 2.8, because 2.8 will flush the folder's index from time to time to save memory for seldom accessed folder with lots of mails. And reloading a formerly flushed index should not remove the "new" state of mails. This is why YAM 2.7 behaves differently here.
To solve this issue we now have two possibilities:
Solution 1 is versy easy to archive even without having to change anything in YAM, except the configuration.
But on the long sight solution 2 seems to be more logical to me. Jens what do you think? comment:13 Changed 4 months ago by damato
(In [6520]) * YAM.c, YAM_MAf.c: when having the option active that new mail will be changed
comment:14 Changed 4 months ago by damato
comment:15 Changed 4 months ago by thboeckel
Jens' latest change fixes this issue, at least all my tests resulted in the correct behaviour. Please try yourself with the next nightly build and reopen this ticket if you still think there is something wrong.
Please note, "next nighlty build" always denotes the binary built in the next upcoming night, which is usually on the next day (tomorrow) around 2:00 CET in the morning. I am just mentioning this fact, because your debug log was done before the next nightly build was released. comment:16 Changed 4 months ago by thboeckel
Note: See
TracTickets for help on using
tickets. | This list contains all users that will be notified about changes made to this ticket. These roles will be notified: Reporter, Owner, Subscriber
| ||||||||||||||||||||||||||||



I just tested this with the current nightly OS3 build and the release version and for me this is working as expected. Any "new" mail in the Spam folder will be marked as unread upon (re)starting YAM.