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 1658 of file imap.c.
1659{
1661 if (!url)
1662 return false;
1663
1666
1670 return rc;
1671}
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 775 of file mbox.c.
776{
778 return false;
779
781 if (!np)
782 return false;
783
785}
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 691 of file pop.c.
692{
694 if (!url)
695 return false;
696
699
703 return rc;
704}
POP-specific Account data -.
struct Connection * conn
Connection to POP server.