ConnAccount object used by POP and IMAP. More...
Go to the source code of this file.
Enumerations | |
enum | AccountType { MUTT_ACCT_TYPE_NONE = 0 , MUTT_ACCT_TYPE_IMAP , MUTT_ACCT_TYPE_POP , MUTT_ACCT_TYPE_SMTP , MUTT_ACCT_TYPE_NNTP , MUTT_ACCT_TYPE_MAX } |
Account types. More... | |
Functions | |
int | mutt_account_fromurl (struct ConnAccount *account, const struct Url *url) |
Fill ConnAccount with information from url. | |
void | mutt_account_tourl (struct ConnAccount *account, struct Url *url) |
Fill URL with info from account. | |
ConnAccount object used by POP and IMAP.
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 mutt_account.h.
enum AccountType |
Account types.
Enumerator | |
---|---|
MUTT_ACCT_TYPE_NONE | Account type is unknown. |
MUTT_ACCT_TYPE_IMAP | Imap Account. |
MUTT_ACCT_TYPE_POP | Pop Account. |
MUTT_ACCT_TYPE_SMTP | Smtp Account. |
MUTT_ACCT_TYPE_NNTP | Nntp (Usenet) Account. |
MUTT_ACCT_TYPE_MAX |
Definition at line 35 of file mutt_account.h.
int mutt_account_fromurl | ( | struct ConnAccount * | cac, |
const struct Url * | url | ||
) |
Fill ConnAccount with information from url.
cac | ConnAccount to fill |
url | Url to parse |
0 | Success |
-1 | Error |
Definition at line 44 of file mutt_account.c.
void mutt_account_tourl | ( | struct ConnAccount * | cac, |
struct Url * | url | ||
) |
Fill URL with info from account.
cac | Source ConnAccount |
url | Url to fill |
The URL information is a set of pointers into cac. Don't free or edit cac until you've finished with url (make a copy of cac if you need it for a while).
Definition at line 80 of file mutt_account.c.