Routines for querying an external address book. More...
#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include "mutt/lib.h"
#include "address/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "mutt.h"
#include "lib.h"
#include "editor/lib.h"
#include "expando/lib.h"
#include "history/lib.h"
#include "key/lib.h"
#include "menu/lib.h"
#include "pattern/lib.h"
#include "send/lib.h"
#include "alias.h"
#include "functions.h"
#include "globals.h"
#include "gui.h"
#include "mutt_logging.h"
Go to the source code of this file.
Functions | |
bool | alias_to_addrlist (struct AddressList *al, struct Alias *alias) |
Turn an Alias into an AddressList. | |
void | query_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Query: Address - Implements ExpandoRenderData::get_string() -. | |
long | query_c_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Query: Index number - Implements ExpandoRenderData::get_number() -. | |
void | query_e (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Query: Extra information - Implements ExpandoRenderData::get_string() -. | |
void | query_n (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Query: Name - Implements ExpandoRenderData::get_string() -. | |
long | query_t_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Query: Tagged char - Implements ExpandoRenderData::get_number() -. | |
void | query_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Query: Tagged char - Implements ExpandoRenderData::get_string() -. | |
void | query_Y (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Query: Tags - Implements ExpandoRenderData::get_string() -. | |
static int | query_make_entry (struct Menu *menu, int line, int max_cols, struct Buffer *buf) |
Format an Alias for the Menu - Implements Menu::make_entry() -. | |
static int | query_tag (struct Menu *menu, int sel, int act) |
Tag an entry in the Query Menu - Implements Menu::tag() -. | |
int | query_run (const char *s, bool verbose, struct AliasList *al, const struct ConfigSubset *sub) |
Run an external program to find Addresses. | |
static int | query_window_observer (struct NotifyCallback *nc) |
Notification that a Window has changed - Implements observer_t -. | |
static struct MuttWindow * | query_dialog_new (struct AliasMenuData *mdata, const char *query) |
Create an Query Selection Dialog. | |
static bool | dlg_query (struct Buffer *buf, struct AliasMenuData *mdata) |
Get the user to enter an Address Query -. | |
int | query_complete (struct Buffer *buf, struct ConfigSubset *sub) |
Perform auto-complete using an Address Query. | |
void | query_index (struct Mailbox *m, struct ConfigSubset *sub) |
Perform an Alias Query and display the results. | |
Variables | |
const struct ExpandoRenderData | QueryRenderData [] |
Callbacks for Query Expandos. | |
static const struct Mapping | QueryHelp [] |
Help Bar for the Address Query dialog. | |
Routines for querying an external address book.
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 dlg_query.c.
bool alias_to_addrlist | ( | struct AddressList * | al, |
struct Alias * | alias | ||
) |
Turn an Alias into an AddressList.
al | AddressList to fill (must be empty) |
alias | Alias to use |
true | Success |
Definition at line 121 of file dlg_query.c.
int query_run | ( | const char * | s, |
bool | verbose, | ||
struct AliasList * | al, | ||
const struct ConfigSubset * | sub | ||
) |
Run an external program to find Addresses.
s | String to match |
verbose | If true, print progress messages |
al | Alias list to fill |
sub | Config items |
0 | Success |
-1 | Error |
Definition at line 273 of file dlg_query.c.
|
static |
Create an Query Selection Dialog.
mdata | Menu data holding Aliases |
query | Initial query string |
ptr | New Dialog |
Definition at line 380 of file dlg_query.c.
int query_complete | ( | struct Buffer * | buf, |
struct ConfigSubset * | sub | ||
) |
Perform auto-complete using an Address Query.
buf | Buffer for completion |
sub | Config item |
0 | Always |
Definition at line 480 of file dlg_query.c.
void query_index | ( | struct Mailbox * | m, |
struct ConfigSubset * | sub | ||
) |
Perform an Alias Query and display the results.
m | Mailbox |
sub | Config item |
Definition at line 562 of file dlg_query.c.
const struct ExpandoRenderData QueryRenderData |
Callbacks for Query Expandos.
Definition at line 98 of file dlg_query.c.
|
static |
Help Bar for the Address Query dialog.
Definition at line 101 of file dlg_query.c.