GUI select an IMAP mailbox from a list. More...
#include "config.h"#include <limits.h>#include <stdbool.h>#include <stdio.h>#include <string.h>#include "private.h"#include "mutt/lib.h"#include "config/lib.h"#include "email/lib.h"#include "core/lib.h"#include "conn/lib.h"#include "gui/lib.h"#include "mutt.h"#include "lib.h"#include "browser/lib.h"#include "editor/lib.h"#include "history/lib.h"#include "adata.h"#include "mdata.h"#include "mutt_logging.h"#include "muttlib.h"
Include dependency graph for browse.c:Go to the source code of this file.
Functions | |
| static void | add_folder (char delim, char *folder, bool noselect, bool noinferiors, struct BrowserState *state, bool isparent) |
| Format and add an IMAP folder to the browser. | |
| static int | browse_add_list_result (struct ImapAccountData *adata, const char *cmd, struct BrowserState *bstate, bool isparent) |
| Add entries to the folder browser. | |
| int | imap_browse (const char *path, struct BrowserState *state) |
| IMAP hook into the folder browser. | |
| int | imap_mailbox_create (const char *path) |
| Create a new IMAP mailbox. | |
| int | imap_mailbox_rename (const char *path) |
| Rename a mailbox. | |
GUI select an IMAP mailbox from a list.
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 browse.c.
|
static |
Format and add an IMAP folder to the browser.
| delim | Path delimiter |
| folder | Name of the folder |
| noselect | true if item isn't selectable |
| noinferiors | true if item has no children |
| state | Browser state to add to |
| isparent | true if item represents the parent folder |
The folder parameter should already be 'unmunged' via imap_unmunge_mbox_name().
Definition at line 69 of file browse.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add entries to the folder browser.
| adata | Imap Account data |
| cmd | Command string from server |
| bstate | Browser state to add to |
| isparent | Is this a shortcut for the parent directory? |
| 0 | Success |
| -1 | Failure |
Definition at line 155 of file browse.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int imap_browse | ( | const char * | path, |
| struct BrowserState * | state ) |
IMAP hook into the folder browser.
| path | Current folder |
| state | BrowserState to populate |
| 0 | Success |
| -1 | Failure |
Fill out browser_state, given a current folder to browse
Definition at line 197 of file browse.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int imap_mailbox_create | ( | const char * | path | ) |
Create a new IMAP mailbox.
| path | Mailbox to create |
| 0 | Success |
| -1 | Failure |
Prompt for a new mailbox name, and try to create it
Definition at line 394 of file browse.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int imap_mailbox_rename | ( | const char * | path | ) |
Rename a mailbox.
| path | Mailbox to rename |
| 0 | Success |
| -1 | Failure |
The user will be prompted for a new name.
Definition at line 449 of file browse.c.
Here is the call graph for this function:
Here is the caller graph for this function: