X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=muttlib.c;h=27cbdbd9d394e4bcc6f7954c960995903de4592e;hp=1c54b13fb1da6c5c3775f25a3a8cf59917883388;hb=723f7ae3f24f7881c9ce87abf933cd5bec4ac0bc;hpb=d04295aaf918032c1c2fafc94ddf637cf23341e9 diff --git a/muttlib.c b/muttlib.c index 1c54b13..27cbdbd 100644 --- a/muttlib.c +++ b/muttlib.c @@ -31,6 +31,7 @@ #include #include #include +#include #include @@ -39,7 +40,6 @@ #include "mutt.h" #include "mx.h" -#include "url.h" #include "attach.h" #include "version.h" @@ -322,7 +322,7 @@ char *_mutt_expand_path (char *s, size_t slen, int rx) HEADER *h; address_t *alias; - if ((alias = mutt_lookup_alias (s + 1))) { + if ((alias = alias_lookup(Aliases, s + 1))) { h = header_new(); h->env = envelope_new(); h->env->from = h->env->to = alias; @@ -552,19 +552,6 @@ void _mutt_mktemp (char *s, const char *src, int line) unlink (s); } -void mutt_free_alias (ALIAS ** p) -{ - ALIAS *t; - - while (*p) { - t = *p; - *p = (*p)->next; - p_delete(&t->name); - address_delete (&t->addr); - p_delete(&t); - } -} - /* collapse the pathname using ~ or = when possible */ void mutt_pretty_mailbox (char *s) {