NeoMutt  2023-11-03-107-g582dc1
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 DT_SORT_LAST   (1 << 11)
 Sort flag for -last prefix.
 
#define DT_SORT_REVERSE   (1 << 12)
 Sort flag for -reverse prefix.
 
#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

◆ DT_SORT_LAST

#define DT_SORT_LAST   (1 << 11)

Sort flag for -last prefix.

Definition at line 31 of file sort2.h.

◆ DT_SORT_REVERSE

#define DT_SORT_REVERSE   (1 << 12)

Sort flag for -reverse prefix.

Definition at line 32 of file sort2.h.

◆ SORT_MASK

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

Mask for the sort id.

Definition at line 74 of file sort2.h.

◆ SORT_REVERSE

#define SORT_REVERSE   (1 << 8)

Reverse the order of the sort.

Definition at line 75 of file sort2.h.

◆ SORT_LAST

#define SORT_LAST   (1 << 9)

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

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

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

Variable Documentation

◆ SortMethods

const struct Mapping SortMethods[]
extern

Sort methods for '$sort' for the index.

Definition at line 75 of file mutt_config.c.