From: Jonathan McDowell Date: Sun, 18 Sep 2005 10:44:39 +0000 (+0000) Subject: Fix replyto email address bug. X-Git-Tag: 0.3.3~16 X-Git-Url: http://the.earth.li/gitweb/?p=onak.git;a=commitdiff_plain;h=68784e7ff81a477fd4a973ba302d96285def9b7d;hp=4845f6a8b29e77c5d829f9aa49048fd4b2a87e41 Fix replyto email address bug. If Reply-To wasn't set we wouldn't be able to send a reply email from onak-mail.pl for ADD/(V)INDEX mails. Fix this so we'll use Reply-To or From if that isn't set. --- diff --git a/onak-mail.pl.in b/onak-mail.pl.in index 5c1ce53..c635dfb 100644 --- a/onak-mail.pl.in +++ b/onak-mail.pl.in @@ -257,7 +257,7 @@ while ($file = readdir(MAILDIR)) { push @body, $_; } } - if (! defined($replyto)) { + if ($replyto eq '') { $replyto = $from; } close(FILE);