mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit c9c5346e6376e62d3879d816a93889b1ffb87133
parent 4bb35cbead555a4e9080c58a8de71ed0887e8db5
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Tue,  9 Aug 2016 18:55:29 +0200

seq: add $MAILDOT to override the value of .

Diffstat:
seq.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git 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)