X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sendlib.c;h=37592120ba61eb342b9de456e412f6720a0cfc1d;hp=2c5611a629cc251d7dd534065299c4402bd6fc59;hb=230399f9632c37b66c1c117a17e8327eae6b3235;hpb=c8c9a616c8c369da6aa06e656eacfb82af8707a8 diff --git a/sendlib.c b/sendlib.c index 2c5611a..3759212 100644 --- a/sendlib.c +++ b/sendlib.c @@ -24,11 +24,7 @@ #include #include -#include -#include -#include -#include -#include +#include #include #include @@ -2163,41 +2159,6 @@ int mutt_bounce_message (FILE * fp, HEADER * h, address_t * to) return ret; } - -/* given a list of addresses, return a list of unique addresses */ -address_t *mutt_remove_duplicates (address_t * addr) -{ - address_t *top = addr; - address_t **last = ⊤ - address_t *tmp; - int dodup = 0; - - while (addr) { - for (tmp = top; tmp && tmp != addr; tmp = tmp->next) { - if (tmp->mailbox && addr->mailbox && - !ascii_strcasecmp (addr->mailbox, tmp->mailbox)) { - dodup = 1; - break; - } - } - - if (dodup) { - *last = addr->next; - - addr->next = NULL; - address_list_wipe(&addr); - - addr = *last; - } - else { - last = &addr->next; - addr = addr->next; - } - } - - return (top); -} - static void set_noconv_flags (BODY * b, short flag) { for (; b; b = b->next) {