#include <lib-lib/buffer.h>
#include <lib-lib/file.h>
#include <lib-lib/debug.h>
+#include <lib-lib/url.h>
#include <lib-mime/mime.h>
#include "mutt.h"
#include "mx.h"
-#include "url.h"
#include "attach.h"
#include "version.h"
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;
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)
{