[PATCH v2 13/16] email-lda: fix copy-paste error

Artem Bityutskiy dedekind1 at gmail.com
Fri Feb 7 00:50:42 PST 2014


From: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>

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 at linux.intel.com>
---
 email/aiaiai-email-lda | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/email/aiaiai-email-lda b/email/aiaiai-email-lda
index 2a93aaf..2078379 100755
--- a/email/aiaiai-email-lda
+++ b/email/aiaiai-email-lda
@@ -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")"
 
-- 
1.8.5.2




More information about the aiaiai mailing list