/* $Id: pop3.c,v 1.3 2007/06/13 18:02:22 khorben Exp $ */ /* Copyright (c) 2007 Pierre Pronchery */ /* This file is part of DeforaOS Desktop Mailer */ /* Mailer is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License version 2 as published by the Free * Software Foundation. * * Mailer 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 * Mailer; if not, write to the Free Software Foundation, Inc., 59 Temple Place, * Suite 330, Boston, MA 02111-1307 USA */ #include #include "account.h" /* variables */ char const pop3_type[] = "POP3"; char const pop3_name[] = "POP3 server"; AccountConfig pop3_config[] = { { "username", "Username", ACT_STRING, NULL }, { "password", "Password", ACT_PASSWORD, NULL }, { "hostname", "Server hostname", ACT_STRING, NULL }, { "port", "Server port", ACT_UINT16, NULL }, { "ssl", "Use SSL", ACT_BOOLEAN, NULL }, { "delete", "Delete read mails on server", ACT_BOOLEAN, NULL }, { NULL, NULL, ACT_NONE, NULL } }; /* functions */ AccountFolder ** pop3_folders(void) { /* FIXME implement */ static AccountFolder inbox = { AF_INBOX, "Inbox" }; static AccountFolder trash = { AF_TRASH, "Trash" }; static AccountFolder * folders[] = { &inbox, &trash, NULL }; return folders; } AccountPlugin account_plugin = { pop3_type, pop3_name, pop3_config, pop3_folders };