If Webs on TWiki site are view restricted from
TWikiGuest.
"* Set DENYWEBVIEW =
TWikiGuest"
Mailnotify doesn't fully work on any topic on those webs. It only states that there were changes in the topics in those webs, but fails to show the content/changes of those topics.
There are two users being invoked to perform the Notification, the first one has access based on the end-user access to view/know there were changes, but the one generating the email doesn't have access and therefore the searches/formfield queries show up empty. (Even though the actual end-user subscribed to the notification has access to this topic/web).
In other support topics I saw that there used to be a way to run mailnotify under a specific username, so based on that hint, our solution was to change
MailerContrib.pm in the following way:
Under sub mailNotify,
was:
$twiki = new TWiki();
now is:
$twiki = new TWiki($TWiki::cfg{AdminUserWikiName});
As far as I understand this only changes how the "email rendering script" starts its own session, and since this happens after the user-access permissions "security screening" has taken place, it should be ok.
--
HugoDeLaCerda - 20 Jul 2009