diff options
author | Vincent Richard <[email protected]> | 2005-07-25 11:08:34 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-07-25 11:08:34 +0000 |
commit | bd925cef1c7a05394dcf518a7b103997324c3552 (patch) | |
tree | 191c0c790af1946d14fc933e015e3f6d566add87 /src/messaging/pop3/POP3Message.cpp | |
parent | Don't throw if no field is found, just return normal priority. (diff) | |
download | vmime-bd925cef1c7a05394dcf518a7b103997324c3552.tar.gz vmime-bd925cef1c7a05394dcf518a7b103997324c3552.zip |
Added FETCH_IMPORTANCE flag.
Diffstat (limited to '')
-rw-r--r-- | src/messaging/pop3/POP3Message.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/messaging/pop3/POP3Message.cpp b/src/messaging/pop3/POP3Message.cpp index 7b848f87..ed8999e3 100644 --- a/src/messaging/pop3/POP3Message.cpp +++ b/src/messaging/pop3/POP3Message.cpp @@ -170,12 +170,12 @@ void POP3Message::fetch(POP3Folder* folder, const int options) throw exceptions::operation_not_supported(); // Check for the real need to fetch the full header - if (!((options & folder::FETCH_ENVELOPE) || - (options & folder::FETCH_CONTENT_INFO) || - (options & folder::FETCH_FULL_HEADER))) - { + static const int optionsRequiringHeader = + folder::FETCH_ENVELOPE | folder::FETCH_CONTENT_INFO | + folder::FETCH_FULL_HEADER | folder::FETCH_IMPORTANCE; + + if (!(options & optionsRequiringHeader)) return; - } // No need to differenciate between FETCH_ENVELOPE, // FETCH_CONTENT_INFO, ... since POP3 only permits to |