50 char tmp[128] = { 0 };
52 struct Url url = { 0 };
55 char *p = strchr(tmp,
'/');
113 char tmp[128] = { 0 };
115 struct Url url = { 0 };
118 char *p = strchr(tmp,
':');
136 char tmp[128] = { 0 };
153 const char *s = cac->
user;
170 { -1, -1, NULL, NULL },
int buf_add_printf(struct Buffer *buf, const char *fmt,...)
Format a string appending a Buffer.
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
@ ED_NTP_SCHEMA
ConnAccount.account.
@ ED_NTP_USERNAME
ConnAccount.user.
@ ED_NTP_PORT_IF
ConnAccount.port.
@ ED_NTP_SERVER
ConnAccount.account.
@ ED_NTP_ACCOUNT
ConnAccount.account.
@ ED_NTP_PORT
ConnAccount.port.
#define MUTT_ACCT_PORT
Port field has been set.
@ ED_NNTP
Nntp ED_NTP_ ExpandoDataNntp.
Structs that make up an email.
const struct ExpandoRenderCallback NntpRenderCallbacks[]
Callbacks for Newsrc Expandos.
static long nntp_port(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Newsrc: Port - Implements get_number_t -.
static long nntp_port_if_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Newsrc: Port if specified - Implements get_number_t -.
static void nntp_account(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Newsrc: Account url - Implements get_string_t -.
static void nntp_port_if(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Newsrc: Port if specified - Implements get_string_t -.
static void nntp_username(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Newsrc: Username - Implements get_string_t -.
static void nntp_server(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Newsrc: News server name - Implements get_string_t -.
static void nntp_schema(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Newsrc: Url schema - Implements get_string_t -.
Convenience wrapper for the library headers.
char * mutt_str_lower(char *str)
Convert all characters in the string to lowercase.
size_t mutt_str_copy(char *dest, const char *src, size_t dsize)
Copy a string into a buffer (guaranteeing NUL-termination)
void account_to_url(struct ConnAccount *cac, struct Url *url)
Fill URL with info from account.
Pop-specific Account data.
uint8_t MuttFormatFlags
Flags for expando_render(), e.g. MUTT_FORMAT_FORCESUBJ.
void * adata
Private data (for Mailbox backends)
String manipulation buffer.
Login details for a remote server.
char host[128]
Server to login to.
MuttAccountFlags flags
Which fields are initialised, e.g. MUTT_ACCT_USER.
unsigned short port
Port to connect to.
struct ConnAccount account
Account details: username, password, etc.
NNTP-specific Account data -.
struct Connection * conn
Connection to NNTP Server.
A parsed URL proto://user:password@host:port/path?a=1&b=2
int url_tostring(const struct Url *url, char *dest, size_t len, uint8_t flags)
Output the URL string for a given Url object.