Tags:
create new tag
view all tags

Question

Hi, all. Everytime the mailnotify script is run, it sends out a list of all changes that have been made in that web, not just those that have been made since the last run of the mailnotify script. How do I get the mailnotify script to only send out changes made since the last time it was run? I've watched the debug, and see no errors. Here's a sample:

Checking TWiki.IdentityDefinition
<none>
Checking TWiki.JabberSMTP
<none>
Checking TWiki.JabberAdvocacy
- Changed topics since 01 Jan 1970 - 00:00: EmailNotify Preferences Forums Introduction 
- Sending mail notification to: sitechanges@lists.theoretic.com
- End TWiki.JabberAdvocacy, mail notification sent
Checking TWiki.JabberClientGuidelines
- Changed topics since 01 Jan 1970 - 00:00: BetterRosters Usability Home 
- Sending mail notification to: sitechanges@lists.theoretic.com
- End TWiki.JabberClientGuidelines, mail notification sent
Checking TWiki.JabberComponents
<none>
Checking TWiki.JabberWishlist
- Note: Topic list is empty
Checking TWiki.LinuxArchitecture
- Note: No topics changed since 16 Dec 2002 - 21:25
Checking TWiki.Proposals
<none>
Checking TWiki.BigPing
<none>
Checking TWiki.Ransom
- Note: No topics changed since 20 Dec 2002 - 23:40
Checking TWiki.HelpBak
<none>
Checking TWiki.TWiki
<none>
Checking TWiki.OpenSpaceMovement
<none>
Checking TWiki.IconStyles
- Note: No topics changed since 21 Dec 2002 - 07:58
Checking TWiki.OpenSpaceWebsite
<none>
End TWiki mail notification

  • TWiki version: beta dec 10 2002
  • Perl version: 5.6.1
  • Web server & version: apache (recent)
  • Server OS: debian
  • Web browser & version:
  • Client OS:

-- AdamTheo - 21 Dec 2002

Answer

Check the permissions in each web directory, and also on the .mailnotify file - if this is not created/updated it will cause this behaviour.

-- RichardDonkin - 22 Dec 2002

Just checked, and the .mailnotify file in every web directory in data is 664, as well as owned by "nobody" (well, www-data, actually, since it's a debian system). And the web directories are 775. This doesn't seem to be the problem frown

-- AdamTheo - 22 Dec 2002

It's debug time. Add some TWiki::writeDebug() statements to see what happens with $prevLastmodify. That variable should get set to the .mailnotify value. The 01 Jan 1970 date indicates that the time is 0.

-- PeterThoeny - 23 Dec 2002

Hmm... odd. When i tested it again today, it was still sending all changes, but then after making a couple of debug changes and running it again, it started to only send out changes made since yesterday, and then when I ran it again it didn't send out any changes (since none had been made in the past half hour). I guess it just needed to run through it a few times to get them out of its system? heh. Well, thanks anyway.

-- AdamTheo - 23 Dec 2002

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2002-12-23 - AdamTheo
 
  • 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.