|
static void | maildir_check_dir (struct Mailbox *m, const char *dir_name, bool check_new, bool check_stats) |
| Check for new mail / mail counts. More...
|
|
static int | ch_compare (const void *a, const void *b) |
| qsort() callback to sort characters More...
|
|
void | maildir_gen_flags (char *dest, size_t destlen, struct Email *e) |
| Generate the Maildir flags for an email. More...
|
|
static int | maildir_commit_message (struct Mailbox *m, struct Message *msg, struct Email *e) |
| Commit a message to a maildir folder. More...
|
|
static int | maildir_rewrite_message (struct Mailbox *m, int msgno) |
| Sync a message in an MH folder. More...
|
|
static int | maildir_sync_message (struct Mailbox *m, int msgno) |
| Sync an email to a Maildir folder. More...
|
|
static void | maildir_update_mtime (struct Mailbox *m) |
| Update our record of the Maildir modification time. More...
|
|
static int | maildir_cmp_inode (const void *a, const void *b) |
| Compare two Maildirs by inode number - Implements sort_t -. More...
|
|
static int | maildir_parse_dir (struct Mailbox *m, struct MdEmailArray *mda, const char *subdir, struct Progress *progress) |
| Read a Maildir mailbox. More...
|
|
static size_t | maildir_hcache_keylen (const char *fn) |
| Calculate the length of the Maildir path. More...
|
|
static void | maildir_delayed_parsing (struct Mailbox *m, struct MdEmailArray *mda, struct Progress *progress) |
| This function does the second parsing pass. More...
|
|
static int | maildir_read_dir (struct Mailbox *m, const char *subdir) |
| Read a Maildir style mailbox. More...
|
|
static void | maildir_canon_filename (struct Buffer *dest, const char *src) |
| Generate the canonical filename for a Maildir folder. More...
|
|
static FILE * | maildir_open_find_message_dir (const char *folder, const char *unique, const char *subfolder, char **newname) |
| Find a message in a maildir folder. More...
|
|
void | maildir_parse_flags (struct Email *e, const char *path) |
| Parse Maildir file flags. More...
|
|
struct Email * | maildir_parse_stream (enum MailboxType type, FILE *fp, const char *fname, bool is_old, struct Email *e) |
| Parse a Maildir message. More...
|
|
struct Email * | maildir_parse_message (enum MailboxType type, const char *fname, bool is_old, struct Email *e) |
| Actually parse a maildir message. More...
|
|
bool | maildir_sync_mailbox_message (struct Mailbox *m, int msgno, struct HeaderCache *hc) |
| Save changes to the mailbox. More...
|
|
FILE * | maildir_open_find_message (const char *folder, const char *msg, char **newname) |
| Find a message by name. More...
|
|
int | maildir_check_empty (const char *path) |
| Is the mailbox empty. More...
|
|
static bool | maildir_ac_owns_path (struct Account *a, const char *path) |
| Check whether an Account own a Mailbox path - Implements MxOps::ac_owns_path() -. More...
|
|
static bool | maildir_ac_add (struct Account *a, struct Mailbox *m) |
| Add a Mailbox to an Account - Implements MxOps::ac_add() -. More...
|
|
static enum MxOpenReturns | maildir_mbox_open (struct Mailbox *m) |
| Open a Mailbox - Implements MxOps::mbox_open() -. More...
|
|
static bool | maildir_mbox_open_append (struct Mailbox *m, OpenMailboxFlags flags) |
| Open a Mailbox for appending - Implements MxOps::mbox_open_append() -. More...
|
|
static enum MxStatus | maildir_mbox_check (struct Mailbox *m) |
| Check for new mail - Implements MxOps::mbox_check() -. More...
|
|
static enum MxStatus | maildir_mbox_check_stats (struct Mailbox *m, uint8_t flags) |
| Check the Mailbox statistics - Implements MxOps::mbox_check_stats() -. More...
|
|
static enum MxStatus | maildir_mbox_sync (struct Mailbox *m) |
| Save changes to the Mailbox - Implements MxOps::mbox_sync() -. More...
|
|
static enum MxStatus | maildir_mbox_close (struct Mailbox *m) |
| Close a Mailbox - Implements MxOps::mbox_close() -. More...
|
|
static bool | maildir_msg_open (struct Mailbox *m, struct Message *msg, int msgno) |
| Open an email message in a Mailbox - Implements MxOps::msg_open() -. More...
|
|
bool | maildir_msg_open_new (struct Mailbox *m, struct Message *msg, const struct Email *e) |
| Open a new message in a Mailbox - Implements MxOps::msg_open_new() -. More...
|
|
static int | maildir_msg_commit (struct Mailbox *m, struct Message *msg) |
| Save changes to an email - Implements MxOps::msg_commit() -. More...
|
|
static int | maildir_msg_close (struct Mailbox *m, struct Message *msg) |
| Close an email - Implements MxOps::msg_close() -. More...
|
|
static int | maildir_msg_save_hcache (struct Mailbox *m, struct Email *e) |
| Save message to the header cache - Implements MxOps::msg_save_hcache() -. More...
|
|
static int | maildir_path_canon (char *buf, size_t buflen) |
| Canonicalise a Mailbox path - Implements MxOps::path_canon() -. More...
|
|
static int | maildir_path_parent (char *buf, size_t buflen) |
| Find the parent of a Mailbox path - Implements MxOps::path_parent() -. More...
|
|
static int | maildir_path_pretty (char *buf, size_t buflen, const char *folder) |
| Abbreviate a Mailbox path - Implements MxOps::path_pretty() -. More...
|
|
static enum MailboxType | maildir_path_probe (const char *path, const struct stat *st) |
| Is this a Maildir Mailbox? - Implements MxOps::path_probe() -. More...
|
|
Maildir local mailbox type.
- Authors
- Michael R. Elkins
- Thomas Roessler
- Michael R. Elkins
- Richard Russon
- Copyright
- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file maildir.c.