NeoMutt  2023-05-17-56-ga67199
Teaching an old dog new tricks
DOXYGEN
sequence.h
Go to the documentation of this file.
1
23#ifndef MUTT_MAILDIR_SEQUENCE_H
24#define MUTT_MAILDIR_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
46int mh_seq_read (struct MhSequences *mhs, const char *path);
47void mh_seq_add_one(struct Mailbox *m, int n, bool unseen, bool flagged, bool replied);
48int mh_seq_changed(struct Mailbox *m);
49void mh_seq_update (struct Mailbox *m);
50MhSeqFlags mh_seq_check (struct MhSequences *mhs, int i);
51void mh_seq_free (struct MhSequences *mhs);
52
53#endif /* MUTT_MAILDIR_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:107
MhSeqFlags mh_seq_check(struct MhSequences *mhs, int i)
Get the flags for a given sequence.
Definition: sequence.c:78
void mh_seq_free(struct MhSequences *mhs)
Free some sequences.
Definition: sequence.c:67
int mh_seq_changed(struct Mailbox *m)
Has the mailbox changed.
Definition: sequence.c:438
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:233
int mh_seq_read(struct MhSequences *mhs, const char *path)
Read a set of MH sequences.
Definition: sequence.c:377
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