hrev48844 adds 2 changesets to branch 'master' old head: c4be934261f58574ade93ae129c206e4a5302197 new head: f7db4635b0957657c632698445b9614a6a128cbd overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=f7db4635b095+%5Ec4be934261f5 ---------------------------------------------------------------------------- 3d5b1581ac9b: POP3 mail add-on: fix fetching mail bodies without limit * "No limit set" is signaled by a negative value in fFetchBodyLimit (cf. logic in POP3Protocol::SyncMessages()) f7db4635b095: POP3 mail add-on: set unread attribute on fetched mail - ...to make the new mails show up in the "New E-Mail" query [ Julian Harnath <julian.harnath@xxxxxxxxxxxxxx> ] ---------------------------------------------------------------------------- 1 file changed, 4 insertions(+), 1 deletion(-) src/add-ons/mail_daemon/inbound_protocols/pop3/POP3.cpp | 5 ++++- ############################################################################ Commit: 3d5b1581ac9b7e19de73765175d0a2b2460e70a6 URL: http://cgit.haiku-os.org/haiku/commit/?id=3d5b1581ac9b Author: Julian Harnath <julian.harnath@xxxxxxxxxxxxxx> Date: Sun Mar 1 19:28:33 2015 UTC POP3 mail add-on: fix fetching mail bodies without limit * "No limit set" is signaled by a negative value in fFetchBodyLimit (cf. logic in POP3Protocol::SyncMessages()) ---------------------------------------------------------------------------- diff --git a/src/add-ons/mail_daemon/inbound_protocols/pop3/POP3.cpp b/src/add-ons/mail_daemon/inbound_protocols/pop3/POP3.cpp index cbd266b..7589462 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/pop3/POP3.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/pop3/POP3.cpp @@ -82,7 +82,7 @@ POP3Protocol::POP3Protocol(const BMailAccountSettings& settings) create_directory(fDestinationDir, 0777); - fFetchBodyLimit = 0; + fFetchBodyLimit = -1; if (fSettings.HasInt32("partial_download_limit")) fFetchBodyLimit = fSettings.FindInt32("partial_download_limit"); } ############################################################################ Revision: hrev48844 Commit: f7db4635b0957657c632698445b9614a6a128cbd URL: http://cgit.haiku-os.org/haiku/commit/?id=f7db4635b095 Author: Julian Harnath <julian.harnath@xxxxxxxxxxxxxx> Date: Sun Mar 1 19:57:29 2015 UTC POP3 mail add-on: set unread attribute on fetched mail - ...to make the new mails show up in the "New E-Mail" query ---------------------------------------------------------------------------- diff --git a/src/add-ons/mail_daemon/inbound_protocols/pop3/POP3.cpp b/src/add-ons/mail_daemon/inbound_protocols/pop3/POP3.cpp index 7589462..51a3d28 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/pop3/POP3.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/pop3/POP3.cpp @@ -39,6 +39,8 @@ #include <VolumeRoster.h> #include <Query.h> +#include <mail_util.h> + #include "crypt.h" #include "MailSettings.h" #include "MessageIO.h" @@ -235,6 +237,7 @@ POP3Protocol::SyncMessages() error = B_ERROR; file.WriteAttr("MAIL:size", B_INT32_TYPE, 0, &size, sizeof(int32)); + write_read_attr(file, B_UNREAD); // save manifest in case we get disturbed fManifest.Add(uid);