Tags:
create new tag
, view all tags

Question

Hello,

I need to use mailnotify but it alternates between sending a list of ALL changes ever made to the web, or none.

'configure' reports only a simple locale error and that the host name doesn't match twiki's believed location (but that's because I restricted the configure script to localhost), so nothing there I'm sure.

I've looked as much as I can in the help files etc for this.

I'm using TWiki-4.0.5, Tue, 24 Oct 2006, build 11822, Plugin API version 1.1 with the MailNotify script "Mailer.pm": $VERSION = '$Rev: 13520 (24 Apr 2007) $'; $RELEASE = 'TWiki-4';

The following command (from terminal or cron): "perl -I /home/twiki/twiki/bin /home/twiki/twiki/tools/mailnotify " reports alternately ALL changes ever made to the web, or none.

The output of two subsequent calls to the above command is pasted below. The "Last Notification" alternates between the date of the last change and 1/1/1970.

I've looked at the .mailnotify and .changes file in the data/web directory, they're 664 owned by www-data (but even when 777 the same problem persists). .mailnotify is never modified. Whenever I make any change to the web, it is added to .changes (but then never removed). Twiki is located in /home/twiki and directories are 775 all the way except for /home which is 755.

Regards & thanks, Fergal.


root@licia:/home/twiki/twiki/data/FBM#  perl -I /home/twiki/twiki/bin /home/twiki/twiki/tools/mailnotify FBM
Processing FBM
%MAKETEXT{"This is a subscription service to be automatically notified by e-mail when topics change in this [_1] web. This is a convenient service, so you do not have to come back and check all the time if something has changed. To subscribe, please add a bullet with your [_2] in alphabetical order to this list:" args="*<nop>%WEB%*,%TWIKIWEB%.WikiName"}%

   * FergalDalton: *

%INCLUDE{"%TWIKIWEB%.WebChangesAlert"}%

__%MAKETEXT{"Related topics:"}%__ %TWIKIWEB%.WebChangesAlert, %MAINWEB%.%WIKIUSERSTOPIC%, %TWIKIWEB%.TWikiRegistration
        Last notification was at 2007-06-04T10:08:53Z
Included compatibility hacks
        0 change notifications from FBM

root@licia:/home/twiki/twiki/data/FBM#  perl -I /home/twiki/twiki/bin /home/twiki/twiki/tools/mailnotify FBM
Processing FBM
%MAKETEXT{"This is a subscription service to be automatically notified by e-mail when topics change in this [_1] web. This is a convenient service, so you do not have to come back and check all the time if something has changed. To subscribe, please add a bullet with your [_2] in alphabetical order to this list:" args="*<nop>%WEB%*,%TWIKIWEB%.WikiName"}%

   * FergalDalton: *

%INCLUDE{"%TWIKIWEB%.WebChangesAlert"}%

__%MAKETEXT{"Related topics:"}%__ %TWIKIWEB%.WebChangesAlert, %MAINWEB%.%WIKIUSERSTOPIC%, %TWIKIWEB%.TWikiRegistration
        Last notification was at 1970-01-01T00:00:00Z
Included compatibility hacks
        Change to WebHome at 2007-06-04T10:08:53Z. New revision is 13
        Change to 070507-Number-Of-Neighbours at 2007-05-09T09:31:53Z. New revision is 2
        Change to 070507-Number-Of-Neighbours at 2007-05-07T13:50:05Z. New revision is 1
        Change to WebHome at 2007-05-07T13:06:47Z. New revision is 12
        Change to WebHome at 2007-05-04T10:12:51Z. New revision is 11
Notified email@address.removed of changes in FBM
        1 change notifications from FBM

root@licia:/home/twiki/twiki/data/FBM# 

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: JSCalendarContrib, MailerContrib, TipsContrib, TwistyContrib
Server OS: Ubuntu 6.0.6 kernel 2.6.15-27-amd64-k8
Web server: Apache 2.0.55
Perl version: v5.8.7
Client OS: various
Web Browser: various
Categories: Plugins, Mail

-- FergalDalton - 04 Jun 2007

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.

.changes records the last 500 changes, and is just a rolling log. .mailnotify is just a timestamp. You have checked everything I would have checked to diagnose this. Hmmph. It really, really looks like a permissions problem on .mailnotify ...

-- CrawfordCurrie - 12 Jul 2007

Have you been able to find a solution for this? I am having exactly the same problem (TWiki 4.1.2 on Windows XP)

-- CassandraRoss - 15 Jul 2007

Me too

-- ChrisTorager - 17 Jul 2007

One obvious question; did you upgrade to the latest release of the MailerContrib? Note that the release cycle of the contrib isn't locked to the TWiki release cycle. It would be good to establish if this problem occurs with the latest code.

-- CrawfordCurrie - 18 Jul 2007

Has anyone figured this out? We have a similar problem: seemingly randomly, mailnotify sends out notifications of everything that's changed and the timestamp is 1969, then it sends out notifications for just the last day. We've combed through the code and tried to figure out what's going on, but to no avail. Any ideas?

-- StephanieDalPra - 23 Aug 2007

Did you check the permissions?

-- CrawfordCurrie - 22 Sep 2007

Closing this after more than 30 days of inactivity. Please feel free to re-open if needed.

-- PeterThoeny - 01 Nov 2007

-- ChrisKrum - 09 Nov 2007

Sorry about the blank post, I keep thinking that the "Add Comment" button takes you to a comment form. You might want to have it check for content before adding the post.

Anyway, I'm having the same problem as described above. I'm using TWiki 4.1.2 on AIX. All of the files belong to the user 'nobody' but since this user doesn't have a shell, I'm having to use my own userid to run the cron for mailnotify. The first time I ran mailnotify, it sent all of the updates from the time I upgraded TWiki to the time that mailnotify ran. Since then it's sent all updates from the first run of mailnotify ( 06 Nov 2007 - 13:21:) until now. I've added myself to the same group that the files are under and gave group write permissions on .changes and .mailnotify but that didn't fix it. I've installed the latest MailerContrib but that didn't fix it. I've even cut and pasted the last time stamp from .changes into .mailnotify and that didn't work so I renamed the .mailnotify file and it still sends "06 Nov 2007 - 13:21:" as the time stamp. Any ideas where to look next to debug this? Thanks.

-- ChrisKrum - 09 Nov 2007

SOLUTION: After much investigation it turns out that there are files in twiki/pub/_work_areas/MailerContrib (one for each web with subscribers) that contain another timestamp. They have the same name as the web they represent. Once I made these writable by the user running mailnotify, it stopped resending old updates.

-- ChrisKrum - 14 Nov 2007

Change status to:
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2007-11-14 - ChrisKrum
 
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.