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 "mutt_account.h"
Include dependency graph for accountcmd.c: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 46 of file accountcmd.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 73 of file accountcmd.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 131 of file accountcmd.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 164 of file accountcmd.c.
Here is the call graph for this function:
Here is the caller graph for this function: