History log of /haiku/src/servers/mail/MailDaemonApplication.cpp
Revision Date Author Comments
# fbc2a57b 03-Mar-2023 Zach Dykstra <dykstra.zachary@gmail.com>

mail: filter messages in Trash from unread count

When moving an unread message to the Trash, a B_QUERY_UPDATE is
triggered, resulting in a global notification popup of the new message
count - inclusive of all messages on the volume. The on-disk location of
a mail message is now checked to determine if it's in the Trash, before
incrementing or decrementing the unread mail count (and triggering a
notification). This effectively filters out notifications for deleting
unread e-mail messages.

The Deskbar view uses the same logic to display the Mail/No Mail icon.
The B_QUERY_UPDATE handler here has been adjusted to match.

Additionally, unread mail messages in the trash are now filtered when
mail_daemon starts. This ensures that an accurate initial unread count
is set.

Fixes #18252
Fixes #17510

Change-Id: I9b8ec0b2b1f1ddb07797f8a9bedf32811f26f137
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6136
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Automation <automation@haiku-os.org>


# 45d7047c 28-Feb-2023 Zach Dykstra <dykstra.zachary@gmail.com>

mail: open New E-mail query on notification click

Change-Id: Iaf3fd1c5e8bdc537c67a796fe9aecb1451c825b8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6094
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Automation <automation@haiku-os.org>


# 7457ccb4 13-Aug-2018 Augustin Cavalier <waddlesplash@gmail.com>

BMessageFormat: Rename to BStringFormat.

The ICU class is named MessageFormat, but on Haiku, it sounds too much
like something related to BMessage (which it isn't in the slightest)
and not part of the Locale system. It works almost entirely with BStrings,
so naming it BStringFormat makes much more sense.

OK'ed by PulkoMandy and Humdinger.


# 81805393 04-Jan-2016 Axel Dörfler <axeld@pinc-software.de>

IMAP: setting flags, and body fetching works now.

* The direct methods in BMailProtocol now forward the request to the
looper; it's no longer the mail_daemon's responsibility to know
anything about that protocol.
* It's in desperate need of refactoring, but it doesn't hurt to add
it to the repository as is.


# 30ac5550 16-Dec-2015 Axel Dörfler <axeld@pinc-software.de>

mail_daemon: Only show new message count for new messages.

* Ie. do not show it always when the new message count changes,
only show it when it increases.


# 893e3de8 27-Nov-2015 Axel Dörfler <axeld@pinc-software.de>

mail_daemon: Converted to BServer.


# 62eec600 21-Nov-2015 Axel Dörfler <axeld@pinc-software.de>

SMTP works again.

* The message to send the mails never made it to the add-on looper.
* Mail protocol threads now have names.
* Added a "public" BOutboundMailProtocol::SendMessages() call that sends
itself a message (even the correct one this time).


# 0b90f99b 14-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

Mail server: fix disabling notifications

* The default notifier didn't always take the setting into account.
* The mail server was not using the setting from the settings file and
instead waiting for a message that wasn't sent anywhere.

Fixes #10852.


# 8705e1f6 22-May-2013 Axel Dörfler <axeld@pinc-software.de>

mail_daemon: cleanup, 30s auto check startup delay.

* Refactored new message retrieval a bit, so that the notification strings
aren't duplicated.
* The daemon now waits 30 seconds before doing the first mail check.


# 4cab719f 24-Mar-2013 Axel Dörfler <axeld@pinc-software.de>

mail_daemon: auto check message was leaked, send immediately.

* BMessageRunner does not take ownership of the message.
* Instead of waiting through the complete interval, we send an auto check
message immediately after launch (or whenever else the timer is being
started).
* Added constant instead of referring to 'moto' for the auto check message.


# daf972c9 30-Oct-2012 Axel Dörfler <axeld@pinc-software.de>

Renamed MailDaemon{App|.cpp|.h} to MailDaemonApplication[.{cpp|h}].


# 0b90f99bc3ba04f924e1706d9759a0ebcb93dd88 14-Jan-2015 Adrien Destugues <pulkomandy@gmail.com>

Mail server: fix disabling notifications

* The default notifier didn't always take the setting into account.
* The mail server was not using the setting from the settings file and
instead waiting for a message that wasn't sent anywhere.

Fixes #10852.


# 8705e1f6e7fcc9892785d1406b2d0c0e530d0e11 22-May-2013 Axel Dörfler <axeld@pinc-software.de>

mail_daemon: cleanup, 30s auto check startup delay.

* Refactored new message retrieval a bit, so that the notification strings
aren't duplicated.
* The daemon now waits 30 seconds before doing the first mail check.


# 4cab719ff29893ac868af8a6fa910e009b42322a 24-Mar-2013 Axel Dörfler <axeld@pinc-software.de>

mail_daemon: auto check message was leaked, send immediately.

* BMessageRunner does not take ownership of the message.
* Instead of waiting through the complete interval, we send an auto check
message immediately after launch (or whenever else the timer is being
started).
* Added constant instead of referring to 'moto' for the auto check message.


# daf972c99c4a66baa0bc4df698334eda8f224a7d 30-Oct-2012 Axel Dörfler <axeld@pinc-software.de>

Renamed MailDaemon{App|.cpp|.h} to MailDaemonApplication[.{cpp|h}].