85 if (
adata->conn->close)
103 static unsigned char new_seqid =
'a';
105 adata->seqid = new_seqid;
107 adata->cmdslots = c_imap_pipeline_depth + 2;
110 if (++new_seqid >
'z')
void buf_dealloc(struct Buffer *buf)
Release the memory allocated by a buffer.
short cs_subset_number(const struct ConfigSubset *sub, const char *name)
Get a number config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
@ MUTT_IMAP
'IMAP' Mailbox type
void imap_adata_free(void **ptr)
Free the private Account data - Implements Account::adata_free() -.
#define mutt_debug(LEVEL,...)
static int imap_timeout_observer(struct NotifyCallback *nc)
Notification that a timeout has occurred - Implements observer_t -.
struct ImapAccountData * imap_adata_new(struct Account *a)
Allocate and initialise a new ImapAccountData structure.
struct ImapAccountData * imap_adata_get(struct Mailbox *m)
Get the Account data for this mailbox.
@ IMAP_AUTHENTICATED
Connection is authenticated.
enum MxStatus imap_check_mailbox(struct Mailbox *m, bool force)
Use the NOOP or IDLE command to poll for new mail.
@ LL_DEBUG5
Log at debug level 5.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
time_t mutt_date_now(void)
Return the number of seconds since the Unix epoch.
Convenience wrapper for the library headers.
bool notify_observer_remove(struct Notify *notify, const observer_t callback, const void *global_data)
Remove an observer from an object.
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
@ NT_TIMEOUT
Timeout has occurred.
Pop-specific Account data.
A group of associated Mailboxes.
void * adata
Private data (for Mailbox backends)
IMAP-specific Account data -.
enum MailboxType type
Mailbox type.
struct Account * account
Account that owns this Mailbox.
Container for Accounts, Notifications.
struct Notify * notify_timeout
Timeout notifications handler.
struct ConfigSubset * sub
Inherited config items.
Data passed to a notification function.
enum NotifyType event_type
Send: Event type, e.g. NT_ACCOUNT.
void * global_data
Data from notify_observer_add()