Parse Mailboxes Commands. More...
Include dependency graph for mailboxes.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | ParseMailbox |
| Parsed data for a single mailbox. More... | |
Enumerations | |
| enum | TriBool { TB_UNSET = -1 , TB_FALSE , TB_TRUE } |
| Tri-state boolean. More... | |
Functions | |
| ARRAY_HEAD (ParseMailboxArray, struct ParseMailbox) | |
| 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() -. | |
| 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() -. | |
| bool | mailbox_add_simple (const char *mailbox, struct Buffer *err) |
| Add a new Mailbox. | |
| bool | mailbox_remove_simple (const char *mailbox) |
| Remove a Mailbox. | |
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.h.
| enum TriBool |
Tri-state boolean.
| Enumerator | |
|---|---|
| TB_UNSET | Value hasn't been set. |
| TB_FALSE | Value is false. |
| TB_TRUE | Value is true. |
Definition at line 36 of file mailboxes.h.
| ARRAY_HEAD | ( | ParseMailboxArray | , |
| struct ParseMailbox | ) |
| 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:| 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:| 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: