#include <imapcommand.h>
|
static imapCommand * | clientNoop () |
|
static imapCommand * | clientFetch (ulong uid, const TQString &fields, bool nouid=false) |
|
static imapCommand * | clientFetch (ulong fromUid, ulong toUid, const TQString &fields, bool nouid=false) |
|
static imapCommand * | clientFetch (const TQString &sequence, const TQString &fields, bool nouid=false) |
|
static imapCommand * | clientList (const TQString &reference, const TQString &path, bool lsub=false) |
|
static imapCommand * | clientSelect (const TQString &path, bool examine=false) |
|
static imapCommand * | clientClose () |
|
static imapCommand * | clienStatus (const TQString &path, const TQString ¶meters) |
|
static imapCommand * | clientCopy (const TQString &box, const TQString &sequence, bool nouid=false) |
|
static imapCommand * | clientAppend (const TQString &box, const TQString &flags, ulong size) |
|
static imapCommand * | clientCreate (const TQString &path) |
|
static imapCommand * | clientDelete (const TQString &path) |
|
static imapCommand * | clientSubscribe (const TQString &path) |
|
static imapCommand * | clientUnsubscribe (const TQString &path) |
|
static imapCommand * | clientExpunge () |
|
static imapCommand * | clientRename (const TQString &src, const TQString &dest) |
|
static imapCommand * | clientSearch (const TQString &search, bool nouid=false) |
|
static imapCommand * | clientStore (const TQString &set, const TQString &item, const TQString &data, bool nouid=false) |
|
static imapCommand * | clientLogout () |
|
static imapCommand * | clientStartTLS () |
|
static imapCommand * | clientSetACL (const TQString &box, const TQString &user, const TQString &acl) |
|
static imapCommand * | clientDeleteACL (const TQString &box, const TQString &user) |
|
static imapCommand * | clientGetACL (const TQString &box) |
|
static imapCommand * | clientListRights (const TQString &box, const TQString &user) |
|
static imapCommand * | clientMyRights (const TQString &box) |
|
static imapCommand * | clientSetAnnotation (const TQString &box, const TQString &entry, const TQMap< TQString, TQString > &attributes) |
|
static imapCommand * | clientGetAnnotation (const TQString &box, const TQString &entry, const TQStringList &attributeNames) |
|
static imapCommand * | clientNamespace () |
|
static imapCommand * | clientGetQuotaroot (const TQString &box) |
|
static imapCommand * | clientCustom (const TQString &command, const TQString &arguments) |
|
encapulate a IMAP command
- Author
- Svenn Carstens
- Date
- 2000
- Todo:
- fix the documentation
Definition at line 37 of file imapcommand.h.
◆ imapCommand() [1/2]
imapCommand::imapCommand |
( |
| ) |
|
◆ imapCommand() [2/2]
imapCommand::imapCommand |
( |
const TQString & |
command, |
|
|
const TQString & |
parameter |
|
) |
| |
Constructor.
- Parameters
-
command | Imap command |
parameter | Parameters to the command |
- Returns
- none
Definition at line 64 of file imapcommand.cpp.
◆ clienStatus()
imapCommand * imapCommand::clienStatus |
( |
const TQString & |
path, |
|
|
const TQString & |
parameters |
|
) |
| |
|
static |
◆ clientAppend()
imapCommand * imapCommand::clientAppend |
( |
const TQString & |
box, |
|
|
const TQString & |
flags, |
|
|
ulong |
size |
|
) |
| |
|
static |
◆ clientClose()
◆ clientCopy()
imapCommand * imapCommand::clientCopy |
( |
const TQString & |
box, |
|
|
const TQString & |
sequence, |
|
|
bool |
nouid = false |
|
) |
| |
|
static |
Create a COPY command.
- Parameters
-
box | |
sequence | |
nouid | Perform a COPY or UID COPY command |
- Returns
- a COPY imapCommand
Definition at line 221 of file imapcommand.cpp.
◆ clientCreate()
imapCommand * imapCommand::clientCreate |
( |
const TQString & |
path | ) |
|
|
static |
◆ clientCustom()
imapCommand * imapCommand::clientCustom |
( |
const TQString & |
command, |
|
|
const TQString & |
arguments |
|
) |
| |
|
static |
Create a custom command.
- Parameters
-
command | The custom command |
arguments | The custom arguments |
- Returns
- a custom imapCommand
Definition at line 404 of file imapcommand.cpp.
◆ clientDelete()
imapCommand * imapCommand::clientDelete |
( |
const TQString & |
path | ) |
|
|
static |
◆ clientDeleteACL()
imapCommand * imapCommand::clientDeleteACL |
( |
const TQString & |
box, |
|
|
const TQString & |
user |
|
) |
| |
|
static |
Create a DELETEACL command.
- Parameters
-
box | mailbox name |
user | authentication identifier |
- Returns
- a DELETEACL imapCommand
Definition at line 323 of file imapcommand.cpp.
◆ clientExpunge()
◆ clientFetch() [1/3]
static imapCommand * imapCommand::clientFetch |
( |
const TQString & |
sequence, |
|
|
const TQString & |
fields, |
|
|
bool |
nouid = false |
|
) |
| |
|
static |
Create a FETCH command.
- Parameters
-
sequence | a IMAP FETCH sequence string |
fields | options to pass to the server |
nouid | Perform a FETCH or UID FETCH command |
- Returns
- a FETCH imapCommand Fetch a range of uids. The other clientFetch functions are just wrappers around this function.
Definition at line 187 of file imapcommand.cpp.
◆ clientFetch() [2/3]
static imapCommand * imapCommand::clientFetch |
( |
ulong |
fromUid, |
|
|
ulong |
toUid, |
|
|
const TQString & |
fields, |
|
|
bool |
nouid = false |
|
) |
| |
|
static |
Create a FETCH command.
- Parameters
-
fromUid | start uid of the messages to fetch |
toUid | last uid of the messages to fetch |
fields | options to pass to the server |
nouid | Perform a FETCH or UID FETCH command |
- Returns
- a FETCH imapCommand Fetch a range of uids
Definition at line 170 of file imapcommand.cpp.
◆ clientFetch() [3/3]
static imapCommand * imapCommand::clientFetch |
( |
ulong |
uid, |
|
|
const TQString & |
fields, |
|
|
bool |
nouid = false |
|
) |
| |
|
static |
Create a FETCH command.
- Parameters
-
uid | Uid of the message to fetch |
fields | options to pass to the server |
nouid | Perform a FETCH or UID FETCH command |
- Returns
- a FETCH imapCommand Fetch a single uid
Definition at line 164 of file imapcommand.cpp.
◆ clientGetACL()
imapCommand * imapCommand::clientGetACL |
( |
const TQString & |
box | ) |
|
|
static |
◆ clientGetAnnotation()
imapCommand * imapCommand::clientGetAnnotation |
( |
const TQString & |
box, |
|
|
const TQString & |
entry, |
|
|
const TQStringList & |
attributeNames |
|
) |
| |
|
static |
Create a GETANNOTATION command.
- Parameters
-
box | mailbox name |
entry | entry specifier |
attributeNames | attribute specifier |
- Returns
- a GETANNOTATION imapCommand
Definition at line 372 of file imapcommand.cpp.
◆ clientGetQuotaroot()
imapCommand * imapCommand::clientGetQuotaroot |
( |
const TQString & |
box | ) |
|
|
static |
◆ clientList()
static imapCommand * imapCommand::clientList |
( |
const TQString & |
reference, |
|
|
const TQString & |
path, |
|
|
bool |
lsub = false |
|
) |
| |
|
static |
Create a LIST command.
- Parameters
-
reference | |
path | The path to list |
lsub | Perform a LIST or a LSUB command |
- Returns
- a LIST imapCommand
Definition at line 195 of file imapcommand.cpp.
◆ clientListRights()
imapCommand * imapCommand::clientListRights |
( |
const TQString & |
box, |
|
|
const TQString & |
user |
|
) |
| |
|
static |
Create a LISTRIGHTS command.
- Parameters
-
box | mailbox name |
user | authentication identifier |
- Returns
- a LISTRIGHTS imapCommand
Definition at line 338 of file imapcommand.cpp.
◆ clientLogout()
◆ clientMyRights()
imapCommand * imapCommand::clientMyRights |
( |
const TQString & |
box | ) |
|
|
static |
◆ clientNamespace()
◆ clientNoop()
◆ clientRename()
imapCommand * imapCommand::clientRename |
( |
const TQString & |
src, |
|
|
const TQString & |
dest |
|
) |
| |
|
static |
◆ clientSearch()
imapCommand * imapCommand::clientSearch |
( |
const TQString & |
search, |
|
|
bool |
nouid = false |
|
) |
| |
|
static |
Create a SEARCH command.
- Parameters
-
search | |
nouid | Perform a UID SEARCH or a SEARCH command |
- Returns
- a SEARCH imapCommand
Definition at line 289 of file imapcommand.cpp.
◆ clientSelect()
static imapCommand * imapCommand::clientSelect |
( |
const TQString & |
path, |
|
|
bool |
examine = false |
|
) |
| |
|
static |
Create a SELECT command.
- Parameters
-
path | The path to select |
lsub | Perform a SELECT or a EXAMINE command |
- Returns
- a SELECT imapCommand
- Note
- We use always SELECT, because UW-IMAP doesn't check for new mail, when used with the "mbox driver" and the folder is opened with EXAMINE and Courier can't append to a mailbox that is in EXAMINE state
Definition at line 204 of file imapcommand.cpp.
◆ clientSetACL()
imapCommand * imapCommand::clientSetACL |
( |
const TQString & |
box, |
|
|
const TQString & |
user, |
|
|
const TQString & |
acl |
|
) |
| |
|
static |
Create a SETACL command.
- Parameters
-
box | mailbox name |
user | authentication identifier |
acl | access right modification (starting with optional +/-) |
- Returns
- a SETACL imapCommand
Definition at line 315 of file imapcommand.cpp.
◆ clientSetAnnotation()
imapCommand * imapCommand::clientSetAnnotation |
( |
const TQString & |
box, |
|
|
const TQString & |
entry, |
|
|
const TQMap< TQString, TQString > & |
attributes |
|
) |
| |
|
static |
Create a SETANNOTATION command.
- Parameters
-
box | mailbox name |
entry | entry specifier |
attributes | map of attribute names + values |
- Returns
- a SETANNOTATION imapCommand
Definition at line 353 of file imapcommand.cpp.
◆ clientStartTLS()
◆ clientStore()
imapCommand * imapCommand::clientStore |
( |
const TQString & |
set, |
|
|
const TQString & |
item, |
|
|
const TQString & |
data, |
|
|
bool |
nouid = false |
|
) |
| |
|
static |
Create a STORE command.
- Parameters
-
set | |
item | |
data | |
nouid | Perform a UID STORE or a STORE command |
- Returns
- a STORE imapCommand
Definition at line 295 of file imapcommand.cpp.
◆ clientSubscribe()
imapCommand * imapCommand::clientSubscribe |
( |
const TQString & |
path | ) |
|
|
static |
◆ clientUnsubscribe()
imapCommand * imapCommand::clientUnsubscribe |
( |
const TQString & |
path | ) |
|
|
static |
◆ command()
const TQString & imapCommand::command |
( |
| ) |
|
◆ getStr()
const TQString imapCommand::getStr |
( |
| ) |
|
returns the data to send to the server The function returns the complete data to be sent to the server (<id> <command> [<parameter>])
- Returns
- the data to send to the server
- Todo:
- possibly rename function to be clear of it's purpose
Definition at line 149 of file imapcommand.cpp.
◆ id()
const TQString & imapCommand::id |
( |
| ) |
|
◆ isComplete()
bool imapCommand::isComplete |
( |
| ) |
|
is it complete?
- Returns
- whether the command is completed
Definition at line 76 of file imapcommand.cpp.
◆ parameter()
const TQString & imapCommand::parameter |
( |
| ) |
|
◆ result()
const TQString & imapCommand::result |
( |
| ) |
|
get the result of the command
- Returns
- The result, i.e. first word of the result line, like OK
Definition at line 82 of file imapcommand.cpp.
◆ resultInfo()
const TQString & imapCommand::resultInfo |
( |
| ) |
|
get information about the result
- Returns
- Information about the result, i.e. the rest of the result line
Definition at line 88 of file imapcommand.cpp.
◆ setCommand()
void imapCommand::setCommand |
( |
const TQString & |
command | ) |
|
◆ setComplete()
void imapCommand::setComplete |
( |
| ) |
|
◆ setId()
void imapCommand::setId |
( |
const TQString & |
id | ) |
|
set the id
- Parameters
-
id | the id used by the command |
- Returns
- none
Definition at line 112 of file imapcommand.cpp.
◆ setParameter()
void imapCommand::setParameter |
( |
const TQString & |
parameter | ) |
|
set the command parameter(s)
- Parameters
-
parameter | the comand parameter(s) |
- Returns
- none
Definition at line 143 of file imapcommand.cpp.
◆ setResult()
void imapCommand::setResult |
( |
const TQString & |
result | ) |
|
set the completed state
- Parameters
-
- Returns
- none
Definition at line 125 of file imapcommand.cpp.
◆ setResultInfo()
void imapCommand::setResultInfo |
( |
const TQString & |
result | ) |
|
set the completed state
- Parameters
-
result | the command result information |
- Returns
- none
Definition at line 131 of file imapcommand.cpp.
◆ aCommand
TQString imapCommand::aCommand |
|
protected |
◆ aParameter
TQString imapCommand::aParameter |
|
protected |
◆ mComplete
bool imapCommand::mComplete |
|
protected |
◆ mId
TQString imapCommand::mId |
|
protected |
◆ mResult
TQString imapCommand::mResult |
|
protected |
◆ mResultInfo
TQString imapCommand::mResultInfo |
|
protected |
The documentation for this class was generated from the following files:
|