[PATCH 07/16] email-lda: make the queued file name saner

Artem Bityutskiy dedekind1 at gmail.com
Thu Feb 6 08:30:53 PST 2014

From: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>

When aiaiai-email-lda collects all patches in the series, it concatenates them
into a single file, and calls 'queue_mboxfile'. This function basically saves
a copy of the mbox in the "queue_saved" directory, and then moves it to the
queue directory.

The name of the file will be like this: date_m_of_n-counter.

However, the "m" part makes no sense at all. It is equivalent to the mumber of
the patch which came last. For example, if we have a series of 2 patches, and
path 1 came last, the name will be:


Or if patch 2 came last, the name will be


And this makes no sense. Just remove the "m" part from the name and make it to


Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
 email/aiaiai-email-lda | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/email/aiaiai-email-lda b/email/aiaiai-email-lda
index f876b07..ef2c890 100755
--- a/email/aiaiai-email-lda
+++ b/email/aiaiai-email-lda
@@ -134,7 +134,7 @@ seq_name()
-	local fname="$(seq_name "$queue" "${date}_${m}-of-${n}")"
+	local fname="$(seq_name "$queue" "${date}_${n}")"
 	cp $verbose -- "$mbox" "$queue_saved/${fname##*/}" >&2
 	mv $verbose -- "$mbox" "$fname" >&2

More information about the aiaiai mailing list