NeoMutt  2025-12-11-911-gd8d604
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
sequence.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_MH_SEQUENCE_H
24#define MUTT_MH_SEQUENCE_H
25
26#include <stdbool.h>
27#include <stdint.h>
28
29struct Mailbox;
30
35{
37 MH_SEQ_UNSEEN = 1U << 0,
38 MH_SEQ_REPLIED = 1U << 1,
39 MH_SEQ_FLAGGED = 1U << 2,
40};
41typedef uint8_t MhSeqFlags;
42
47{
48 int max;
50};
51
52void mh_seq_add_one(struct Mailbox *m, int n, bool unseen, bool flagged, bool replied);
53int mh_seq_changed(struct Mailbox *m);
54MhSeqFlags mh_seq_check (struct MhSequences *mhs, int i);
55void mh_seq_free (struct MhSequences *mhs);
56int mh_seq_read (struct MhSequences *mhs, const char *path);
57void mh_seq_update (struct Mailbox *m);
58
59#endif /* MUTT_MH_SEQUENCE_H */
MhSeqFlag
Flags, e.g.
Definition sequence.h:35
@ MH_SEQ_UNSEEN
Email hasn't been read.
Definition sequence.h:37
@ MH_SEQ_FLAGGED
Email is flagged.
Definition sequence.h:39
@ MH_SEQ_REPLIED
Email has been replied to.
Definition sequence.h:38
@ MH_SEQ_NONE
No flags are set.
Definition sequence.h:36
void mh_seq_add_one(struct Mailbox *m, int n, bool unseen, bool flagged, bool replied)
Update the flags for one sequence.
Definition sequence.c:110
MhSeqFlags mh_seq_check(struct MhSequences *mhs, int i)
Get the flags for a given sequence.
Definition sequence.c:79
void mh_seq_free(struct MhSequences *mhs)
Free some sequences.
Definition sequence.c:68
int mh_seq_changed(struct Mailbox *m)
Has the mailbox changed.
Definition sequence.c:441
uint8_t MhSeqFlags
Definition sequence.h:41
void mh_seq_update(struct Mailbox *m)
Update sequence numbers.
Definition sequence.c:236
int mh_seq_read(struct MhSequences *mhs, const char *path)
Read a set of MH sequences.
Definition sequence.c:380
A mailbox.
Definition mailbox.h:81
Set of MH sequence numbers.
Definition sequence.h:47
MhSeqFlags * flags
Flags for each email.
Definition sequence.h:49
int max
Number of flags stored.
Definition sequence.h:48