]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
email-lda: always use the cover letter
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 6 Feb 2014 08:59:04 +0000 (10:59 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 7 Feb 2014 08:56:26 +0000 (10:56 +0200)
The previous patch from Jacob only works when there is more than one patch in
the series, but did not work for the situation when there is a cover letter
(0/1) and a single patch (1/1). This patch fixes the situation.

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

index 3b102bee8648bcf8878f8d9f6a6a23c4ab6e0feb..446b32a1004ada13c59485e468fadcb7493b896a 100755 (executable)
@@ -344,13 +344,11 @@ process_mbox()
                { reject "$mbox" "\"$prefix_format\" prefix not found"; return; }
 
        # If the patch prefix contains m/n, fetch m and n.
-       local m
-       local n
+       local m n
        m="$(subject_m "$subj")"
        n="$(subject_n "$subj")"
 
-       if [ -z "$m" ] || [ "$n" -eq 1 ]; then
-               [ "$m" != "0" ] || { message "Dropping patch \"0/1\""; return; }
+       if [ -z "$m" ]; then
                message "Queueing stand-alone patch \"$subj\""
                queue_mboxfile
        else