KIMAP2::FetchJob::FetchScope
#include <fetchjob.h>
Public Types | |
enum | Mode { Headers , Flags , Structure , Content , Full , HeaderAndContent , FullHeaders } |
Public Attributes | |
quint64 | changedSince |
bool | gmailExtensionsEnabled |
Mode | mode |
QList< QByteArray > | parts |
Detailed Description
Used to indicate what message data should be fetched.
This doesn't provide the same fine-grained control over what is fetched that the IMAP FETCH command normally does, but the common cases are catered for.
Definition at line 74 of file fetchjob.h.
Member Enumeration Documentation
◆ Mode
Used to indicate what part of the message should be fetched.
Enumerator | |
---|---|
Headers | Fetch RFC-2822 or MIME message headers. To fetch MIME headers for a MIME part, populate the If the RFC-2822 headers are requested (so
|
Flags | Fetch the message flags (the UID is also fetched) |
Structure | Fetch the MIME message body structure (the UID is also fetched) |
Content | Fetch the message content (the UID is also fetched) To fetch only certain MIME parts (see Structure), populate the |
Full | Fetch the complete message. |
HeaderAndContent | Fetch the message MIME headers and the content of parts specified in the If Use case:
|
FullHeaders | Fetch message size (in octets), internal date of the message, flags, UID and all RFC822 headers. The |
Definition at line 82 of file fetchjob.h.
Constructor & Destructor Documentation
◆ FetchScope()
FetchJob::FetchScope::FetchScope | ( | ) |
Definition at line 62 of file fetchjob.cpp.
Member Data Documentation
◆ changedSince
quint64 KIMAP2::FetchJob::FetchScope::changedSince |
Specify to fetch only items with mod-sequence higher then changedSince
.
The server must have CONDSTORE capability (RFC4551).
Default value is 0 (ignored).
Definition at line 173 of file fetchjob.h.
◆ gmailExtensionsEnabled
bool KIMAP2::FetchJob::FetchScope::gmailExtensionsEnabled |
Enables retrieving of Gmail-specific extensions.
The FETCH response will contain X-GM-MSGID, X-GM-THRID and X-GM-LABELS
Do NOT enable this, unless talking to Gmail servers, otherwise the request may fail.
Definition at line 183 of file fetchjob.h.
◆ mode
Mode KIMAP2::FetchJob::FetchScope::mode |
Specify what message data should be fetched.
Definition at line 163 of file fetchjob.h.
◆ parts
QList<QByteArray> KIMAP2::FetchJob::FetchScope::parts |
Specify which message parts to operate on.
This refers to multipart-MIME message parts or MIME-IMB encapsulated message parts.
Note that this is ignored unless mode
is Headers or Content.
If mode
is Headers, this sets the parts to get the MIME headers for. If this list is empty, the headers for the whole message (the RFC-2822 headers) are fetched.
If mode
is Content, this sets the parts to fetch. Parts are fetched wholesale. If this list is empty, the whole message body is fetched (all MIME parts together).
Definition at line 158 of file fetchjob.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:56:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.