Another way would be to store the last notified uid with the preferences of
either
felamimail or notifications.
A preference to store and retrieve does not have to bee used and seen in the
prefernence
listing of
that application
You are able to set and retrieve the value in question with the preference
functionality.
So while you are within the session store the uids already notivied, and
update the
preference
with the last one notified. If there is no notified list with the session
check the last
notified uid, and
start of from there.
Hi Cristian,
What about a combination:
if (Recent || (!Recent && Unseen)) {
notify();
}
You’ll have the same disadvantage, but it’ll occur less often.
Oscar
Hi all,
I’m currently working on the mail notifications and encountered that the
recent flag is not reliable enough to filter messages by. There are several
reasons why and I just heard things like ‘Keep your hands off the recent
flag’ on many internet articles.
So, if nobody of the other devs objects I will do the following:
- Filter the messages by the ‘UNSEEN’ flag, NOT ‘RECENT’
- Notify on all ‘UNSEEN’ messages first
- write all UIDs of messages being notified into the users session
- Notify on all ‘UNSEEN’ and not already notified messages in further steps
A very small disadvantage will be: The user gets notified again on all
’UNSEEN’ messages if he re-enters eGW. Yes, I could store the UIDs of the
messages already notified about into a table but I don’t want to create a
caching table like it had been before in eGW 1.2. This will be very ugly.
Comments welcome.
Bye
Christian
Oscar van Eijk
Oveas Functionality Provider
Zwaardenburg 63 – 3437 RJ Nieuwegein
T: +31(0)30 - 889 7812 – F: +31(0)30 - 889 9117
[http://oveas.com – mailto:info@oveas.com
-> http://oveas.com]
Create and Deploy Rich Internet Apps outside the browser with
Adobe®AIR™
software. With Adobe AIR, Ajax developers can use existing skills and code
to
build responsive, highly engaging applications that combine the power of
local
resources and data with the reach of the web. Download the Adobe AIR SDK
and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Stylite GmbH
[ open style of IT ]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon 06352 . 70629-0
fax 06352 . 70629-30
www.stylite.de
Handelsregister Kaiserslautern HRB 30575
Geschäftsführer: Andre Keller, Gudrun Müller, Nigel Vickers, Ralf Becker