NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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 SORT_MASK   ((1 << 8) - 1)
 Mask for the sort id.
 
#define SORT_REVERSE   (1 << 8)
 Reverse the order of the sort.
 
#define SORT_LAST   (1 << 9)
 Sort thread by last-X, e.g. received date.
 

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 SortMethods []
 Sort methods for '$sort' for the index.
 

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

◆ SORT_MASK

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

Mask for the sort id.

Definition at line 70 of file sort2.h.

◆ SORT_REVERSE

#define SORT_REVERSE   (1 << 8)

Reverse the order of the sort.

Definition at line 71 of file sort2.h.

◆ SORT_LAST

#define SORT_LAST   (1 << 9)

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

Definition at line 72 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 33 of file sort2.h.

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

Variable Documentation

◆ SortMethods

const struct Mapping SortMethods[]
extern

Sort methods for '$sort' for the index.

Definition at line 89 of file mutt_config.c.