NeoMutt  2020-11-20
Teaching an old dog new tricks
DOXYGEN
sort2.h File Reference

Type representing a sort option. More...

#include "mutt/lib.h"
+ Include dependency graph for sort2.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DT_SORT_LAST   0x0800
 Sort flag for -last prefix. More...
 
#define DT_SORT_REVERSE   0x1000
 Sort flag for -reverse prefix. More...
 
#define SORT_MASK   ((1 << 8) - 1)
 Mask for the sort id. More...
 
#define SORT_REVERSE   (1 << 8)
 Reverse the order of the sort. More...
 
#define SORT_LAST   (1 << 9)
 Sort thread by last-X, e.g. received date. More...
 

Enumerations

enum  SortType {
  SORT_DATE = 1, SORT_SIZE = 2, SORT_ALPHA = 3, SORT_SUBJECT = 3,
  SORT_FROM = 4, SORT_ORDER = 5, SORT_THREADS = 6, SORT_RECEIVED = 7,
  SORT_TO = 8, SORT_SCORE = 9, SORT_ALIAS = 10, SORT_ADDRESS = 11,
  SORT_KEYID = 12, SORT_TRUST = 13, SORT_SPAM = 14, SORT_COUNT = 15,
  SORT_UNREAD = 16, SORT_FLAGGED = 17, SORT_PATH = 18, SORT_LABEL = 19,
  SORT_DESC = 20, SORT_MAX
}
 Methods for sorting. More...
 

Variables

const struct Mapping SortAliasMethods []
 Sort methods for email aliases. More...
 
const struct Mapping SortBrowserMethods []
 Sort methods for the folder/dir browser. More...
 
const struct Mapping SortKeyMethods []
 Sort methods for encryption keys. More...
 
const struct Mapping SortMethods []
 Sort methods for '$sort' for the index. More...
 
const struct Mapping SortSidebarMethods []
 Sort methods for the sidebar. More...
 

Detailed Description

Type representing a sort option.

Authors
  • Richard Russon

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 sort2.h.

Macro Definition Documentation

◆ DT_SORT_LAST

#define DT_SORT_LAST   0x0800

Sort flag for -last prefix.

Definition at line 37 of file sort2.h.

◆ DT_SORT_REVERSE

#define DT_SORT_REVERSE   0x1000

Sort flag for -reverse prefix.

Definition at line 38 of file sort2.h.

◆ SORT_MASK

#define SORT_MASK   ((1 << 8) - 1)

Mask for the sort id.

Definition at line 80 of file sort2.h.

◆ SORT_REVERSE

#define SORT_REVERSE   (1 << 8)

Reverse the order of the sort.

Definition at line 81 of file sort2.h.

◆ SORT_LAST

#define SORT_LAST   (1 << 9)

Sort thread by last-X, e.g. received date.

Definition at line 82 of file sort2.h.

Enumeration Type Documentation

◆ SortType

enum SortType

Methods for sorting.

Enumerator
SORT_DATE 

Sort by the date the email was sent.

SORT_SIZE 

Sort by the size of the email.

SORT_ALPHA 

Required by makedoc.c.

SORT_SUBJECT 

Sort by the email's subject.

SORT_FROM 

Sort by the email's From field.

SORT_ORDER 

Sort by the order the messages appear in the mailbox.

SORT_THREADS 

Sort by email threads.

SORT_RECEIVED 

Sort by when the message were delivered locally.

SORT_TO 

Sort by the email's To field.

SORT_SCORE 

Sort by the email's score.

SORT_ALIAS 

Sort by email alias.

SORT_ADDRESS 

Sort by email address.

SORT_KEYID 

Sort by the encryption key's ID.

SORT_TRUST 

Sort by encryption key's trust level.

SORT_SPAM 

Sort by the email's spam score.

SORT_COUNT 

Sort by number of emails in a folder.

SORT_UNREAD 

Sort by the number of unread emails.

SORT_FLAGGED 

Sort by the number of flagged emails.

SORT_PATH 

Sort by the folder's path.

SORT_LABEL 

Sort by the emails label.

SORT_DESC 

Sort by the folder's description.

SORT_MAX 

Definition at line 43 of file sort2.h.

44 {
45  SORT_DATE = 1,
46  SORT_SIZE = 2,
47  SORT_ALPHA = 3,
48  SORT_SUBJECT = 3,
49  SORT_FROM = 4,
50  SORT_ORDER = 5,
51  SORT_THREADS = 6,
52  SORT_RECEIVED = 7,
53  SORT_TO = 8,
54  SORT_SCORE = 9,
55  SORT_ALIAS = 10,
56  SORT_ADDRESS = 11,
57  SORT_KEYID = 12,
58  SORT_TRUST = 13,
59  SORT_SPAM = 14,
60  SORT_COUNT = 15,
61  SORT_UNREAD = 16,
62  SORT_FLAGGED = 17,
63  SORT_PATH = 18,
64  SORT_LABEL = 19,
65  SORT_DESC = 20,
66 
67  SORT_MAX,
68 };
Sort by the number of flagged emails.
Definition: sort2.h:62
Definition: sort2.h:67
Sort by the folder&#39;s path.
Definition: sort2.h:63
Sort by the email&#39;s From field.
Definition: sort2.h:49
Sort by email address.
Definition: sort2.h:56
Sort by the email&#39;s score.
Definition: sort2.h:54
Sort by the emails label.
Definition: sort2.h:64
Sort by the size of the email.
Definition: sort2.h:46
Sort by the order the messages appear in the mailbox.
Definition: sort2.h:50
Sort by encryption key&#39;s trust level.
Definition: sort2.h:58
Sort by email threads.
Definition: sort2.h:51
Sort by email alias.
Definition: sort2.h:55
Sort by the email&#39;s spam score.
Definition: sort2.h:59
Sort by the email&#39;s To field.
Definition: sort2.h:53
Required by makedoc.c.
Definition: sort2.h:47
Sort by the number of unread emails.
Definition: sort2.h:61
Sort by the folder&#39;s description.
Definition: sort2.h:65
Sort by the encryption key&#39;s ID.
Definition: sort2.h:57
Sort by number of emails in a folder.
Definition: sort2.h:60
Sort by when the message were delivered locally.
Definition: sort2.h:52
Sort by the date the email was sent.
Definition: sort2.h:45
Sort by the email&#39;s subject.
Definition: sort2.h:48

Variable Documentation

◆ SortAliasMethods

const struct Mapping SortAliasMethods[]

Sort methods for email aliases.

Definition at line 36 of file config.c.

◆ SortBrowserMethods

const struct Mapping SortBrowserMethods[]

Sort methods for the folder/dir browser.

Definition at line 127 of file mutt_config.c.

◆ SortKeyMethods

const struct Mapping SortKeyMethods[]

Sort methods for encryption keys.

Definition at line 44 of file config.c.

◆ SortMethods

const struct Mapping SortMethods[]

Sort methods for '$sort' for the index.

Definition at line 105 of file mutt_config.c.

◆ SortSidebarMethods

const struct Mapping SortSidebarMethods[]

Sort methods for the sidebar.

Definition at line 38 of file config.c.