From 2c8265621a3526d1d6791d28bef778df49501a29 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Wed, 4 Jan 2012 19:36:08 +0100 Subject: [PATCH] Removed the unused message flag: DELETED. Now we can store one user-defines seq more. --- h/mh.h | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/h/mh.h b/h/mh.h index 1f8a23c..73845a4 100644 --- a/h/mh.h +++ b/h/mh.h @@ -83,28 +83,26 @@ extern struct swit anoyes[]; /* standard yes/no switches */ typedef unsigned int seqset_t; /* -** Determine the number of user defined sequences we -** can have. The first 5 sequence flags are for -** internal nmh message flags. +** internal messages attributes (sequences) */ -#define NUMATTRS ((sizeof(seqset_t) * Nbby) - 5) +#define EXISTS (1<<0) /* exists */ +#define SELECTED (1<<1) /* selected for use */ +#define SELECT_EMPTY (1<<2) /* "new" message */ +#define SELECT_UNSEEN (1<<3) /* inc/show "unseen" */ + +#define MBITS "\020\01EXISTS\02SELECTED\03NEW\04UNSEEN" /* -** first free slot for user defined sequences -** and attributes +** first free slot for user-defined sequences */ -#define FFATTRSLOT 5 +#define FFATTRSLOT 4 /* -** internal messages attributes (sequences) +** Determine the number of user defined sequences we +** can have. The first few sequence flags are for +** internal nmh message flags. */ -#define EXISTS (1<<0) /* exists */ -#define DELETED (1<<1) /* deleted */ -#define SELECTED (1<<2) /* selected for use */ -#define SELECT_EMPTY (1<<3) /* "new" message */ -#define SELECT_UNSEEN (1<<4) /* inc/show "unseen" */ - -#define MBITS "\020\01EXISTS\02DELETED\03SELECTED\04NEW\05UNSEEN" +#define NUMATTRS ((sizeof(seqset_t) * Nbby) - FFATTRSLOT) /* ** Primary structure of folder/message information -- 1.7.10.4