55#ifndef MUTT_IMAP_LIB_H
56#define MUTT_IMAP_LIB_H
104int imap_mxcmp(
const char *mx1,
const char *mx2);
Convenience wrapper for the core headers.
MailboxType
Supported mailbox formats.
Manage where the email is piped to external commands.
MessageSaveOpt
Message save option.
const struct MxOps MxImapOps
IMAP Mailbox - Implements MxOps -.
int imap_path_canon(struct Buffer *buf)
Canonicalise a Mailbox path - Implements MxOps::path_canon() -.
enum MailboxType imap_path_probe(const char *path, const struct stat *st)
Is this an IMAP Mailbox? - Implements MxOps::path_probe() -.
int imap_mailbox_status(struct Mailbox *m, bool queue)
Refresh the number of total and new messages.
int imap_path_status(const char *path, bool queue)
Refresh the number of total and new messages.
int imap_parse_path(const char *path, struct ConnAccount *cac, char *mailbox, size_t mailboxlen)
Parse an IMAP mailbox name into ConnAccount, name.
void imap_notify_delete_email(struct Mailbox *m, struct Email *e)
Inform IMAP that an Email has been deleted.
int imap_browse(const char *path, struct BrowserState *state)
IMAP hook into the folder browser.
int imap_complete(struct Buffer *buf, const char *path)
Try to complete an IMAP folder path.
int imap_subscribe(const char *path, bool subscribe)
Subscribe to a mailbox.
int imap_wait_keep_alive(pid_t pid)
Wait for a process to change state.
void imap_get_parent_path(const char *path, char *buf, size_t buflen)
Get the path of the parent folder.
void imap_clean_path(char *path, size_t plen)
Cleans an IMAP path using imap_fix_path.
int imap_delete_mailbox(struct Mailbox *m, char *path)
Delete a mailbox.
int imap_mxcmp(const char *mx1, const char *mx2)
Compare mailbox names, giving priority to INBOX.
void imap_pretty_mailbox(char *path, size_t pathlen, const char *folder)
Prettify an IMAP mailbox name.
int imap_copy_messages(struct Mailbox *m, struct EmailArray *ea, const char *dest, enum MessageSaveOpt save_opt)
Server COPY messages to another folder.
int imap_fast_trash(struct Mailbox *m, const char *dest)
Use server COPY command to copy deleted messages to trash.
bool imap_search(struct Mailbox *m, const struct PatternList *pat)
Find messages in mailbox matching a pattern.
enum MxStatus imap_sync_mailbox(struct Mailbox *m, bool expunge, bool close)
Sync all the changes to the server.
int imap_access(const char *path)
Check permissions on an IMAP mailbox with a new connection.
void imap_keep_alive(void)
Poll the current folder to keep the connection alive.
void imap_logout_all(void)
Close all open connections.
enum MxStatus imap_check_mailbox(struct Mailbox *m, bool force)
Use the NOOP or IDLE command to poll for new mail.
int imap_mailbox_create(const char *folder)
Create a new IMAP mailbox.
int imap_mailbox_rename(const char *path)
Rename a mailbox.
void imap_init(void)
Setup feature commands.
MxStatus
Return values from mbox_check(), mbox_check_stats(), mbox_sync(), and mbox_close()
State of the file/mailbox browser.
String manipulation buffer.
Login details for a remote server.
The envelope/body of an email.