Desktop
/* $Id: mbox.c,v 1.4 2006/11/05 03:07:34 khorben Exp $ */
/* Copyright (c) 2006 The DeforaOS Project */
#include <stdlib.h>
#include "account.h"
/* variables */
char const mbox_type[] = "MBOX";
char const mbox_name[] = "Local folder";
AccountConfig mbox_config[] =
{
{ "mbox", "Inbox file", ACT_FILE, NULL },
{ "spool", "Incoming mails file", ACT_FILE, NULL },
{ "sent", "Sent mails file", ACT_FILE, NULL },
{ "draft", "Draft mails file", ACT_FILE, NULL },
{ NULL, NULL, ACT_NONE, NULL }
};
/* functions */
AccountFolder ** mbox_folders(void)
{
/* FIXME implement */
static AccountFolder inbox = { AF_INBOX, "Inbox" };
static AccountFolder drafts = { AF_DRAFTS, "Drafts"};
static AccountFolder sent = { AF_SENT, "Sent" };
static AccountFolder trash = { AF_TRASH, "Trash" };
static AccountFolder * folders[] =
{
&inbox, &drafts, &sent, &trash, NULL
};
return folders;
}
AccountPlugin account_plugin =
{
mbox_type,
mbox_name,
mbox_config,
mbox_folders
};