Parse Mailboxes Commands. More...
#include "config.h"#include <stdbool.h>#include <stdio.h>#include "mutt/lib.h"#include "config/lib.h"#include "core/lib.h"#include "mailboxes.h"#include "parse/lib.h"#include "muttlib.h"#include "mx.h"#include "monitor.h"
Include dependency graph for mailboxes.c:Go to the source code of this file.
Functions | |
| static enum CommandResult | mailbox_add (const char *folder, const char *mailbox, const char *label, enum TriBool poll, enum TriBool notify, struct Buffer *err) |
| Add a new Mailbox. | |
| bool | mailbox_add_simple (const char *mailbox, struct Buffer *err) |
| Add a new Mailbox. | |
| void | parse_mailbox_free (struct ParseMailbox *pm) |
| Free a ParseMailbox structure. | |
| void | parse_mailbox_array_free (struct ParseMailboxArray *pma) |
| Free a ParseMailboxArray. | |
| bool | parse_mailboxes_args (const struct Command *cmd, struct Buffer *line, struct Buffer *err, struct ParseMailboxArray *args) |
| Parse the 'mailboxes' and 'named-mailboxes' commands. | |
| enum CommandResult | parse_mailboxes_exec (const struct Command *cmd, struct ParseMailboxArray *args, struct Buffer *err) |
| Execute the 'mailboxes' or 'named-mailboxes' command. | |
| enum CommandResult | parse_mailboxes (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the 'mailboxes' command - Implements Command::parse() -. | |
| static void | do_unmailboxes (struct Mailbox *m) |
| Remove a Mailbox from the Sidebar/notifications. | |
| bool | mailbox_remove_simple (const char *mailbox) |
| Remove a Mailbox. | |
| static void | do_unmailboxes_star (void) |
| Remove all Mailboxes from the Sidebar/notifications. | |
| enum CommandResult | parse_unmailboxes (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the 'unmailboxes' command - Implements Command::parse() -. | |
Parse Mailboxes Commands.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file mailboxes.c.
|
static |
Add a new Mailbox.
| folder | Path to use for '+' abbreviations |
| mailbox | Mailbox to add |
| label | Descriptive label |
| poll | Enable mailbox polling? |
| notify | Enable mailbox notification? |
| err | Buffer for error messages |
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Definition at line 53 of file mailboxes.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool mailbox_add_simple | ( | const char * | mailbox, |
| struct Buffer * | err ) |
Add a new Mailbox.
| true | Success |
Definition at line 157 of file mailboxes.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void parse_mailbox_free | ( | struct ParseMailbox * | pm | ) |
Free a ParseMailbox structure.
| pm | ParseMailbox to free |
Definition at line 168 of file mailboxes.c.
Here is the caller graph for this function:| void parse_mailbox_array_free | ( | struct ParseMailboxArray * | pma | ) |
Free a ParseMailboxArray.
| pma | ParseMailboxArray to free |
Definition at line 181 of file mailboxes.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool parse_mailboxes_args | ( | const struct Command * | cmd, |
| struct Buffer * | line, | ||
| struct Buffer * | err, | ||
| struct ParseMailboxArray * | args ) |
Parse the 'mailboxes' and 'named-mailboxes' commands.
| [in] | cmd | Command being parsed |
| [in] | line | Text to parse |
| [out] | err | Buffer for error messages |
| [out] | args | Parsed args |
| true | Success |
Parse:
mailboxes [[ -label <label> ] | -nolabel ] [ -notify | -nonotify ] [ -poll | -nopoll ] <mailbox> [ ... ]named-mailboxes [ -notify | -nonotify ] [ -poll | -nopoll ] <mailbox> [ ... ] Definition at line 206 of file mailboxes.c.
Here is the call graph for this function:
Here is the caller graph for this function:| enum CommandResult parse_mailboxes_exec | ( | const struct Command * | cmd, |
| struct ParseMailboxArray * | args, | ||
| struct Buffer * | err ) |
Execute the 'mailboxes' or 'named-mailboxes' command.
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Definition at line 319 of file mailboxes.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Remove a Mailbox from the Sidebar/notifications.
| m | Mailbox to unmailboxes |
Definition at line 368 of file mailboxes.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool mailbox_remove_simple | ( | const char * | mailbox | ) |
Remove a Mailbox.
| mailbox | Path of Mailbox to remove |
| true | Success |
Definition at line 394 of file mailboxes.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Remove all Mailboxes from the Sidebar/notifications.
Definition at line 419 of file mailboxes.c.
Here is the call graph for this function:
Here is the caller graph for this function: