57 unsigned int ua = *(
unsigned int *) a;
58 unsigned int ub = *(
unsigned int *) b;
75 if (!uida || !buf || !pos)
79 if ((array_size == 0) || (*pos >= array_size))
85 unsigned int prev = start;
92 if (uid == (prev + 1))
134 const char *post,
struct UidArray *uida)
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_GET(head, idx)
Return the element at index.
int buf_add_printf(struct Buffer *buf, const char *fmt,...)
Format a string appending a Buffer.
size_t buf_len(const struct Buffer *buf)
Calculate the length of a Buffer.
void buf_reset(struct Buffer *buf)
Reset an existing Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
int imap_sort_uid(const void *a, const void *b, void *sdata)
Compare two UIDs - Implements sort_t -.
int imap_exec(struct ImapAccountData *adata, const char *cmdstr, ImapCmdFlags flags)
Execute a command and wait for the response from the server.
@ IMAP_EXEC_SUCCESS
Imap command executed or queued successfully.
#define IMAP_CMD_QUEUE
Queue a command, do not execute.
int ImapMaxCmdlen
Maximum length of IMAP commands before they must be split.
int imap_make_msg_set(struct UidArray *uida, struct Buffer *buf, int *pos)
Generate a compressed message set of UIDs.
int imap_exec_msg_set(struct ImapAccountData *adata, const char *pre, const char *post, struct UidArray *uida)
Execute a command using a set of UIDs.
Convenience wrapper for the library headers.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
Assorted sorting methods.
#define mutt_numeric_cmp(a, b)
String manipulation buffer.
IMAP-specific Account data -.