X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=sendlib.c;h=ef2b9daec1963cd530f1ff0f08b8ddfb81273755;hb=1ee89902de184a640c171ae3285bff6882a791bd;hp=2c5611a629cc251d7dd534065299c4402bd6fc59;hpb=10b7c16c8905d1b7ceaeeb6cfab9ad2ec03d8780;p=apps%2Fmadmutt.git diff --git a/sendlib.c b/sendlib.c index 2c5611a..ef2b9da 100644 --- a/sendlib.c +++ b/sendlib.c @@ -9,32 +9,14 @@ #define _SENDLIB_C 1 -#if HAVE_CONFIG_H -# include "config.h" -#endif +#include -#include -#include -#include -#include -#include -#include #include -#include -#include #include -#include -#include -#include -#include -#include - #include #include - #include - #include #include "mutt.h" @@ -2163,41 +2145,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) {