2 email messages from each forumpost

2 email messages from each forumpost

Joar Herseth -
回帖数:28
After upgrading from 1.0.9 to 1.1.1 all users are getting 2 email messages from each forum-post.
回复Joar Herseth

Re: 2 email messages from each forumpost

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
Well, they shouldn't be. 微笑

All my sites are working OK ... can you provide more information?
回复Martin Dougiamas

Re: 2 email messages from each forumpost

John Gone -
I get the occasional dual e-mail message from Moodle forum posts. This is a recent event. Seems like it's sporadic though.
回复John Gone

Now NO e-mail from forum posts

John Gone -
Now I'm receiving no e-mail from the Moodle forums. Nada. I've received e-mail from other sources so I know the e-mail function works for this address.
回复John Gone

Re: Now NO e-mail from forum posts

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
I'm not getting doubles or missing mail ... everything's been working well for me ... nor can I see anything fishy in the logs ...

There was a little problem last week where my whole ISP got listed on a spamming blacklist (monkeys.com), and a few sites that rely on monkeys.com were bouncing back mail from my server 伤心 but that was quickly cleared up.

I'll keep an eye on it.
回复Martin Dougiamas

Re: Now NO e-mail from forum posts

John Gone -
Thanks, I registered a new user here at Moodle and I'm not getting mail for that account either so I guess it must be on this end.
回复John Gone

Re: Now NO e-mail from forum posts

John Gone -
All of my previous discussions started have disappeared and my profile won't update. Just wondering if this is related to e-mail issue?

I made this post then went back and checked my profile and, voila, they're back. 思考
回复John Gone

Re: Now NO e-mail from forum posts

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
Wha?? I think your local network is having problems! 糊涂
回复Martin Dougiamas

Re: Now NO e-mail from forum posts

John Gone -
It appears that Monkeys.com may be the problem here as far as e-mail is concerned. I switched to a different pop3 server and mail is now being delivered.

I don't understand the part about my profile content changing but I don't understand a lot of things... 微笑
回复John Gone

Re: Now NO e-mail from forum posts

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
I know what this is ... it's to do with the fact we recently set up your account on moodle.com! (so all your mail is being kept here in your local account) I'll discuss this with you privately.
回复Martin Dougiamas

Re: Now NO e-mail from forum posts

John Gone -
Just finished catching up on all the missed e-mail. 微笑 It adds up when you haven't checked it for a while. And yes, I am now the proud owner of a Moodle.com account! 装酷
回复John Gone

Re: Now NO e-mail from forum posts

John Gone -
Email issue was cleared up due to a seperate issue unrelated to Moodle.org

Issue re: profile page is missing all of my earlier "discussions started by" posts. Also much of the breadcrumb links are not evident on this new "low-content" profile page. I'm unable to reproduce this anomaly while viewing any other profile. Screenshot is me checking my profile using IE6


附件 profile.jpg
回复John Gone

Re: Now NO e-mail from forum posts

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
Note the "course=1" in the URL ... you don't have any posts at site level which is why there aren't any shown.

Try: http://moodle.org/user/view.php?id=2236&course=5

doh.gif 微笑
回复Martin Dougiamas

Re: Now NO e-mail from forum posts

John Gone -
Great!满意 Now, how come when I click the link to go to my profile sometimes I get course=5 and sometimes I get course=1? I just, don't, get it...
回复Martin Dougiamas

Re: 2 email messages from each forumpost

Joar Herseth -

Hey!

I was a little to fast -

It seems to happend only at the news forum at the front page - when that forum is set to all get email from this forum - then all users get 2 copies of each posting in this forum. The forums in the courses seems to behave ok.

As it takes 30 min. plus to get email from the forumpostings I am not absolutly shure about this...

 

回复Joar Herseth

Re: 2 email messages from each forumpost

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
For testing you can turn the delay time down to 1 minute (Admin -> Configuration -> Variables -> maxeditingtime)
回复Martin Dougiamas

Re: 2 email messages from each forumpost

Rick Danielson -
Here is some addditional information on this issue. A little while ago I made a post to a forum in one of my courses. When the editing time delay finished, I received two emails of the same post. The one email was dated September 28th at 9:49pm and the next one was dated Monday September 29th at 1:49am. The time difference between the two posts was exactly 4 hours. Does this information help?
Rick Danielson
回复Rick Danielson

Re: 2 email messages from each forumpost

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
Thanks for the information. We need more information from more people because I'm not seeing it and have no idea what could be causing this apart from

real double posts ... sometimes people hit "back" and submit again, which causes double posts ... later after these are sent out they delete one of the copies.

multiple subscriptions ... under different accounts.

Rick's example implies to me that he has two separate accounts set up with different timezones.
回复Martin Dougiamas

Re: 2 email messages from each forumpost

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
Well, finally, I too now got double-copies for three posts in a row:

http://moodle.org/mod/forum/discuss.php?d=2747#11827
http://moodle.org/mod/forum/discuss.php?d=2760#11828
http://moodle.org/mod/forum/discuss.php?d=2763#11829

Interestingly they have different information in the headers ... perhaps it's a phpmailer bug. I'll look into it.
回复Martin Dougiamas

Re: 2 email messages from each forumpost

Rick Danielson -

Nope, I'm stuck in Sudbury running everything on my overworked server.  The time zone I'm working in is "behind."  smiley.gif

