NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
sequence.h
Go to the documentation of this file.
1
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
31typedef uint8_t MhSeqFlags;
32#define MH_SEQ_NO_FLAGS 0
33#define MH_SEQ_UNSEEN (1 << 0)
34#define MH_SEQ_REPLIED (1 << 1)
35#define MH_SEQ_FLAGGED (1 << 2)
36
41{
42 int max;
44};
45
46void mh_seq_add_one(struct Mailbox *m, int n, bool unseen, bool flagged, bool replied);
47int mh_seq_changed(struct Mailbox *m);
48MhSeqFlags mh_seq_check (struct MhSequences *mhs, int i);
49void mh_seq_free (struct MhSequences *mhs);
50int mh_seq_read (struct MhSequences *mhs, const char *path);
51void mh_seq_update (struct Mailbox *m);
52
53#endif /* MUTT_MH_SEQUENCE_H */
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:108
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:439
uint8_t MhSeqFlags
Flags, e.g. MH_SEQ_UNSEEN.
Definition: sequence.h:31
void mh_seq_update(struct Mailbox *m)
Update sequence numbers.
Definition: sequence.c:234
int mh_seq_read(struct MhSequences *mhs, const char *path)
Read a set of MH sequences.
Definition: sequence.c:378
A mailbox.
Definition: mailbox.h:79
Set of MH sequence numbers.
Definition: sequence.h:41
MhSeqFlags * flags
Flags for each email.
Definition: sequence.h:43
int max
Number of flags stored.
Definition: sequence.h:42