Abbreviate a Mailbox path.
More...
Abbreviate a Mailbox path.
- Parameters
-
path | Path to modify |
folder | Base path for '=' substitution |
- Return values
-
- Precondition
- path is not NULL
◆ comp_path_pretty()
static int comp_path_pretty |
( |
struct Buffer * |
path, |
|
|
const char * |
folder |
|
) |
| |
|
static |
Abbreviate a Mailbox path - Implements MxOps::path_pretty() -.
Definition at line 918 of file compress.c.
919{
921 return 0;
922
924 return 0;
925
926 return -1;
927}
char * HomeDir
User's home directory.
bool mutt_path_abbr_folder(struct Buffer *path, const char *folder)
Create a folder abbreviation.
bool mutt_path_pretty(struct Buffer *path, const char *homedir, bool is_dir)
Tidy a filesystem path.
◆ imap_path_pretty()
static int imap_path_pretty |
( |
struct Buffer * |
path, |
|
|
const char * |
folder |
|
) |
| |
|
static |
Abbreviate a Mailbox path - Implements MxOps::path_pretty() -.
Definition at line 2378 of file imap.c.
2379{
2380 if (!folder)
2381 return -1;
2382
2384 return 0;
2385}
void imap_pretty_mailbox(char *path, size_t pathlen, const char *folder)
Prettify an IMAP mailbox name.
size_t dsize
Length of data.
char * data
Pointer to data.
◆ maildir_path_pretty()
static int maildir_path_pretty |
( |
struct Buffer * |
path, |
|
|
const char * |
folder |
|
) |
| |
|
static |
◆ mh_path_pretty()
static int mh_path_pretty |
( |
struct Buffer * |
path, |
|
|
const char * |
folder |
|
) |
| |
|
static |
◆ mbox_path_pretty()
static int mbox_path_pretty |
( |
struct Buffer * |
path, |
|
|
const char * |
folder |
|
) |
| |
|
static |
◆ nntp_path_pretty()
static int nntp_path_pretty |
( |
struct Buffer * |
path, |
|
|
const char * |
folder |
|
) |
| |
|
static |
◆ nm_path_pretty()
static int nm_path_pretty |
( |
struct Buffer * |
path, |
|
|
const char * |
folder |
|
) |
| |
|
static |
◆ pop_path_pretty()
static int pop_path_pretty |
( |
struct Buffer * |
path, |
|
|
const char * |
folder |
|
) |
| |
|
static |