Go to the source code of this file.
Functions | |
void | alias_init (void) |
Set up the Alias globals. | |
void | alias_cleanup (void) |
Clean up the Alias globals. | |
void | alias_create (struct AddressList *al, const struct ConfigSubset *sub) |
Create a new Alias from an Address. | |
struct AddressList * | alias_lookup (const char *name) |
Find an Alias. | |
bool | mutt_addr_is_user (const struct Address *addr) |
Does the address belong to the user. | |
void | mutt_expand_aliases_env (struct Envelope *env) |
Expand aliases in all the fields of an Envelope. | |
void | mutt_expand_aliases (struct AddressList *al) |
Expand aliases in a List of Addresses. | |
struct AddressList * | mutt_get_address (struct Envelope *env, const char **prefix) |
Get an Address from an Envelope. | |
enum CommandResult | parse_alias (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse the 'alias' command - Implements Command::parse() -. | |
enum CommandResult | parse_unalias (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse the 'unalias' command - Implements Command::parse() -. | |
void | alias_tags_to_buffer (struct TagList *tl, struct Buffer *buf) |
Write a comma-separated list of tags to a Buffer. | |
void | parse_alias_comments (struct Alias *alias, const char *com) |
Parse the alias/query comment field. | |
void | parse_alias_tags (const char *tags, struct TagList *tl) |
Parse a comma-separated list of tags. | |
int | alias_complete (struct Buffer *buf, struct ConfigSubset *sub) |
Alias completion routine. | |
void | alias_dialog (struct Mailbox *m, struct ConfigSubset *sub) |
Open the aliases dialog. | |
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. | |
struct Address * | alias_reverse_lookup (const struct Address *addr) |
Does the user have an alias for the given address. | |
Variables | |
const struct CompleteOps | CompleteAliasOps |
Auto-Completion of Aliases. | |
Email Aliases.
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 lib.h.
void alias_init | ( | void | ) |
Set up the Alias globals.
Definition at line 714 of file alias.c.
void alias_cleanup | ( | void | ) |
Clean up the Alias globals.
Definition at line 722 of file alias.c.
void alias_create | ( | struct AddressList * | al, |
const struct ConfigSubset * | sub | ||
) |
Create a new Alias from an Address.
al | Address to use |
sub | Config items |
Definition at line 367 of file alias.c.
struct AddressList * alias_lookup | ( | const char * | name | ) |
Find an Alias.
name | Alias name to find |
Definition at line 277 of file alias.c.
bool mutt_addr_is_user | ( | const struct Address * | addr | ) |
Does the address belong to the user.
addr | Address to check |
true | The given address belongs to the user |
Definition at line 600 of file alias.c.
void mutt_expand_aliases_env | ( | struct Envelope * | env | ) |
Expand aliases in all the fields of an Envelope.
env | Envelope to expand |
Definition at line 309 of file alias.c.
void mutt_expand_aliases | ( | struct AddressList * | al | ) |
Expand aliases in a List of Addresses.
al | AddressList |
Duplicate addresses are dropped
Definition at line 295 of file alias.c.
struct AddressList * mutt_get_address | ( | struct Envelope * | env, |
const char ** | prefix | ||
) |
Get an Address from an Envelope.
ptr | AddressList in the Envelope |
Definition at line 327 of file alias.c.
void alias_tags_to_buffer | ( | struct TagList * | tl, |
struct Buffer * | buf | ||
) |
Write a comma-separated list of tags to a Buffer.
tl | Tags |
buf | Buffer for the result |
Definition at line 49 of file commands.c.
void parse_alias_comments | ( | struct Alias * | alias, |
const char * | com | ||
) |
Parse the alias/query comment field.
alias | Alias for the result |
com | Comment string |
If the comment contains a 'tags:' field, the result will be put in alias.tags
Definition at line 95 of file commands.c.
void parse_alias_tags | ( | const char * | tags, |
struct TagList * | tl | ||
) |
Parse a comma-separated list of tags.
tags | Comma-separated string |
tl | TagList for the results |
Definition at line 65 of file commands.c.
int alias_complete | ( | struct Buffer * | buf, |
struct ConfigSubset * | sub | ||
) |
Alias completion routine.
buf | Partial Alias to complete |
sub | Config items |
1 | Success |
0 | Error |
Given a partial alias, this routine attempts to fill in the alias from the alias list as much as possible. if given empty search string or found nothing, present all aliases
Definition at line 441 of file dlg_alias.c.
void alias_dialog | ( | struct Mailbox * | m, |
struct ConfigSubset * | sub | ||
) |
Open the aliases dialog.
m | Mailbox |
sub | Config item |
Definition at line 566 of file dlg_alias.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 556 of file dlg_query.c.
Does the user have an alias for the given address.
addr | Address to lookup |
ptr | Matching Address |
Definition at line 105 of file reverse.c.
|
extern |
Auto-Completion of Aliases.
Definition at line 108 of file complete.c.