1 /**
2  * @file
3  * ConnAccount object used by POP and IMAP
4  *
5  * @authors
6  * Copyright (C) 2000-2007,2012 Brendan Cully <brendan@kublai.com>
7  *
8  * @copyright
9  * This program is free software: you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License as published by the Free Software
11  * Foundation, either version 2 of the License, or (at your option) any later
12  * version.
13  *
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17  * details.
18  *
19  * You should have received a copy of the GNU General Public License along with
20  * this program.  If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 /* remote host account manipulation (POP/IMAP) */
24 
25 #ifndef MUTT_MUTT_ACCOUNT_H
26 #define MUTT_MUTT_ACCOUNT_H
27 
28 struct ConnAccount;
29 struct Url;
30 
31 /**
32  * enum AccountType - Account types
33  */
34 enum AccountType
35 {
36   MUTT_ACCT_TYPE_NONE = 0, ///< Account type is unknown
37   MUTT_ACCT_TYPE_IMAP,     ///< Imap Account
38   MUTT_ACCT_TYPE_POP,      ///< Pop Account
39   MUTT_ACCT_TYPE_SMTP,     ///< Smtp Account
40   MUTT_ACCT_TYPE_NNTP,     ///< Nntp (Usenet) Account
41 };
42 
43 int   mutt_account_fromurl(struct ConnAccount *account, const struct Url *url);
44 void  mutt_account_tourl  (struct ConnAccount *account, struct Url *url);
45 
46 #endif /* MUTT_MUTT_ACCOUNT_H */
47