notifyemail: Fix bug that caused duplicate emails to be sent when site was rebuilt.

master
Joey Hess 2013-05-18 16:26:48 -04:00
parent bf9fdcc80f
commit 9e4f0efe44
2 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,7 @@ sub anonsubscribe ($$) {
sub notify (@) {
my @files=@_;
return unless @files;
return if $config{rebuild};
eval q{use Mail::Sendmail};
error $@ if $@;

2
debian/changelog vendored
View File

@ -4,6 +4,8 @@ ikiwiki (3.20130505) UNRELEASED; urgency=low
Closes: #707436
* theme: Now <TMPL_IF THEME_$NAME> can be used in all templates when
a theme is enabled.
* notifyemail: Fix bug that caused duplicate emails to be sent when
site was rebuilt.
-- Joey Hess <joeyh@debian.org> Thu, 09 May 2013 10:47:18 -0400