X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=alias.c;h=68afc256a0c64e24632a477113dbef4a91f6a6be;hp=460217626c7a48702749b56c6554baf237e7e06f;hb=6ebff74ad242d4c56fb7762965b19cee14fd2daa;hpb=a742b680bdba8cb47d2b81ab3397cdbec7ed5b69 diff --git a/alias.c b/alias.c index 4602176..68afc25 100644 --- a/alias.c +++ b/alias.c @@ -25,20 +25,7 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include - -#include -#include -#include -#include -#include -#include -#include +#include #include @@ -66,6 +53,8 @@ static struct mapping_t AliasHelp[] = { {NULL, OP_NULL} }; +static void mutt_alias_menu(char *, size_t, alias_t *); + const address_t *alias_lookup(const char *s) { alias_t *list; @@ -311,7 +300,7 @@ void mutt_create_alias(ENVELOPE *cur, address_t *iadr) buf[0] = '\0'; rfc822_write_address(buf, sizeof(buf), new->addr, 0); write_safe_address(rc, buf); - fclose(rc); + m_fclose(&rc); mutt_message _("Alias added."); } else { mutt_perror(buf); @@ -381,7 +370,8 @@ address_t *mutt_expand_aliases(address_t *a) t = mutt_expand_aliases_r(a, &expn); string_list_wipe(&expn); - return mutt_remove_duplicates(t); + address_list_uniq(t); + return t; } void mutt_expand_aliases_env(ENVELOPE *env)