mblaze

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

commit 31d1cb7bc63d3d30f4875720d51f7dcda04d9d25
parent 157542c3e7dd3eb89401bd3a8397693d4818efd8
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Wed, 12 Jul 2017 22:31:35 +0200

minc: use squeeze_slash

Closes #68.

Diffstat:
GNUmakefile | 2+-
minc.c | 4+++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile @@ -33,7 +33,7 @@ mshow : filter.o safe_u8putstr.o rfc2231.o pipeto.o mscan : pipeto.o msort : mystrverscmp.o mmime : slurp.o -mlist : squeeze_slash.o +minc mlist : squeeze_slash.o museragent: FRC @printf '#!/bin/sh\nprintf "User-Agent: mblaze/%s (%s)\\n"\n' \ diff --git a/minc.c b/minc.c @@ -23,11 +23,13 @@ inc(char *dir) char src[PATH_MAX]; char dst[PATH_MAX]; + squeeze_slash(dir); + snprintf(src, sizeof src, "%s/new", dir); fd = opendir(src); if (!fd) { fprintf(stderr, "minc: can't open maildir '%s': %s\n", - dir, strerror(errno)); + src, strerror(errno)); status = 2; return; }