Tags:
email1Add my vote for this tag notification1Add my vote for this tag create new tag
view all tags

Question

How to include Set Variable from topic in mail notify e-mail?

I want to add another column to my nightly mailnotify email. I added the column no problem, but what I want in that column is the variable set on each topic.

So ArticleOne would have

  • Set STATUS = READY

ArticleTwo may have

  • Set STATUS = NOTREADY

So in the nightly changes email, the new column (named status) would display either READY or NOTREADY depending on what is set on that particular page.

Make sense? Thanks kindly!

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS 4
Web server: Apache 1.3x
Perl version: 5.8.7
Client OS: MS Windows XP
Web Browser: Firefox 2
Categories: Mail

-- JeffLink - 26 Jul 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

So I have an include statement working, however, the web I'm using mailnotify with on this is locked down so the public can't see it. That is, TWikiGuest does not have view privs. Does mailnotify hit a webpage using TWikiGuest? Can i make it connect via another user or somehow give it access?

-- JeffLink - 27 Jul 2006

(Shortened topic name from HowToIncludeSetVariableFromTopicInMailNotifyEmail to SetVariablesInMailNotification)

-- PeterThoeny - 28 Jul 2006

oi, after much fuss, I think I got it. I don't recall the "exact" details but you want to replicate the DefaultUserWikiName and DefaultUserLogin references in Twiki.cfg to another user like MailnotifyUserWikiName (and associate it with a user like MailnotifyUser who has permissions to view the locked down web).

Then any references in the /lib/Contrib/MailerContrib/ that reference DefaultUserWikiname chance to the newly created MailnotifyUserWikiname. Edit /lib/Contrib/Mailer.pm as well.

For the DefaultUserLogin (adding MailnotifyUserLogin) instead of adding a user like mailnotifyuser (to replace guest) use the wikiname of the user MailnotifyUser that you registered in your twiki.

mailnotify will now access sites via the MailnotifyUser and have rights beyond TWikiGuest

-- JeffLink - 28 Jul 2006

Sounds a bit complicated, but glad it worked out. Closing this request.

-- PeterThoeny - 29 Jul 2006

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-07-29 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.