#include <stdbool.h>#include "core/lib.h"#include "alternates.h"#include "expando.h"#include "group.h"#include "module_data.h"Go to the source code of this file.
Functions | |
| void | alias_init (void) |
| void | alias_init_keys (struct NeoMutt *n, struct SubMenu *sm_generic) |
| Initialise the Alias Keybindings - Implements ::init_keys_api. | |
| void | alias_cleanup (void) |
| 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 (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the 'alias' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unalias (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| 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. | |
| void | mutt_auto_subscribe (const char *mailto) |
| Check if user is subscribed to mailing list. | |
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 | ) |
Initialise the Alias Keybindings - Implements ::init_keys_api.
Definition at line 120 of file functions.c.
| void alias_cleanup | ( | void | ) |
| 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 369 of file alias.c.
| struct AddressList * alias_lookup | ( | const char * | name | ) |
Find an Alias.
| name | Alias name to find |
Definition at line 274 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 601 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 311 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 297 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 329 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 89 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 135 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 105 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 353 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 508 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 414 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 491 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 110 of file reverse.c.
| void mutt_auto_subscribe | ( | const char * | mailto | ) |
Check if user is subscribed to mailing list.
| mailto | URL of mailing list subscribe |
Definition at line 49 of file commands.c.
|
extern |
Auto-Completion of Aliases.
Definition at line 108 of file complete.c.