Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Support/Help => Topic started by: pepinlebref on 02 04 2014, 11:04:19

Title: lotusnotify does not remember already read messages
Post by: pepinlebref on 02 04 2014, 11:04:19
Hello,
Each time I start MNG, I get a popup for ALL messages in my database.
I have the same options than in MIM:
- "show again": not pressed
- ".. but only": disabled unpressed
- "show error": pressed
- "remember newest": pressed

I think the last one should work.
What I can see: in the database, the "LNNewestID" key does not exist in Settings/LotusNotify, could this be the reason?
Title: Re: lotusnotify does not remember already read messages
Post by: pepinlebref on 08 04 2014, 19:29:30
Ok,

I remember having modified MIM version of this plugin to always save latest id in database:

Could you add in line 709 of LotusNotified.cpp:
Code: [Select]
// remember newest id
if(settingNewest&&(noteID > settingNewestID) )
db_set_dw(NULL, PLUGINNAME, "LNNewestID", settingNewestID=noteID);
This will ensure a popup will never show again...
Title: Re: lotusnotify does not remember already read messages
Post by: Wishmaster on 17 04 2014, 13:04:09
It is currently marked as read in line 331:
Code: [Select]
        if(settingNewest && (pid->id > settingNewestID) ){
                db_set_dw(NULL, PLUGINNAME, "LNNewestID", settingNewestID=pid->id);
        }
So it is marked after you click the popup.

You want it to be always remembered, even if you dont take any action?  ???
Title: Re: lotusnotify does not remember already read messages
Post by: pepinlebref on 17 04 2014, 15:06:48
You want it to be always remembered, even if you dont take any action?  ???
Exactly, this is what I would like.
I can understand this as an enhancement and may need an additional setting...