mailnotify silently drops notification when the following conditions are met:
- subscription on the
WebNotify
page contains WikiName but not the email address
- subscriber is intranet user, i.e. login name is different from WikiName
- email field in the UserForm is not filled
user name is still reported in the console output of the mailnotify script, but no email will be sent.
following patch can be applied to fix the problem:
--- Subscriber.pm.orig 2006-10-25 03:16:08.000000000 +0300
+++ Subscriber.pm 2007-01-10 14:32:06.000000000 +0200
@@ -73,7 +73,7 @@
push( @{$this->{emails}}, $this->{name} );
} else {
my $user = $this->{session}->{users}->findUser
- ( $this->{name}, $this->{name}, 1 );
+ ( $this->{name}, undef, 1 );
if( $user ) {
push( @{$this->{emails}}, $user->emails() );
}
--
TWiki:Main.AlexanderSmishlajev
Excellent analysis and fix seems to be spot on.
I checked the fix and it seems to be quite right.
Checked into SVN and waiting for release. Fix will be in 4.1.0
Thanks Alexander
KJL
Added doc update
KJL