#include <stdbool.h>#include "core/lib.h"#include "alternates.h"#include "expando.h"#include "group.h"#include "module_data.h"
Include dependency graph for lib.h:
This graph shows which files directly or indirectly include this file: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 124 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 368 of file alias.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct AddressList * alias_lookup | ( | const char * | name | ) |
Find an Alias.
| name | Alias name to find |
Definition at line 273 of file alias.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_expand_aliases_env | ( | struct Envelope * | env | ) |
Expand aliases in all the fields of an Envelope.
| env | Envelope to expand |
Definition at line 310 of file alias.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_expand_aliases | ( | struct AddressList * | al | ) |
Expand aliases in a List of Addresses.
| al | AddressList |
Duplicate addresses are dropped
Definition at line 296 of file alias.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 328 of file alias.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 345 of file dlg_alias.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void alias_dialog | ( | struct Mailbox * | m, |
| struct ConfigSubset * | sub ) |
Open the aliases dialog.
| m | Mailbox |
| sub | Config item |
Definition at line 500 of file dlg_alias.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:Does the user have an alias for the given address.
| addr | Address to lookup |
| ptr | Matching Address |
Definition at line 112 of file reverse.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:
|
extern |
Auto-Completion of Aliases.
Definition at line 108 of file complete.c.