Assorted sorting methods. More...
Include dependency graph for sort.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Typedefs | |
| typedef int(* | sort_email_t) (const struct Email *a, const struct Email *b, bool reverse) |
Enumerations | |
| enum | EmailSortType { EMAIL_SORT_DATE , EMAIL_SORT_DATE_RECEIVED , EMAIL_SORT_FROM , EMAIL_SORT_LABEL , EMAIL_SORT_SCORE , EMAIL_SORT_SIZE , EMAIL_SORT_SPAM , EMAIL_SORT_SUBJECT , EMAIL_SORT_THREADS , EMAIL_SORT_TO , EMAIL_SORT_UNSORTED } |
| Methods for sorting Emails. More... | |
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_unsorted (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.
| enum EmailSortType |
Methods for sorting Emails.
Definition at line 52 of file sort.h.
| 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 355 of file sort.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_sort_unsorted | ( | struct Mailbox * | m | ) |
Sort emails by their disk order.
| m | Mailbox |
Definition at line 449 of file sort.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 139 of file sort.c.
Here is the call graph for this function:
Here is the caller graph for this function: