]> www.infradead.org Git - users/dedekind/aiaiai.git/commit
email-lda: make the queued file name saner
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 6 Feb 2014 13:28:37 +0000 (15:28 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 7 Feb 2014 08:56:26 +0000 (10:56 +0200)
commit14142ca3fd1b42c9cd43474ec04603f6ae47d212
tree3aa221b9e95d3e914b2b615a4c9c5e843c1a0d6f
parent6af69cba1a9d233d48b210145552fdeffa948fce
email-lda: make the queued file name saner

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:

date_1_of_2-counter

Or if patch 2 came last, the name will be

date_2_of_2-counter

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

date_2-counter.

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