/*
** general folder attributes
*/
-#define READONLY (1<<0) /* No write access to folder */
-#define SEQMOD (1<<1) /* folder's sequences modifed */
-#define ALLOW_NEW (1<<2) /* allow the "new" sequence */
-#define OTHERS (1<<3) /* folder has other files */
+#define READONLY (1<<0) /* No write access to folder */
+#define SEQMOD (1<<1) /* folder's sequences modifed */
+#define ALLOW_BEYOND (1<<2) /* allow the beyond sequence */
+#define OTHERS (1<<3) /* folder has other files */
-#define FBITS "\020\01READONLY\02SEQMOD\03ALLOW_NEW\04OTHERS"
+#define FBITS "\020\01READONLY\02SEQMOD\03ALLOW_BEYOND\04OTHERS"
/*
** type for holding the sequence set of a message
#define FIRST 1
#define LAST 2
-#define getnew(mp) ((mp)->hghmsg + 1)
+#define getbeyond(mp) ((mp)->hghmsg + 1)
static int convdir; /* convert direction */
static char *delimp; /* delimiter pointer */
/*
** Check for special beyond sequence, which
- ** is valid only if ALLOW_NEW is set.
+ ** is valid only if ALLOW_BEYOND is set.
*/
- if ((mp->msgflags & ALLOW_NEW) && !strcmp(cp, seq_beyond)) {
- if ((err = first = getnew(mp)) <= 0)
+ if ((mp->msgflags & ALLOW_BEYOND) && !strcmp(cp, seq_beyond)) {
+ if ((err = first = getbeyond(mp)) <= 0)
goto badmsg;
else
goto single;
/*
** Single Message
**
- ** If ALLOW_NEW is set, then allow selecting of an
- ** empty slot. If ALLOW_NEW is not set, then we
+ ** If ALLOW_BEYOND is set, then allow selecting of an
+ ** empty slot. If ALLOW_BEYOND is not set, then we
** check if message is in-range and exists.
*/
- if (mp->msgflags & ALLOW_NEW) {
+ if (mp->msgflags & ALLOW_BEYOND) {
set_select_empty(mp, first);
} else if (first > mp->hghmsg || first < mp->lowmsg
|| !does_exist(mp, first)) {
/*
** Cycle through the range and select the messages
- ** that exist. If ALLOW_NEW is set, then we also check
+ ** that exist. If ALLOW_BEYOND is set, then we also check
** if we are selecting an empty slot.
*/
for (; first <= last; first++) {
if (does_exist(mp, first) ||
- ((mp->msgflags & ALLOW_NEW) && is_select_empty(mp, first))) {
+ ((mp->msgflags & ALLOW_BEYOND) && is_select_empty(mp, first))) {
if (!is_selected(mp, first)) {
set_selected(mp, first);
mp->numsel++;
return i;
else if (*delimp || call == LAST)
return mp->hghmsg + 1;
- else if (mp->msgflags & ALLOW_NEW)
+ else if (mp->msgflags & ALLOW_BEYOND)
return BADRNG;
else
return BADNUM;
delimp = cp;
if (!strcmp(buf, seq_first))
- return (mp->hghmsg || !(mp->msgflags & ALLOW_NEW)
+ return (mp->hghmsg || !(mp->msgflags & ALLOW_BEYOND)
? mp->lowmsg : BADMSG);
if (!strcmp(buf, seq_last)) {
convdir = -1;
- return (mp->hghmsg || !(mp->msgflags & ALLOW_NEW) ? mp->hghmsg : BADMSG);
+ return (mp->hghmsg || !(mp->msgflags & ALLOW_BEYOND) ? mp->hghmsg : BADMSG);
}
if (!strcmp(buf, seq_cur))