A group of associated Mailboxes. More...
Go to the source code of this file.
Data Structures | |
struct | Account |
A group of associated Mailboxes. More... | |
struct | EventAccount |
An Event that happened to an Account. More... | |
Enumerations | |
enum | NotifyAccount { NT_ACCOUNT_ADD = 1 , NT_ACCOUNT_DELETE , NT_ACCOUNT_DELETE_ALL , NT_ACCOUNT_CHANGE } |
Types of Account Event. More... | |
Functions | |
TAILQ_HEAD (AccountList, Account) | |
void | account_free (struct Account **ptr) |
Free an Account. | |
bool | account_mailbox_add (struct Account *a, struct Mailbox *m) |
Add a Mailbox to an Account. | |
bool | account_mailbox_remove (struct Account *a, struct Mailbox *m) |
Remove a Mailbox from an Account. | |
struct Account * | account_new (const char *name, struct ConfigSubset *sub) |
Create a new Account. | |
A group of associated Mailboxes.
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 account.h.
enum NotifyAccount |
Types of Account Event.
Observers of NT_ACCOUNT will be passed an EventAccount.
Enumerator | |
---|---|
NT_ACCOUNT_ADD | Account has been added. |
NT_ACCOUNT_DELETE | Account is about to be deleted. |
NT_ACCOUNT_DELETE_ALL | All Accounts are about to be deleted. |
NT_ACCOUNT_CHANGE | Account has been changed. |
Definition at line 67 of file account.h.
TAILQ_HEAD | ( | AccountList | , |
Account | |||
) |
void account_free | ( | struct Account ** | ptr | ) |
Free an Account.
[out] | ptr | Account to free |
Definition at line 143 of file account.c.
true | Mailbox was added |
Definition at line 67 of file account.c.
Remove a Mailbox from an Account.
true | On success |
Definition at line 98 of file account.c.
struct Account * account_new | ( | const char * | name, |
struct ConfigSubset * | sub | ||
) |
Create a new Account.
name | Name for the Account |
sub | Parent Config Subset |
ptr | New Account |
Definition at line 44 of file account.c.