From 83bc095e820728da7dfe22d2f95962660c79de03 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Wed, 4 Jan 2012 10:06:51 +0100 Subject: [PATCH] Globally defined the names for the standard sequences. I'll rework the whole code to use them and not have hard-coded names anymore. The `new' sequence will be called `beyond' sequence (`b') from now on. The `unseen' sequence will be set by default to `u' from now on. The sequence negation will be set by default to `!' from now on. --- config/config.c | 15 +++++++++++++-- h/mh.h | 9 +++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/config/config.c b/config/config.c index fb21602..6a1e0b1 100644 --- a/config/config.c +++ b/config/config.c @@ -74,11 +74,22 @@ char *mhlforward = "mhl.forward"; /* forw -filter */ char *defaultfolder = "+inbox"; char *draftfolder = "+drafts"; +char *inbox = "Inbox"; /* profile entry name to specify the default folder */ +char *curfolder = "Current-Folder"; + /* name of current message "sequence" */ char *current = "cur"; -char *inbox = "Inbox"; /* profile entry name to specify the default folder */ -char *curfolder = "Current-Folder"; +char *seq_all = "a"; +char *seq_beyond = "b"; /* the previous `new' sequence */ +char *seq_cur = "c"; +char *seq_first = "f"; +char *seq_last = "l"; +char *seq_next = "n"; +char *seq_prev = "p"; +char *seq_unseen = "u"; +char *seq_neg = "!"; + char *usequence = "Unseen-Sequence"; char *psequence = "Previous-Sequence"; char *nsequence = "Sequence-Negation"; diff --git a/h/mh.h b/h/mh.h index 12bb985..5d72178 100644 --- a/h/mh.h +++ b/h/mh.h @@ -338,6 +338,15 @@ extern char *replgroupcomps; extern char *rmmproc; extern char *sendmail; extern char *sendproc; +extern char *seq_all; +extern char *seq_beyond; +extern char *seq_cur; +extern char *seq_first; +extern char *seq_last; +extern char *seq_next; +extern char *seq_prev; +extern char *seq_unseen; +extern char *seq_neg; extern char *showmimeproc; extern char *showproc; extern char *usequence; -- 1.7.10.4