Connection Credentials External Command. More...
#include "config.h"
#include <stdio.h>
#include <sys/types.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "accountcmd.h"
#include "connaccount.h"
#include "globals.h"
#include "mutt_account.h"
Go to the source code of this file.
Functions | |
static void | make_cmd (struct Buffer *buf, const struct ConnAccount *cac, const char *cmd) |
Build the command line for the external account command. | |
static MuttAccountFlags | parse_one (struct ConnAccount *cac, char *line) |
Parse a single line of the response. | |
static MuttAccountFlags | call_cmd (struct ConnAccount *cac, const struct Buffer *cmd) |
Call the account command. | |
MuttAccountFlags | mutt_account_call_external_cmd (struct ConnAccount *cac) |
Retrieve account credentials via an external command. | |
Connection Credentials External Command.
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 accountcmd.c.
|
static |
Build the command line for the external account command.
buf | Buffer to fill with a command line |
cac | ConnAccount to read params from |
cmd | Account command from the user config |
Definition at line 47 of file accountcmd.c.
|
static |
Parse a single line of the response.
cac | ConnAccount to write to |
line | Line from the response |
num | MuttAccountFlags that matched |
MUTT_ACCT_NO_FLAGS | Failure |
Definition at line 74 of file accountcmd.c.
|
static |
Call the account command.
cac | ConnAccount to write to |
cmd | Command line to run |
num | MuttAccountFlags that matched |
MUTT_ACCT_NO_FLAGS | Failure |
Definition at line 132 of file accountcmd.c.
MuttAccountFlags mutt_account_call_external_cmd | ( | struct ConnAccount * | cac | ) |
Retrieve account credentials via an external command.
cac | ConnAccount to fill |
num | A bitmask of MuttAccountFlags that were retrieved on success |
MUTT_ACCT_NO_FLAGS | Failure |
Definition at line 165 of file accountcmd.c.