X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sort.c;h=6b6d737fe4d0d0192e29d3e7671603928a73463a;hp=38e9d871ef0cd394741ff5d72fd3a924f5af7eb5;hb=2c56b665394c80195b976537e608b690947fcb14;hpb=d4321859bb9ce5b43fbd8303394cf98ae7720a38 diff --git a/sort.c b/sort.c index 38e9d87..6b6d737 100644 --- a/sort.c +++ b/sort.c @@ -11,20 +11,20 @@ # include "config.h" #endif +#include +#include +#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 */ @@ -94,7 +94,7 @@ const char *mutt_get_name (address_t * a) const char *name = ""; if (a) { - if (option (OPTREVALIAS) && (ali = alias_reverse_lookup(Aliases, a)) + if (option (OPTREVALIAS) && (ali = alias_reverse_lookup(a)) && ali->personal) name = ali->personal; else if (a->personal)