diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-02-06 15:28:37 +0200 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-02-07 10:56:26 +0200 |
commit | 14142ca3fd1b42c9cd43474ec04603f6ae47d212 (patch) | |
tree | 3aa221b9e95d3e914b2b615a4c9c5e843c1a0d6f | |
parent | 6af69cba1a9d233d48b210145552fdeffa948fce (diff) | |
download | aiaiai-14142ca3fd1b42c9cd43474ec04603f6ae47d212.tar.gz |
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>
-rwxr-xr-x | email/aiaiai-email-lda | 2 |
1 files changed, 1 insertions, 1 deletions
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() queue_mboxfile() { - 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 } |