aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-05-18 16:26:48 -0400
committerJoey Hess <joey@kitenet.net>2013-05-18 16:26:48 -0400
commit9e4f0efe44a11ee5d30ce077a8f259d2ecc5b781 (patch)
tree310ed5e83c6ea9c41cab8430cbd3be05ca973cf0 /IkiWiki
parentbf9fdcc80fd511c97643139ae298790e770854ef (diff)
downloadikiwiki-9e4f0efe44a11ee5d30ce077a8f259d2ecc5b781.tar
ikiwiki-9e4f0efe44a11ee5d30ce077a8f259d2ecc5b781.tar.gz
notifyemail: Fix bug that caused duplicate emails to be sent when site was rebuilt.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/notifyemail.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/notifyemail.pm b/IkiWiki/Plugin/notifyemail.pm
index 2c1775f2e..b50a22a00 100644
--- a/IkiWiki/Plugin/notifyemail.pm
+++ b/IkiWiki/Plugin/notifyemail.pm
@@ -78,6 +78,7 @@ sub anonsubscribe ($$) {
sub notify (@) {
my @files=@_;
return unless @files;
+ return if $config{rebuild};
eval q{use Mail::Sendmail};
error $@ if $@;