imap4.h
file.
[Top]
in_host
through the port in_portNumber
.
#include <imap4.h>
int imap4_connect( imap4Client_t * in_pimap4,
const char * in_host,
unsigned short in_port,
char** out_ppTagID);
in_pimap4 | |
in_host | |
in_port | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.error, imap4Sink_t.ok, imap4_login,[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Tag_free, imap4_disconnect
#include <imap4.h>
int imap4_disconnect( imap4Client_t * in_pimap4 );
in_pimap4 |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.bye, imap4_connect, imap4_logout, imap4_close[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
#include <imap4.h>
int imap4_free(imap4Client_t ** in_ppimap4);
in_ppimap4 |
NSMAIL_OK
.imap4Client_t
structure. When the function returns, the client structure is set to null
. The user must free any pointers to opaque data.
imap4_logout, imap4_initialize, imap4Sink_free[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
#include <imap4.h>
int imap4_get_option(imap4Client_t * in_pimap4,
int in_option,
void* in_pOptionData);
in_pimap4 | |
in_option |
Pointer to option you want to set. See |
in_pOptionData |
NSMAIL_OK
.imap4_set_option[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
IMAP4
client structure and sets the response sink.
#include <imap4.h>
int imap4_initialize(imap4Client_t ** in_ppimap4,
imap4Sink_t * in_pimap4Sink);
in_ppimap4 | |
in_pimap4Sink |
NSMAIL_OK
.imap4Sink_free[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
#include <imap4.h>
int imap4_processResponses(imap4Client_t* in_pimap4);
in_pimap4 |
NSMAIL_OK
.
NSMAIL_ERR_TIMEOUT
.imap4_processResponses
again.
Do not call imap4_processResponses
after these operations: disconnecting, the set functions, initializing and freeing the client and sink.
imap4Sink_t[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
#include <imap4.h>
int imap4_sendCommand(imap4Client_t* in_pimap4,
const char* in_command,
char** out_ppTagID);
in_pimap4 | |
in_command | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.rawResponse, imap4Sink_t.taggedLine,[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4Tag_free
fetchData
.
#include <imap4.h>
int imap4_setChunkSize(imap4Client_t* in_pIMAP4,
int in_size);
in_pimap4 | |
in_size |
NSMAIL_OK
.imap4_setTimeout, imap4_connect[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
#include <imap4.h>
int imap4_set_option(imap4Client_t* in_pimap4,
int in_option,
void* in_pOptionData);
in_pimap4 | |
in_option |
Pointer to option you want to set. See |
in_pOptionData |
NSMAIL_OK
.imap4_get_option[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
#include <imap4.h>
void imap4_setResponseSink(imap4Client_t* in_pimap4,
imap4Sink_t *in_pimap4Sink);
in_pimap4 | |
in_pimap4Sink |
in_pimap4Sink
. This response sink replaces the one that was passed into imap4_initialize
.
imap4_initialize[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
processsResponses
before returning control to the user.
include <imap4.h>
void imap4_setTimeout(imap4Client_t* in_pimap4,
int in_timeout);
in_pimap4 | |
in_timeout |
imap4_processResponses[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
#include <imap4.h>
int imap4Sink_free(imap4Sink_t** out_ppimap4Sink);
out_ppimap4Sink | Pointer to a pointer to a client structure associated with the response sink to free. |
NSMAIL_OK
.null
on return. The user must free any opaque data.
imap4Sink_initialize, imap4Tag_free, imap4_free[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
#include <imap4.h>
int imap4Sink_initialize(imap4Sink_t** out_ppimap4Sink);
out_ppimap4Sink |
NSMAIL_OK
.imap4Sink
structure.
For more information, see Creating a Response Sink and SDK Response Sinks for C.
imap4Sink_t, imap4_connect, imap4_noop,[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_free, imap4_initialize
#include <imap4.h>
int imap4Tag_free(char** out_ppimap4Tag);
out_ppimap4Tag |
NSMAIL_OK
.IMAP4
command. Any function that allocates a tag must use
imap4Tag_free
to free the memory associated with the tag. This function frees the tag and sets the tag pointer to null
on return.
The tag (out_ppTagID
) generated by the IMAP4 functions can be used to help match the command and the response associated with it within the imap4Sink_t.taggedLine
response.
imap4_logout, imap4Sink_free, imap4_free, imap4Sink_t.taggedLine[Top] [General Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
Function |
Description
imap4_capability Requests a listing of capabilities that the server supports. imap4_login
| imap4_logout Informs the server that the client is done with the connection. imap4_noop
| |
---|
#include <imap4.h>
int imap4_capability(imap4Client_t* in_pimap4,
char** out_ppTagID);
in_pimap4 | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.capability, imap4Sink_t.taggedLine,[Top] [Non-Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_connect, imap4Tag_free
#include <imap4.h>
int imap4_login(imap4Client_t* in_pimap4,
const char* in_user,
const char* in_password,
char** out_ppTagID);
in_pimap4 | |
in_user | |
in_password | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.taggedLine, imap4Sink_t.error,[Top] [Non-Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4_logout, imap4Tag_free
#include <imap4.h>
int imap4_logout(imap4Client_t* in_pimap4,
char** out_ppTagID );
in_pimap4 | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.bye, imap4Sink_t.taggedLine,[Top] [Non-Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_close, imap4Tag_free
#include <imap4.h>
int imap4_noop(imap4Client_t* in_pimap4,
char** out_ppTagID);
in_pimap4 | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.imap4_noop
does nothing, but it induces useful side effects.
Most IMAP4 servers check for messages whenever a command is issued. In the absence of commands, the server does not check for messages and may disconnect. To keep the server open indefinitely and check for messages periodically, the developer could call imap4_noop
at set intervals.
The imap4_noop
function does nothing in itself, so it is ideal for polling for new mail and ensuring that the server connection is still active. imap4_noop
resets the autologout timer inside the server and results in the retrieval of unsolicited server responses. This may indicate the arrival of new messages or a change in the attributes of an existing message. For an example, see Checking for New Messages.
This function is mapped to one or more callbacks in the
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Remember to useimap4Tag_free
to free the memory associated with the tag allocated by this function. §
imap4Sink_t.exists, imap4Sink_t.expunge,[Top] [Non-Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.recent, imap4Sink_t.fetchStart,
imap4Sink_t.fetchFlags, imap4Sink_t.fetchEnd,
imap4Sink_t.taggedLine, imap4Sink_t.error,
imap4_connect, imap4Tag_free
#include <imap4.h>
int imap4_append( imap4Client_t* in_pimap4,
const char* in_mailbox,
const char* in_optFlags,
const char* in_optDateTime,
nsmail_inputstream_t* in_literal,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
in_optFlags | |
in_optDateTime | |
in_pInputLiteralStream | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.taggedLine, imap4Sink_t.error,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4_noop, imap4Tag_free
#include <imap4.h>
int imap4_create( imap4Client_t* in_pimap4,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.taggedLine, imap4Sink_t.error,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4_delete, imap4_rename,
imap4_subscribe, imap4_unsubscribe,
imap4_list, imap4_lsub, imap4Tag_free
#include <imap4.h>
int imap4_delete( imap4Client_t* in_pimap4,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.taggedLine,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_store, imap4_create,
imap4_rename, imap4_examine, imap4_subscribe,
imap4_unsubscribe, imap4_list,
imap4_lsub, imap4Tag_free
#include <imap4.h>
int imap4_examine(imap4Client_t* in_pimap4,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.imap4_select
function works like imap4_examine
, except that it selects the mailbox and its messages with update access. The user can perform operations that permanently alter the mailbox, such as storing or expunging.
This function is mapped to one or more callbacks in the
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.flags, imap4Sink_t.exists, imap4Sink_t.recent,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.ok, imap4Sink_t.taggedLine,
imap4Sink_t.error, imap4_select, imap4Tag_free
#include <imap4.h>
int imap4_list(imap4Client_t* in_pimap4,
const char* in_refName,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_refName | Pointer to the mailbox name within which you want to search. |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.in_mailbox
and in_refName
parameters.
This function sends the LIST IMAP4 protocol command. It is mapped to one or more callbacks in the
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.list, imap4Sink_t.taggedLine,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_lsub, imap4_create,
imap4_delete, imap4_rename, imap4_subscribe,
imap4_unsubscribe, imap4_lsub, imap4Tag_free
#include <imap4.h>
int imap4_lsub( imap4Client_t* in_pimap4,
const char* in_refName,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_refName | |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.lsub, imap4Sink_t.taggedLine,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_list, imap4_create,
imap4_delete, imap4_rename, imap4_subscribe,
imap4_unsubscribe, imap4_lsub, imap4Tag_free
#include <imap4.h>
int imap4_rename( imap4Client_t* in_pimap4,
const char* in_currentMB,
const char* in_newMB,
char** out_ppTagID);
in_pimap4 | |
in_currentMB | |
in_newMB | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.taggedLine,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_select,
imap4_create, imap4_delete,
imap4_subscribe, imap4_unsubscribe,
imap4_list, imap4_lsub, imap4Tag_free
#include <imap4.h>
int imap4_select( imap4Client_t* in_pimap4,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.imap4_examine
function works like imap4_select
, except that it selects the mailbox and its messages with read-only access. Operations that permanently alter the mailbox, such as storing, are not available.
This function is mapped to one or more callbacks in the
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.flags, imap4Sink_t.exists,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.recent, imap4Sink_t.ok,
imap4Sink_t.taggedLine, imap4Sink_t.error,
imap4_examine, imap4Tag_free
#include <imap4.h>
int imap4_status(imap4Client_t* in_pimap4,
const char* in_mailbox,
const char* in_statusData,
char** out_ppTagID);
in_pimap4 | |
in_mailbox_name | |
in_statusData |
Pointer to status data: All or a subset of |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.statusMessages, imap4Sink_t.statusRecent,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.statusUidnext, imap4Sink_t.statusUidvalidity,
imap4Sink_t.statusUnseen, imap4Sink_t.taggedLine,
imap4Sink_t.error, imap4Tag_free
#include <imap4.h>
int imap4_subscribe( imap4Client_t* in_pimap4,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.LSUB
protocol command through the imap4_lsub function.
This function is mapped to one or more callbacks in the
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.taggedLine,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_lsub, imap4_create,
imap4_delete, imap4_rename,
imap4_unsubscribe, imap4_list, imap4Tag_free
#include <imap4.h>
int imap4_unsubscribe(imap4Client_t* in_pimap4,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | Pointer to the name of mailbox to remove from subscribed list. |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.NOTE: UseThis function is mapped to one or more callbacks in theimap4Tag_free
to free the associated tag. §
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
imap4Sink_t.taggedLine, imap4Sink_t.error,[Top] [Authenticated State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4_subscribe, imap4_create, imap4_delete,
imap4_rename, imap4_list, imap4_lsub, imap4Tag_free
Function |
Description
imap4_check
| imap4_close
| imap4_copy
| imap4_expunge
| imap4_fetch
| imap4_search
| imap4_store
| imap4_uidCopy
| imap4_uidFetch
| imap4_uidSearch
| imap4_uidStore
| |
---|
#include <imap4.h>
int imap4_check(imap4Client_t* in_pimap4,
char** out_ppTagID);
in_pimap4 | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.taggedLine,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4Tag_free
#include <imap4.h>
int imap4_close(imap4Client_t* in_pimap4,
char** out_ppTagID);
in_pimap4 | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.\Deleted
flag. The session moves to the mailbox that contains the closed mailbox. This function sends the CLOSE IMAP4 protocol command. If you need to remove messages without closing, use imap4_expunge
. Also see Closing a Mailbox.
This function is mapped to one or more callbacks in the
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.taggedLine, imap4Sink_t.error,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4_logout, imap4_expunge, imap4Tag_free
#include <imap4.h>
int imap4_copy( imap4Client_t* in_pimap4,
const char* in_msgSet,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_msgSet | |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.taggedLine,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_store,
imap4_expunge, imap4Tag_free
#include <imap4.h>
int imap4_expunge(imap4Client_t* in_pimap4,
char** out_ppTagID);
in_pimap4 | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.\Deleted
flag. As described in RFC 2060, when a message is expunged, all messages with higher numbers are automatically decremented by one. This happens BEFORE this call returns, so, immediately following this call, you should decide whether you need to make adjustments to this change in the state of the message cache. Also see Closing a Mailbox.
This function sends the EXPUNGE IMAP4 protocol command. It is mapped to one or more callbacks in the
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.taggedLine,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4Sink_t.expunge,
imap4_delete, imap4_close, imap4_store,
imap4_copy, imap4Tag_free
#include <imap4.h>
int imap4_fetch(imap4Client_t* in_pimap4,
const char* in_msgSet,
const char* in_fetchCriteria,
char** out_ppTagID);
in_pimap4 | |
in_msgSet | |
in_fetchCriteria | Pointer to the criteria that fetched messages must meet. See the RFC 2060 Fetch Data Items table below for RFC 2060 values for this parameter. |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.fetchStart, imap4Sink_t.fetchEnd,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.fetchSize, imap4Sink_t.fetchData,
imap4Sink_t.fetchFlags, imap4Sink_t.fetchBodyStructure,
imap4Sink_t.fetchEnvelope, imap4Sink_t.fetchInternalDate,
imap4Sink_t.fetchHeader, imap4Sink_t.taggedLine,
imap4Sink_t.error, imap4_search,
imap4_uidFetch, imap4Tag_free
#include <imap4.h>
int imap4_search( imap4Client_t* in_pimap4,
const char* in_criteria,
char** out_ppTagID);
in_pimap4 | |
in_criteria | Pointer to search criteria consisting of one or more search keys. See the Search Function Search Keys table below for RFC 2060 values for this parameter. |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.searchStart, imap4Sink_t.search,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.searchEnd, imap4Sink_t.taggedLine,
imap4Sink_t.error, imap4_fetch,
imap4_uidSearch, imap4Sink_t.taggedLine,
imap4Sink_t.error, imap4Tag_free
#include <imap4.h>
int imap4_store(imap4Client_t* in_pimap4,
const char* in_msgSet,
const char* in_dataItem,
const char* in_value,
char** out_ppTagID);
in_pimap4 | |
in_msgSet | |
in_dataItem | Pointer to the data items you can search for. See the Data Item in the Store Function Data Items table below for RFC 2060 values for this parameter. |
in_value | Pointer to the value for the message data item. See the Value item in the Store Function Data Items table below for RFC 2060 values for this parameter. |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.taggedLine,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_delete,
imap4_copy, imap4_expunge, imap4Tag_free
#include <imap4.h>
int imap4_uidCopy(imap4Client_t* in_pimap4,
const char* in_msgSet,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_msgSet | Pointer to the unique message identifiers (UIDs) to copy, for example, "1:2" |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.taggedLine,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_copy,
imap4_expunge, imap4_store, imap4Tag_free
#include <imap4.h>
int imap4_uidFetch ( imap4Client_t* in_pimap4,
const char* in_msgSet,
const char* in_fetchCriteria,
char** out_ppTagID);
in_pimap4 | |
in_msgSet | Pointer to the unique message identifiers (UIDs) to fetch, for example, "1:2". |
in_fetchCriteria | Pointer to the message data item names; criteria that fetched messages must meet. See the RFC 2060 Fetch Data Items table below for RFC 2060 values for this parameter. |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.fetchStart, imap4Sink_t.fetchEnd,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.fetchSize, imap4Sink_t.fetchData,
imap4Sink_t.fetchFlags, imap4Sink_t.fetchBodyStructure,
imap4Sink_t.fetchEnvelope, imap4Sink_t.fetchInternalDate,
imap4Sink_t.fetchHeader, imap4Sink_t.fetchUid,
imap4Sink_t.taggedLine, imap4Sink_t.error,
imap4_search, imap4_uidFetch, imap4Tag_free,
imap4_fetch
#include <imap4.h>
int imap4_uidSearch( imap4Client_t* in_pimap4,
const char* in_criteria,
char** out_ppTagID);
in_pimap4 | |
in_criteria |
Pointer to the search criteria consisting of one or more search keys. See the Search Function Search Keys table in the |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.searchStart, imap4Sink_t.search,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.searchEnd, imap4Sink_t.taggedLine,
imap4Sink_t.error, imap4_search,
imap4_uidStore, imap4_uidFetch,
imap4_uidCopy, imap4Tag_free
#include <imap4.h>
int imap4_uidStore(imap4Client_t* in_pimap4,
const char* in_msgSet,
const char* in_dataItem,
const char* in_value,
char** out_ppTagID);
in_pimap4 | |
in_msgSet | Pointer to the message set, specified as unique identifiers. |
in_dataItem | |
in_value | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.taggedLine, imap4Sink_t.error,[Top] [Selected State Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4_uidSearch, imap4_uidStore, imap4_uidFetch,
imap4_uidCopy, imap4_store, imap4Tag_free
imap4_capability
function.
For details about extensions to IMAP4, see RFC 2086. For links to IMAP4 RFCs, see IMAP4 RFCs. Click the function name to get information about it.
NOTE: Only Message Server 4.0 supports the ACL and Namespace extensions. §
#include <imap4.h>
int imap4_deleteACL( imap4Client_t* in_pimap4,
const char* in_mailbox,
const char* in_authID,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
in_authID | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.taggedLine,[Top] [Extended IMAP4 Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_getACL,
imap4_setACL, imap4Tag_free
#include <imap4.h>
int imap4_getACL( imap4Client_t* in_pimap4,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.aclStart, imap4Sink_t.aclIdentifierRight,[Top] [Extended IMAP4 Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.aclEnd, imap4Sink_t.taggedLine,
imap4Sink_t.error,imap4Tag_free
,
imap4_deleteACL, imap4_setACL
#include <imap4.h>
int imap4_listRights(imap4Client_t* in_pimap4,
const char* in_mailbox,
const char* in_authID,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
in_authID | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4_setACL
function. The access control list is returned in an untagged ACL reply.
This function sends the LISTRIGHTS protocol command. It is mapped to one or more callbacks in the
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.listRightsStart,[Top] [Extended IMAP4 Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.listRightsRequiredRights,
imap4Sink_t.listRightsOptionalRights,
imap4Sink_t.listRightsEnd,imap4_setACL
,
imap4Sink_t.taggedLine, imap4Sink_t.error,
imap4_myRights, imap4Tag_free
#include <imap4.h>
int imap4_myRights(imap4Client_t* in_pimap4,
const char* in_mailbox,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.myRights, imap4Sink_t.taggedLine,[Top] [Extended IMAP4 Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.error, imap4_listRights,
imap4Tag_free
#include <imap4.h>
int imap4_nameSpace( imap4Client_t* in_pimap4,
char** out_ppTagID);
in_pimap4 | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.#news
can identify an address as a newsgroup mailbox name.
This function issues the NAMESPACE command. It is mapped to one or more callbacks in the
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.nameSpaceStart,[Top] [Extended IMAP4 Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.nameSpacePersonal,
imap4Sink_t.nameSpaceOtherUsers,
imap4Sink_t.nameSpaceShared,
imap4Sink_t.nameSpaceEnd, imap4Sink_t.taggedLine,
imap4Sink_t.error, imap4Tag_free
#include <imap4.h>
int imap4_setACL( imap4Client_t* in_pimap4,
const char* in_mailbox,
const char* in_authID,
const char* in_accessRight,
char** out_ppTagID);
in_pimap4 | |
in_mailbox | |
in_authID | |
in_accessRight | |
out_ppTagID |
Pointer to pointer to the tag associated with the function. Use |
NSMAIL_OK
.imap4_capability
command.
The identifier specified in the in_authID
parameter is granted rights as specified in the in_accessRight
parameter. Rights include any operations that the user can perform a mailbox. These can include lookup, read, write, post, create, delete, or keep information seen or unseen. For details, see RFC 2086.
This function sends the SETACL protocol command. It is mapped to one or more callbacks in the
imap4Sink_t
structure. For more information, see IMAP4 Function Callback Mapping.
NOTE: Useimap4Tag_free
to free the associated tag. §
imap4Sink_t.aclStart,[Top] [Extended IMAP4 Functions] [IMAP4 Functions by Functional Group] [IMAP4 Functions by Task]
imap4Sink_t.taggedLine, imap4Sink_t.error,
imap4_deleteACL, imap4_getACL,
imap4_myRights, imap4Tag_free
imap4Client_t
|
imap4Sink_t
|
#include <imap4.h>
typedef struct IMAP4 imap4Client_t;
[Top] [IMAP4 Structures]imap4Sink_t
#include <imap4.h>
typedef struct IMAP4Sink
{
void *pOpaqueData;
void (*taggedLine)(
imap4SinkPtr_t in_pimap4Sink,
char* in_tag,
const char* in_status,
const char* in_reason);
void (*error)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_tag,
const char* in_status,
const char* in_reason);
void (*ok)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_responseCode,
const char* in_information);
void (*rawResponse)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_data);
/*Fetch Response*/
void* (*fetchStart)(
imap4SinkPtr_t in_pimap4Sink,
int in_msg);
void (*fetchEnd)(
imap4SinkPtr_t in_pimap4Sink);
void (*fetchSize)(
imap4SinkPtr_t in_pimap4Sink,
int in_size);
void (*fetchData)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_data,
int in_bytesRead,
int in_totalBytes);
void (*fetchFlags)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_flags);
void (*fetchBodyStructure)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_bodyStructure);
void (*fetchEnvelope)(
imap4SinkPtr_t in_pimap4Sink,
const char** in_value,
int in_valueLength);
void (*fetchInternalDate)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_internalDate);
void (*fetchHeader)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_field,
const char* in_value);
void (*fetchUid)(imap4SinkPtr_t in_pimap4Sink,
int in_uid);
/*Lsub Response*/
void (*lsub)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_attribute,
const char* in_delimeter,
const char* in_name);
/*List Response*/
void (*list)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_attribute,
const char* in_delimeter,
const char* in_name);
/*Search Response*/
void* (*searchStart)(
imap4SinkPtr_t in_pimap4Sink);
void (*search)(
imap4SinkPtr_t in_pimap4Sink,
int in_message);
void (*searchEnd)(
imap4SinkPtr_t in_pimap4Sink);
/*Status Response*/
void (*statusMessages)(
imap4SinkPtr_t in_pimap4Sink,
int in_messages);
void (*statusRecent)(
imap4SinkPtr_t in_pimap4Sink,
int in_recent);
void (*statusUidnext)(
imap4SinkPtr_t in_pimap4Sink,
int in_uidNext);
void (*statusUidvalidity)(
imap4SinkPtr_t in_pimap4Sink,
int in_uidValidity);
void (*statusUnseen)(
imap4SinkPtr_t in_pimap4Sink,
int in_unSeen);
/*Capability Response*/
void (*capability)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_listing);
/*Exists Response*/
void (*exists)(
imap4SinkPtr_t in_pimap4Sink,
int in_messages);
/*Expunge Response*/
void (*expunge)(
imap4SinkPtr_t in_pimap4Sink,
int in_message);
/*Recent Response*/
void (*recent)(
imap4SinkPtr_t in_pimap4Sink,
int in_messages);
/*Flags Response*/
void (*flags)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_flags);
/*Bye Response*/
void (*bye)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_reason);
/*Namespace Response*/
void* (*nameSpaceStart)(
imap4SinkPtr_t in_pimap4Sink);
void (*nameSpacePersonal)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_personal);
void (*nameSpaceOtherUsers)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_otherUsers);
void (*nameSpaceShared)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_shared);
void (*nameSpaceEnd)(
imap4SinkPtr_t in_pimap4Sink);
/*ACL Responses*/
void* (*aclStart)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_mailbox);
void (*aclIdentifierRight)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_identifier,
const char* in_rights);
void (*aclEnd)(imap4SinkPtr_t in_pimap4Sink);
/*LISTRIGHTS Responses*/
void* (*listRightsStart)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_mailbox,
const char* in_identifier);
void (*listRightsRequiredRights)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_requiredRights);
void (*listRightsOptionalRights)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_optionalRights);
void (*listRightsEnd)(
imap4SinkPtr_t in_pimap4Sink);
/*MYRIGHTS Responses*/
void (*myRights)(
imap4SinkPtr_t in_pimap4Sink,
const char* in_mailbox,
const char* in_rights);
}imap4Sink_t;
NOTE: Useimap4Tag_free
to free tags generated by IMAP4 functions. §
imap4_initialize, imap4Sink_free, imap4Tag_free[Top] [IMAP4 Structures]
Last Updated: June 3, 1998