aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-09 18:55:29 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-09 18:55:29 +0200
commitc9c5346e6376e62d3879d816a93889b1ffb87133 (patch)
treef86176d6e24552d8756712a6f06fb714ac0b5aa4
parent4bb35cbead555a4e9080c58a8de71ed0887e8db5 (diff)
downloadmblaze-c9c5346e6376e62d3879d816a93889b1ffb87133.tar.gz
seq: add $MAILDOT to override the value of .
-rw-r--r--seq.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/seq.c b/seq.c
index 461a484..fc62573 100644
--- a/seq.c
+++ b/seq.c
@@ -125,6 +125,10 @@ blaze822_seq_cur()
{
static char b[PATH_MAX];
+ char *override = getenv("MAILDOT");
+ if (override)
+ return override;
+
char *curlink = getenv("MAILCUR");
if (!curlink)
curlink = blaze822_home_file(".mblaze/cur");
@@ -139,6 +143,10 @@ blaze822_seq_cur()
int
blaze822_seq_setcur(char *s)
{
+ char *override = getenv("MAILDOT");
+ if (override)
+ return 0;
+
char curtmplink[PATH_MAX];
char *curlink = getenv("MAILCUR");
if (!curlink)