Check whether an Account owns a Mailbox path.
More...
Check whether an Account owns a Mailbox path.
- Parameters
-
- Return values
-
- Precondition
- a is not NULL
-
path is not NULL
◆ comp_ac_owns_path()
static bool comp_ac_owns_path |
( |
struct Account * |
a, |
|
|
const char * |
path |
|
) |
| |
|
static |
◆ imap_ac_owns_path()
static bool imap_ac_owns_path |
( |
struct Account * |
a, |
|
|
const char * |
path |
|
) |
| |
|
static |
Check whether an Account owns a Mailbox path - Implements MxOps::ac_owns_path() -.
Definition at line 1744 of file imap.c.
1745{
1747 if (!url)
1748 return false;
1749
1752
1756 return rc;
1757}
bool mutt_istr_equal(const char *a, const char *b)
Compare two strings, ignoring case.
void * adata
Private data (for Mailbox backends)
Login details for a remote server.
char host[128]
Server to login to.
struct ConnAccount account
Account details: username, password, etc.
IMAP-specific Account data -.
struct Connection * conn
Connection to IMAP server.
A parsed URL proto://user:password@host:port/path?a=1&b=2
struct Url * url_parse(const char *src)
Fill in Url.
void url_free(struct Url **ptr)
Free the contents of a URL.
◆ maildir_ac_owns_path()
static bool maildir_ac_owns_path |
( |
struct Account * |
a, |
|
|
const char * |
path |
|
) |
| |
|
static |
◆ mh_ac_owns_path()
static bool mh_ac_owns_path |
( |
struct Account * |
a, |
|
|
const char * |
path |
|
) |
| |
|
static |
◆ mbox_ac_owns_path()
static bool mbox_ac_owns_path |
( |
struct Account * |
a, |
|
|
const char * |
path |
|
) |
| |
|
static |
Check whether an Account owns a Mailbox path - Implements MxOps::ac_owns_path() -.
Definition at line 872 of file mbox.c.
873{
875 return false;
876
878 if (!np)
879 return false;
880
882}
static const char * mailbox_path(const struct Mailbox *m)
Get the Mailbox's path string.
@ MUTT_MMDF
'mmdf' Mailbox type
@ MUTT_MBOX
'mbox' Mailbox type
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
#define STAILQ_FIRST(head)
enum MailboxType type
Type of Mailboxes this Account contains.
struct MailboxList mailboxes
List of Mailboxes.
struct Mailbox * mailbox
Mailbox in the list.
◆ nntp_ac_owns_path()
static bool nntp_ac_owns_path |
( |
struct Account * |
a, |
|
|
const char * |
path |
|
) |
| |
|
static |
◆ nm_ac_owns_path()
static bool nm_ac_owns_path |
( |
struct Account * |
a, |
|
|
const char * |
path |
|
) |
| |
|
static |
◆ pop_ac_owns_path()
static bool pop_ac_owns_path |
( |
struct Account * |
a, |
|
|
const char * |
path |
|
) |
| |
|
static |
Check whether an Account owns a Mailbox path - Implements MxOps::ac_owns_path() -.
Definition at line 692 of file pop.c.
693{
695 if (!url)
696 return false;
697
700
704 return rc;
705}
POP-specific Account data -.
struct Connection * conn
Connection to POP server.