]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
notifyemail: Fix bug that caused duplicate emails to be sent when site was rebuilt.
authorJoey Hess <joey@kitenet.net>
Sat, 18 May 2013 20:26:48 +0000 (16:26 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 18 May 2013 20:26:48 +0000 (16:26 -0400)
IkiWiki/Plugin/notifyemail.pm
debian/changelog

index 2c1775f2e81df281a7c7769220acc26ade476cdf..b50a22a00c2e0bc6179a21b22b987d8241282afb 100644 (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 $@;
index fb51569b321cf224c87c758fa2fd2edfeb983586..07d955bb209defa61fc3b486bccd554168e50618 100644 (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