DBus email notifications
Hi,
in research for the some daemons I searched through the various notifications the Jolla emits. And I found out that after I have one unread email the informations which are send out from messageserver5 are not that helpful anymore. Why don't you even fill out the x-nemo-preview-body?
method call sender=:1.26 -> dest=org.freedesktop.Notifications serial=770 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
string "messageserver5"
uint32 0
string ""
string "new emails"
string ""
array [
string "default"
string ""
]
array [
dict entry(
string "x-nemo-preview-body"
variant string ""
)
dict entry(
string "x-nemo-item-count"
variant int32 2
)
dict entry(
string "x-nemo.email.published-messages"
variant string "230,229"
)
dict entry(
string "x-nemo-remote-action-default"
variant string "com.jolla.email.ui /com/jolla/email/ui com.jolla.email.ui openCombinedInbox"
)
dict entry(
string "x-nemo-preview-summary"
variant string "1 new email"
)
dict entry(
string "category"
variant string "x-nemo.email"
)
dict entry(
string "x-nemo-timestamp"
variant string "2014-08-11T13:27:36Z"
)
]
int32 -1
It would be very cool to add these values even when one message is already unread.
What's your suggestion ? Once you have more than one unread email does not make sense to show arbitrary email subject or sender from one of the received emails. IMO.
VDVsx ( 2014-08-12 16:52:31 +0200 )editNot in the actual message which pops up in Jolla Notification but as a hidden feature. The actual used fields in the displayed notifications of Jolla are in this case: string "new emails" and string "x-nemo-item-count" variant int32 2.
So why not fill out x-nemo-preview-summary and x-nemo-preview-body in the full way to make it possible for thirdparty apps to parse these messages.
Sailor ( 2014-08-12 17:01:14 +0200 )editWell, if the missing ones are filled they will be shown in the UI as well, check the dbus notification while having no unread messages.
VDVsx ( 2014-08-12 17:17:28 +0200 )editThen maybe it is possible to add an extra flag with the informations if x-nemo-item-count is >2?
Or make it possible to get the last email received directly from the mailapp for example.
Sailor ( 2014-08-12 18:49:09 +0200 )editNot sure what you are looking for here, can you elaborate ? What's the value to show the last email received when you received 5 new emails ?
VDVsx ( 2014-08-13 08:26:13 +0200 )edit