X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/19304f7c526fbe36ba0db2fb80bcaf3bd974d81d..594a6a48c983f012a70323047c723ef48883934a:/imap/imap_private.h diff --git a/imap/imap_private.h b/imap/imap_private.h index 9a861aa..9e61494 100644 --- a/imap/imap_private.h +++ b/imap/imap_private.h @@ -70,6 +70,9 @@ #define IMAP_CMD_PASS (1<<1) #define IMAP_CMD_QUEUE (1<<2) +/* length of "DD-MMM-YYYY HH:MM:SS +ZZzz" (null-terminated) */ +#define IMAP_DATELEN 27 + enum { IMAP_FATAL = 1, @@ -272,7 +275,7 @@ int imap_continue (const char* msg, const char* resp); void imap_error (const char* where, const char* msg); IMAP_DATA* imap_new_idata (void); void imap_free_idata (IMAP_DATA** idata); -char* imap_fix_path (IMAP_DATA* idata, char* mailbox, char* path, +char* imap_fix_path (IMAP_DATA* idata, const char* mailbox, char* path, size_t plen); void imap_cachepath(IMAP_DATA* idata, const char* mailbox, char* dest, size_t dlen); @@ -281,6 +284,7 @@ char* imap_get_qualifier (char* buf); int imap_mxcmp (const char* mx1, const char* mx2); char* imap_next_word (char* s); time_t imap_parse_date (char* s); +void imap_make_date (char* buf, time_t timestamp); void imap_qualify_path (char *dest, size_t len, IMAP_MBOX *mx, char* path); void imap_quote_string (char* dest, size_t slen, const char* src); void imap_unquote_string (char* s);