]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
email-lda: fix copy-paste error
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 6 Feb 2014 14:13:11 +0000 (16:13 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 7 Feb 2014 08:56:26 +0000 (10:56 +0200)
The 'reject_and_reply' function accepts the mbox to act upon as the parameter,
and internally names it "file". However, in few places it actually uses "mbox"
instead of "file", which happens to work fine, but is generally a bug.

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

index 2a93aaf02ed982470ac4e4017870fb4e05f7064c..2078379c69c6caed93c7125836c4fae60273dd54 100755 (executable)
@@ -89,8 +89,8 @@ reject_and_reply()
        fetch_header_or_die reply_subj "Subject" < "$file"
        fetch_header_or_die reply_id "Message-Id" < "$file"
 
-       to="$(fetch_header "To" < "$mbox")"
-       cc="$(fetch_header "Cc" < "$mbox")"
+       to="$(fetch_header "To" < "$file")"
+       cc="$(fetch_header "Cc" < "$file")"
 
        reply_cc="$(merge_addresses "$to" "$cc")"