From 92f3dc569b1985f7bbcb3eef401374c656747e7c Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 6 Feb 2014 10:59:04 +0200 Subject: [PATCH] email-lda: always use the cover letter 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 --- email/aiaiai-email-lda | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/email/aiaiai-email-lda b/email/aiaiai-email-lda index 3b102be..446b32a 100755 --- a/email/aiaiai-email-lda +++ b/email/aiaiai-email-lda @@ -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 -- 2.49.0