KIMAP
fetchjob.cpp
51 Q_EMIT q->headersReceived(selectedMailBox, pendingUids, pendingSizes, pendingFlags, pendingMessages);
52 Q_EMIT q->headersReceived(selectedMailBox, pendingUids, pendingSizes, pendingAttributes, pendingFlags, pendingMessages);
171 parameters += "(RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS (TO FROM MESSAGE-ID REFERENCES IN-REPLY-TO SUBJECT DATE)] FLAGS UID";
204 parameters += "(BODY.PEEK[HEADER.FIELDS (TO FROM MESSAGE-ID REFERENCES IN-REPLY-TO SUBJECT DATE)]";
206 parameters += " BODY.PEEK[" + part + ".MIME] BODY.PEEK[" + part + "]"; // krazy:exclude=doublequote_chars
245 if (!response.content.isEmpty() && d->tags.size() == 1 && d->tags.contains(response.content.first().toString())) {
254 } else if (response.content.size() == 4 && response.content[2].toString() == "FETCH" && response.content[3].type() == Response::Part::List) {
263 for (QList<QByteArray>::ConstIterator it = content.constBegin(); it != content.constEnd(); ++it) {
357 if (d->scope.mode == FetchScope::Headers || d->scope.mode == FetchScope::HeaderAndContent || d->scope.mode == FetchScope::FullHeaders) {
367 void FetchJobPrivate::parseBodyStructure(const QByteArray &structure, int &pos, KMime::Content *content)
394 content->contentType()->setBoundary(parameters.remove(0, parameters.indexOf("BOUNDARY") + 11).split('\"')[0]);
430 parseSentence(structure, pos); // Ditch the parameters... FIXME: Read it to get charset and name
448 QByteArray filename = disposition.remove(0, disposition.indexOf("FILENAME") + 11).split('\"')[0];
void setSequenceSet(const ImapSet &set)
Set which messages to fetch data for.
Definition: fetchjob.cpp:105
bool contains(const Key &key) const const
void messagesVanished(const KIMAP::ImapSet &uids)
Provides vanished messages.
@ FullHeaders
Fetch message size (in octets), internal date of the message, flags, UID and all RFC822 headers.
Definition: fetchjob.h:143
Q_EMITQ_EMIT
int indexOf(char ch, int from) const const
static ImapSet fromImapSequenceSet(const QByteArray &sequence)
Return the set corresponding to the given IMAP-compatible QByteArray representation.
Definition: imapset.cpp:285
Q_SCRIPTABLE Q_NOREPLY void start()
QByteArray number(int n, int base)
QList< QByteArray > split(char sep) const const
QByteArray trimmed() const const
@ HeaderAndContent
Fetch the message MIME headers and the content of parts specified in the parts field.
Definition: fetchjob.h:133
QList::const_iterator constBegin() const const
void setMimeType(const QByteArray &mimeType)
void clear()
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Used to indicate what message data should be fetched.
Definition: fetchjob.h:74
Message
QByteArray & remove(int pos, int len)
qlonglong toLongLong(bool *ok, int base) const const
void chop(int n)
QString i18n(const char *text, const TYPE &arg...)
contentDisposition disposition() const
QByteArray mid(int pos, int len) const const
void timeout()
Represents a set of natural numbers (1->∞) in a as compact as possible form.
Definition: imapset.h:126
Headers::ContentDisposition * contentDisposition(bool create=true)
bool startsWith(const QByteArray &ba) const const
bool setGmailExtensionsEnabled() const
Returns whether Gmail support is enabled.
Definition: fetchjob.cpp:142
void setUidBased(bool uidBased)
Set how the sequence set should be interpreted.
Definition: fetchjob.cpp:118
QDateTime fromString(const QString &string, Qt::DateFormat format)
bool contains(char ch) const const
void insert(int i, const T &value)
QByteArray & replace(int pos, int len, const char *after)
void setDisposition(contentDisposition disp)
void addContent(Content *content, bool prepend=false)
@ Structure
Fetch the MIME message body structure (the UID is also fetched)
Definition: fetchjob.h:104
QString mailBox() const
Returns the name of the mailbox the fetch job is executed on.
Definition: fetchjob.cpp:154
bool isEmpty() const const
QList::const_iterator constEnd() const const
const char * name(StandardAction id)
virtual void from7BitString(const char *s, size_t len)
bool endsWith(const QByteArray &ba) const const
int size() const const
QChar * data()
Headers::ContentType * contentType(bool create=true)
void setFilename(const QString &filename)
bool isEmpty() const
Returns true if this set doesn't contains any values.
Definition: imapset.cpp:305
QString message
Headers::ContentDescription * contentDescription(bool create=true)
RFC2822Date
Q_D(Todo)
void setBoundary(const QByteArray &s)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 10 2023 03:48:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 10 2023 03:48:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.