simplify count_body_parts drastically.
[apps/madmutt.git] / alias.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9 #ifndef _MUTT_ALIAS_H
10 #define _MUTT_ALIAS_H
11
12 #include <lib-mime/mime.h>
13
14 typedef struct alias {
15   struct alias *self;           /* XXX - ugly hack */
16   char *name;
17   address_t *addr;
18   struct alias *next;
19   short tagged;
20   short del;
21   short num;
22 } ALIAS;
23
24 void mutt_create_alias (ENVELOPE *, address_t *);
25 int mutt_check_alias_name (const char *, char *);
26 address_t *mutt_get_address (ENVELOPE *, const char **);
27 address_t *mutt_lookup_alias (const char *s);
28 address_t *mutt_expand_aliases (address_t *);
29 void mutt_expand_aliases_env (ENVELOPE *);
30 void mutt_free_alias (ALIAS **);
31 address_t *alias_reverse_lookup (address_t *);
32 int mutt_alias_complete (char *, size_t);
33 int mutt_addr_is_user (address_t *);
34 void mutt_alias_menu (char *, size_t, ALIAS *);
35
36 #endif /* !_MUTT_ALIAS_H */