Rick

回复Rick Danielson

Re: 2 email messages from each forumpost

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
Rick, could you please forward exact copies of the double posts to martin@moodle.com, including all the headers? My pairs have some bizarre differences and I'm hoping this time difference you've seen provides a clue.
回复Martin Dougiamas

Re: 2 email messages from each forumpost

Sergio Alfaro -

Exists the possibility  that the cronjob is repeated without and with cpanel ????

Email 1

Return-path: <sddlzz@hotmail.com>
Envelope-to: sergio@alfaro.cl
Delivery-date: Sat, 27 Sep 2003 07:51:24 -0400
Received: from [69.56.135.106] (helo=server1.moodle.com)
 by imperio.jj.cl with esmtp (TLSv1:DES-CBC3-SHA:168)
 (Exim 4.23)
 id 1A3Dbg-0002bt-CB
 for sergio@alfaro.cl; Sat, 27 Sep 2003 07:51:24 -0400
Received: from nobody by server1.moodle.com with local (Exim 4.20)
 id 1A3Dac-0002cr-I1
 for sergio@alfaro.cl; Sat, 27 Sep 2003 19:50:18 +0800
To: sergio@alfaro.cl
Subject: Using Moodle: Re: How can i upload more than one files ?
Received: from phpmailer ([64.72.132.140])
 by moodle.org with HTTP (PHPMailer);
 Sat, 27 Sep 2003 19:50:18 +0800
Date: Sat, 27 Sep 2003 19:50:18 +0800
From: z xy <sddlzz@hotmail.com>
Message-ID: <c2566efe42a9a36e7c4f86c49265a125@moodle.org>
X-Priority: 3
X-Mailer: PHPMailer [version Moodle 2003091800]
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="b1_c2566efe42a9a36e7c4f86c49265a125"
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server1.moodle.com
X-AntiAbuse: Original Domain - alfaro.cl
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12]
X-AntiAbuse: Sender Address Domain - hotmail.com

email 2

Return-path: <sddlzz@hotmail.com>
Envelope-to: sergio@alfaro.cl
Delivery-date: Sat, 27 Sep 2003 07:51:08 -0400
Received: from [69.56.135.106] (helo=server1.moodle.com)
 by imperio.jj.cl with esmtp (TLSv1:DES-CBC3-SHA:168)
 (Exim 4.23)
 id 1A3DbQ-0002bV-6v
 for sergio@alfaro.cl; Sat, 27 Sep 2003 07:51:08 -0400
Received: from nobody by server1.moodle.com with local (Exim 4.20)
 id 1A3DaR-0002Yb-Gu
 for sergio@alfaro.cl; Sat, 27 Sep 2003 19:50:07 +0800
To: sergio@alfaro.cl
Subject: Using Moodle: Re: How can i upload more than one files ?
Received: from phpmailer ([64.72.132.140])
 by moodle.org with HTTP (PHPMailer);
 Sat, 27 Sep 2003 19:50:07 +0800
Date: Sat, 27 Sep 2003 19:50:07 +0800
From: z xy <sddlzz@hotmail.com>
Message-ID: <1c45f80865d4f88d957914c67d11f337@moodle.org>
X-Priority: 3
X-Mailer: PHPMailer [version Moodle 2003091800]
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="b1_1c45f80865d4f88d957914c67d11f337"
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server1.moodle.com
X-AntiAbuse: Original Domain - alfaro.cl
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12]
X-AntiAbuse: Sender Address Domain - hotmail.com

 

Atte,

 

Sergio


 

回复Sergio Alfaro

Re: 2 email messages from each forumpost - solved

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
Basically, you're right .. there was two cron jobs running!

One is the normal one on moodle.com, using command-line PHP every 6 minutes.

The other was running on the OLD moodle.org host and used wget to call moodle.org via the web ... I closed that account months ago but somehow phpwebhosting.com never got around to deleting it!  (I've now logged in there and deleted the cron job.)

The duplicate mails were occurring when the two jobs would strike the cron script at exactly the same second ... the first script would not have time to flag in the database that it processed a particular post already and so the second script would go ahead with processing it again.

Even though the forum module restricts this processing to once every 60 seconds, there is still a possible problem - someone could hit the script repeatedly and very occasionally be able to cause this double-mail situation.  So it may be wise on bigger servers to restrict access to the admin/cron.php script only to trusted machines.

This can be done under Apache by making a .htaccess file in the admin directory with something like this in it:

<Files cron.php>
    Order Deny,Allow
    Deny from all
    Allow from 111.222.333.444
</Files>

where the IP address is the address of the machine that needs to call the cron script.
回复Joar Herseth

Re: 2 email messages from each forumpost

Williams Castillo -

Well... Now I'm also getting 2 email from each forum post...

It happened right after I subscribe myself to the webquest forum.. Maybe that has something to do with it.

Regards,

Will

回复Joar Herseth

Re: 2 email messages from each forumpost

John Jennings -

I am experiencing something similiar but now I'm receiving 3 email messages from posts to the Site News

I am currently using Moodle 1.2 development (2003091800) but this has been happening since ver 1.1.1

回复Joar Herseth

Re: 2 email messages from each forumpost

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Check that the user in question is not *both* a Student and a Teacher on the given course. Check in the Teachers list and in the Participants list. They should *not* be in both.

You can just remove them from whichever one they shouldn't be in.