X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=sort.c;h=3e60387f4ba457479701ff3454869c88ac54f6be;hb=45528548fd2dddcbef9396b0589ec88d722766ee;hp=b6aad7198c1f587ba15d998831d66f3dce8287a3;hpb=c98480f8568e6c1bc927c6c5f2b5e80b4aa6548c;p=apps%2Fmadmutt.git diff --git a/sort.c b/sort.c index b6aad71..3e60387 100644 --- a/sort.c +++ b/sort.c @@ -7,24 +7,16 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif +#include -#include -#include +#include #include "mutt.h" +#include "alias.h" #include "sort.h" #include "thread.h" #include "mutt_idna.h" - -#include -#include -#include -#include - #define SORTCODE(x) (Sort & SORT_REVERSE) ? -(x) : x /* function to use as discriminator when normal sort method is equal */ @@ -88,13 +80,13 @@ int compare_subject (const void *a, const void *b) return (SORTCODE (rc)); } -const char *mutt_get_name (ADDRESS * a) +const char *mutt_get_name (address_t * a) { - ADDRESS *ali; + const address_t *ali; const char *name = ""; if (a) { - if (option (OPTREVALIAS) && (ali = alias_reverse_lookup (a)) + if (option (OPTREVALIAS) && (ali = alias_reverse_lookup(a)) && ali->personal) name = ali->personal; else if (a->personal)