X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=account.h;h=d9b5a550aa6ee651e4ee6eb58c7b9641bd2fb85d;hp=d3c7a76cf375db215810c63964e23cf0d41284ee;hb=f3cbb9f51357972f6e74244494236a41dc4d84cd;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/account.h b/account.h index d3c7a76..d9b5a55 100644 --- a/account.h +++ b/account.h @@ -1,19 +1,10 @@ /* - * Copyright (C) 2000-3 Brendan Cully - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * 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, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Copyright notice from original mutt: + * Copyright (C) 2000-5 Brendan Cully + * + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. */ /* remote host account manipulation (POP/IMAP) */ @@ -21,7 +12,7 @@ #ifndef _MUTT_ACCOUNT_H_ #define _MUTT_ACCOUNT_H_ 1 -#include "url.h" +#include /* account types */ enum { @@ -32,13 +23,15 @@ enum { }; /* account flags */ -#define M_ACCT_PORT (1<<0) -#define M_ACCT_USER (1<<1) -#define M_ACCT_PASS (1<<2) -#define M_ACCT_SSL (1<<3) +#define M_ACCT_PORT (1<<0) +#define M_ACCT_USER (1<<1) +#define M_ACCT_LOGIN (1<<2) +#define M_ACCT_PASS (1<<3) +#define M_ACCT_SSL (1<<4) typedef struct { char user[64]; + char login[64]; char pass[64]; char host[128]; unsigned short port; @@ -50,6 +43,7 @@ int mutt_account_match (const ACCOUNT * a1, const ACCOUNT * m2); int mutt_account_fromurl (ACCOUNT * account, ciss_url_t * url); void mutt_account_tourl (ACCOUNT * account, ciss_url_t * url); int mutt_account_getuser (ACCOUNT * account); +int mutt_account_getlogin (ACCOUNT * account); int mutt_account_getpass (ACCOUNT * account); void mutt_account_unsetpass (ACCOUNT * account);