mutt stable branch with some hacks
at jcs 39 lines 748 B view raw
1#ifndef _URL_H 2# define _URL_H 3 4typedef enum url_scheme 5{ 6 U_FILE, 7 U_POP, 8 U_POPS, 9 U_IMAP, 10 U_IMAPS, 11 U_SMTP, 12 U_SMTPS, 13 U_MAILTO, 14 U_UNKNOWN 15} 16url_scheme_t; 17 18#define U_DECODE_PASSWD (1) 19#define U_PATH (1 << 1) 20 21typedef struct ciss_url 22{ 23 url_scheme_t scheme; 24 char *user; 25 char *pass; 26 char *host; 27 unsigned short port; 28 char *path; 29} 30ciss_url_t; 31 32url_scheme_t url_check_scheme (const char *s); 33int url_parse_file (char *d, const char *src, size_t dl); 34int url_parse_ciss (ciss_url_t *ciss, char *src); 35int url_ciss_tostring (ciss_url_t* ciss, char* dest, size_t len, int flags); 36int url_ciss_tobuffer (ciss_url_t* ciss, BUFFER* dest, int flags); 37int url_parse_mailto (ENVELOPE *e, char **body, const char *src); 38 39#endif