]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
email-lda: fix name generator
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 6 Feb 2014 13:40:22 +0000 (15:40 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 7 Feb 2014 08:56:26 +0000 (10:56 +0200)
This patch fixes the 'seq_name' finction which generates a file name to use for
storing an mbox. Currently it just appends a counter to the end. And it uses
the "-" for this, like something-counter, but sometimes it uses "_", which is a
bug. Let's fix it and use "-" everiwhere.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
email/aiaiai-email-lda

index ef2c8902f5d2d6a78c07581f8dcf62c56134963b..84a9bbb38ccb06ca3e09084ddcab4a1e40cc39a5 100755 (executable)
@@ -126,7 +126,7 @@ seq_name()
        local name="$1"; shift
        local i=0
 
-       while [ -e "${where}/${name}_${i}" ]; do
+       while [ -e "${where}/${name}-${i}" ]; do
                i="$(($i+1))"
        done
        printf "%s" "$where/$name-$i"