Assorted sorting methods. More...
Go to the source code of this file.
Macros | |
#define | mutt_numeric_cmp(a, b) ((a) < (b) ? -1 : ((a) > (b) ? 1 : 0)) |
Typedefs | |
typedef int(* | sort_mail_t) (const struct Email *a, const struct Email *b, bool reverse) |
Functions | |
int | mutt_compare_emails (const struct Email *a, const struct Email *b, enum MailboxType type, short sort, short sort_aux) |
Compare two emails using up to two sort methods -. | |
void | mutt_sort_headers (struct MailboxView *mv, bool init) |
Sort emails by their headers. | |
void | mutt_sort_order (struct Mailbox *m) |
Sort emails by their disk order. | |
const char * | mutt_get_name (const struct Address *a) |
Pick the best name to display from an address. | |
Assorted sorting methods.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file sort.h.
#define mutt_numeric_cmp | ( | a, | |
b | |||
) | ((a) < (b) ? -1 : ((a) > (b) ? 1 : 0)) |
void mutt_sort_headers | ( | struct MailboxView * | mv, |
bool | init | ||
) |
Sort emails by their headers.
mv | Mailbox View |
init | If true, rebuild the thread |
Definition at line 350 of file sort.c.
void mutt_sort_order | ( | struct Mailbox * | m | ) |
Sort emails by their disk order.
m | Mailbox |
Definition at line 444 of file sort.c.
const char * mutt_get_name | ( | const struct Address * | a | ) |
Pick the best name to display from an address.
a | Address to use |
ptr | Display name |
This function uses:
Definition at line 134 of file sort.c.