diff options
| author | Vincent Richard <[email protected]> | 2013-11-14 23:17:40 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2013-11-14 23:17:40 +0100 |
| commit | 5915ca4e34d2192cb3ef06c8f47aaa4b16cf7f53 (patch) | |
| tree | df93293cf51e856abb91d8391cea9242362cefd7 /src/net/imap/IMAPFolder.cpp | |
| parent | Added missing export specifiers. (diff) | |
| download | vmime-5915ca4e34d2192cb3ef06c8f47aaa4b16cf7f53.tar.gz vmime-5915ca4e34d2192cb3ef06c8f47aaa4b16cf7f53.zip | |
Custom fetch attributes.
Diffstat (limited to 'src/net/imap/IMAPFolder.cpp')
| -rw-r--r-- | src/net/imap/IMAPFolder.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/net/imap/IMAPFolder.cpp b/src/net/imap/IMAPFolder.cpp index 94d7ab13..3a3615e6 100644 --- a/src/net/imap/IMAPFolder.cpp +++ b/src/net/imap/IMAPFolder.cpp @@ -751,7 +751,7 @@ std::vector <ref <folder> > IMAPFolder::getFolders(const bool recursive) } -void IMAPFolder::fetchMessages(std::vector <ref <message> >& msg, const int options, +void IMAPFolder::fetchMessages(std::vector <ref <message> >& msg, const fetchAttributes& options, utility::progressListener* progress) { ref <IMAPStore> store = m_store.acquire(); @@ -845,7 +845,7 @@ void IMAPFolder::fetchMessages(std::vector <ref <message> >& msg, const int opti } -void IMAPFolder::fetchMessage(ref <message> msg, const int options) +void IMAPFolder::fetchMessage(ref <message> msg, const fetchAttributes& options) { std::vector <ref <message> > msgs; msgs.push_back(msg); @@ -856,9 +856,10 @@ void IMAPFolder::fetchMessage(ref <message> msg, const int options) int IMAPFolder::getFetchCapabilities() const { - return (FETCH_ENVELOPE | FETCH_CONTENT_INFO | FETCH_STRUCTURE | - FETCH_FLAGS | FETCH_SIZE | FETCH_FULL_HEADER | FETCH_UID | - FETCH_IMPORTANCE); + return fetchAttributes::ENVELOPE | fetchAttributes::CONTENT_INFO | + fetchAttributes::STRUCTURE | fetchAttributes::FLAGS | + fetchAttributes::SIZE | fetchAttributes::FULL_HEADER | + fetchAttributes::UID | fetchAttributes::IMPORTANCE; } |
