Container for Accounts, Notifications. More...
#include <locale.h>
#include <stdbool.h>
#include <stddef.h>
#include <sys/types.h>
#include "account.h"
#include "mailbox.h"
Go to the source code of this file.
Data Structures | |
struct | NeoMutt |
Container for Accounts, Notifications. More... | |
Macros | |
#define | mutt_file_fopen_masked(PATH, MODE) mutt_file_fopen_masked_full(PATH, MODE, __FILE__, __LINE__, __func__) |
Enumerations | |
enum | NotifyGlobal { NT_GLOBAL_STARTUP = 1 , NT_GLOBAL_SHUTDOWN , NT_GLOBAL_COMMAND } |
Events not associated with an object. More... | |
Functions | |
bool | neomutt_account_add (struct NeoMutt *n, struct Account *a) |
Add an Account to the global list. | |
bool | neomutt_account_remove (struct NeoMutt *n, const struct Account *a) |
Remove an Account from the global list. | |
void | neomutt_free (struct NeoMutt **ptr) |
Free a NeoMutt. | |
struct NeoMutt * | neomutt_new (struct ConfigSet *cs) |
Create the main NeoMutt object. | |
void | neomutt_mailboxlist_clear (struct MailboxList *ml) |
Free a Mailbox List. | |
size_t | neomutt_mailboxlist_get_all (struct MailboxList *head, struct NeoMutt *n, enum MailboxType type) |
Get a List of all Mailboxes. | |
Variables | |
struct NeoMutt * | NeoMutt |
Global NeoMutt object. | |
Container for Accounts, Notifications.
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 neomutt.h.
#define mutt_file_fopen_masked | ( | PATH, | |
MODE | |||
) | mutt_file_fopen_masked_full(PATH, MODE, __FILE__, __LINE__, __func__) |
enum NotifyGlobal |
Events not associated with an object.
Observers of NT_GLOBAL will not be passed any Event data.
Enumerator | |
---|---|
NT_GLOBAL_STARTUP | NeoMutt is initialised. |
NT_GLOBAL_SHUTDOWN | NeoMutt is about to close. |
NT_GLOBAL_COMMAND | A NeoMutt command. |
Add an Account to the global list.
true | Account was added |
Definition at line 110 of file neomutt.c.
Remove an Account from the global list.
true | Account was removed |
Definition at line 133 of file neomutt.c.
void neomutt_free | ( | struct NeoMutt ** | ptr | ) |
Free a NeoMutt.
[out] | ptr | NeoMutt to free |
Definition at line 86 of file neomutt.c.
Create the main NeoMutt object.
cs | Config Set |
ptr | New NeoMutt |
Definition at line 50 of file neomutt.c.
void neomutt_mailboxlist_clear | ( | struct MailboxList * | ml | ) |
size_t neomutt_mailboxlist_get_all | ( | struct MailboxList * | head, |
struct NeoMutt * | n, | ||
enum MailboxType | type | ||
) |
Get a List of all Mailboxes.
head | List to store the Mailboxes |
n | NeoMutt |
type | Type of Account to match, see MailboxType |
num | Number of Mailboxes in the List |
Definition at line 191 of file neomutt.c.