<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>Kronolith gives premature notifications</title>
  <pubDate>Sun, 07 Sep 2008 20:54:49 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/6183</link>
  <atom:link rel="self" type="application/rss+xml" title="Kronolith gives premature notifications" href="http://bugs.horde.org/ticket/6183/rss" />
  <description>Kronolith gives premature notifications</description>

  
  
  <item>
   <title>I am receiving notifications for alarmed events which are mo</title>
   <description>I am receiving notifications for alarmed events which are months in the future.
I also receive popups even though I have disabled popups in my preferences.
These popups come every time I &quot;reload&quot; the browser or switch to a different Horde Application.
I am using Firefox 1.5.0.10 from Fedora Core 6.</description>
   <pubDate>Thu, 31 Jan 2008 19:07:59 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t41765</link>
  </item>
  <item>
   <title>What Horde version are you using?

Can you reproduce this </title>
   <description>What Horde version are you using?

Can you reproduce this for a clean test account, or just your own? I've never seen this and never heard of anyone else seeing this.</description>
   <pubDate>Thu, 31 Jan 2008 20:13:43 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t41768</link>
  </item>
  <item>
   <title>Here's my particulars:
Address Book  Address Book (turba)  </title>
   <description>Here's my particulars:
Address Book  Address Book (turba)  H3 (2.2-RC1)  	   	 Application is ready.
Calendar Calendar (kronolith) H3 (2.2-RC2) 		Application is ready.
Dynamic Mail Dynamic Mail (dimp) H3 (1.0-RC1) 		Application is ready.
Filters Filters (ingo) H3 (1.2-RC1) 		Application is ready.
Horde Horde (horde) 3.2-RC1 		Application is ready.
Mail Mail (imp) H3 (4.2-RC1) 		Application is ready.
Mobile Mail Mobile Mail (mimp) H3 (1.1-RC1) 		Application is ready.
Notes Notes (mnemo) H3 (2.2-RC1) 		Application is ready.
Tasks Tasks (nag) H3 (2.2-RC1)

Accessing the test.php file for horde and kronolith says it's fine (PHP 5.2.5).
I just tried it with a test account and I do see an inline notification for an event starting next month.
Still trying to get the popups...</description>
   <pubDate>Thu, 31 Jan 2008 20:32:29 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t41769</link>
  </item>
  <item>
   <title>Okay, clean account.  I just went back in and changed the no</title>
   <description>Okay, clean account.  I just went back in and changed the notification for this event to be 15 days prior (it starts on 3/2).  now I'm getting a popup for it whenever I cause a page reload.</description>
   <pubDate>Thu, 31 Jan 2008 20:36:24 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t41770</link>
  </item>
  <item>
   <title>When I select &quot;Horde&quot; on the left menu I get three or four p</title>
   <description>When I select &quot;Horde&quot; on the left menu I get three or four popups in immediate succession.
Also, disabling popups doesn't seem to disable them, even for this new account.</description>
   <pubDate>Thu, 31 Jan 2008 20:40:29 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t41771</link>
  </item>
  <item>
   <title>Sorry for the flood of separate messages.
Here's the inform</title>
   <description>Sorry for the flood of separate messages.
Here's the information for the event.  I also just got an email notification for it:
Category    	 Unfiled
Location   	test
Status   	Confirmed
Owner   	ektest
Start On   	03/02/2008 6:00 am
End On   	03/02/2008 7:00 am
Alarm   	15 Day(s)
Created   	01/31/2008 5:13 pm
Last Modified   	01/31/2008 5:22 pm</description>
   <pubDate>Thu, 31 Jan 2008 20:45:56 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t41772</link>
  </item>
  <item>
   <title>And how do the according entry or entries in the horde_alarm</title>
   <description>And how do the according entry or entries in the horde_alarms table look like?</description>
   <pubDate>Sun, 24 Feb 2008 07:02:40 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t42804</link>
  </item>
  <item>
   <title>Here's one I just created.  The email got sent out immediate</title>
   <description>Here's one I just created.  The email got sent out immediately after I entered it into the calendar.  I'm on RC2 now.
('20080227142103.361826vdkjj1m8n4@knudstrup.org','eknuds','2008-03-26 16:00:00','2008-04-10 17:00:00','a:1:{i:0;s:4:\&quot;mail\&quot;;}',
'a:1:{s:4:\&quot;mail\&quot;;a:3:{s:6:\&quot;__desc\&quot;;s:0:\&quot;\&quot;;s:5:\&quot;email\&quot;;s:18:\&quot;eric@knudstrup.org\&quot;;s:4:\&quot;body\&quot;;s:103:\&quot;We would like to remind you of this upcoming event.\n\ntest\n\nLocation: \n\nDate: 04/10/2008\nTime: 04:00pm\n\n\&quot;;}}','test',NULL,'1970-01-01 00:00:00',0,'a:1:{s:4:\&quot;mail\&quot;;a:1:{s:4:\&quot;sent\&quot;;b:1;}}')</description>
   <pubDate>Wed, 27 Feb 2008 17:56:47 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t43202</link>
  </item>
  <item>
   <title>I am experiencing exactly the same problem:

- notificatio</title>
   <description>I am experiencing exactly the same problem:

- notifications are created as soon as a task or event is created
- if the notification method is a popup, the popup keeps reappearing every time I select a page.
  changing the alarm method does not help - only deleting the event or task or deleting the alarm in the database.
- if the method is email, I immediately get an email
- I used a clean account
- the alarm entry in horde_alarms seems to be quite ok (at least for me)

I am using the latest RCs (RC3 for horde, RC2 for nag and kronolith; I  also tried kronolith CVS).

As this happens both with kronolith and turba, I suppose the problem is somewhere in the horde code.

</description>
   <pubDate>Wed, 19 Mar 2008 10:14:06 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t43994</link>
  </item>
  <item>
   <title>I think I found the problem:
I suppose alarm_snooze should </title>
   <description>I think I found the problem:
I suppose alarm_snooze should not be set to '1970-01-01 00:00:00'? For my alarms, this is always true.
(See eric's horde_alarms sample below.)

I tracked the alarm notification to the select statement in lib/Horde/Alarm/sql.php, function _list.
One of the conditions is:
alarm_snooze &lt;= $time-&gt;rfc3339DateTime()

If alarm_snooze is set to 1970, this is always true.

eg.:
SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal FROM horde_alarms WHERE alarm_dismissed = 0 AND ((alarm_snooze IS NULL AND alarm_start &lt;= '2008-03-21T10:10:07') OR alarm_snooze &lt;= '2008-03-21T10:10:07') AND (alarm_end IS NULL OR alarm_end &gt;= '2008-03-21T10:10:07') AND (alarm_uid = '' OR alarm_uid = 'myuser') ORDER BY alarm_start, alarm_end;


I am using a MySQL database. In the horde SQL scripts, alarm_snooze is set to DATETIME.
If you insert something into horde_alarms without setting alarm_snooze explicitely, it is set to the start of unix time (1970).

Attaching a patch.</description>
   <pubDate>Fri, 21 Mar 2008 05:51:09 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t44114</link>
  </item>
  <item>
   <title>Are you sure that alarm_snoozed is a not a NOT NULL column i</title>
   <description>Are you sure that alarm_snoozed is a not a NOT NULL column in your alarms table? It doesn't make any sense, and I can't reproduce that MySQL is supposed to add 1970-01-01 to the alarm_snoozed column if you don't specify it. That would be badly broken behavior.</description>
   <pubDate>Sat, 22 Mar 2008 14:30:40 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t44145</link>
  </item>
  <item>
   <title>You are right - that seems to be some problem with the datab</title>
   <description>You are right - that seems to be some problem with the database.
A closer look at the database showed that all datetime columns where set to a '1970'  default:

`alarm_start` datetime NOT NULL default '1970-01-01 00:00:00',
 `alarm_end` datetime default '1970-01-01 00:00:00',
 `alarm_snooze` datetime default '1970-01-01 00:00:00',

I have not the slightest idea how that happened. I started with horde-webmail-1.1-rc2 with a clean OS+DB install and only updated the files to the latest horde/imp RCs since then (and did not touch the database - that is something I always try to avoid because I am not well schooled in it ...)

I now dropped the table an recreated it. No more stupid defaults ...

Anyway - I would be nice to know if this solves Eric's problem, too (I suppose it does).

Thanks,
Michael</description>
   <pubDate>Sat, 22 Mar 2008 17:20:02 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t44151</link>
  </item>
  <item>
   <title>I suppose you created the table with the setup.php script th</title>
   <description>I suppose you created the table with the setup.php script the first time?</description>
   <pubDate>Sun, 23 Mar 2008 07:27:07 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t44160</link>
  </item>
  <item>
   <title>Right, I did use setup.php.</title>
   <description>Right, I did use setup.php.</description>
   <pubDate>Sun, 23 Mar 2008 07:59:39 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t44161</link>
  </item>
  <item>
   <title>Yes, I used the setup script.</title>
   <description>Yes, I used the setup script.</description>
   <pubDate>Mon, 24 Mar 2008 00:55:17 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t44164</link>
  </item>
  <item>
   <title>Seems to be a problem with MDB2_Schema.</title>
   <description>Seems to be a problem with MDB2_Schema.</description>
   <pubDate>Mon, 24 Mar 2008 07:33:17 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t44166</link>
  </item>
  <item>
   <title>Looking at this, I agree with Michael Redinger. Patch commit</title>
   <description>Looking at this, I agree with Michael Redinger. Patch committed - thanks!</description>
   <pubDate>Fri, 18 Apr 2008 17:16:07 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t44729</link>
  </item>
  <item>
   <title>I still want to take a look why this didn't work with MDB2_S</title>
   <description>I still want to take a look why this didn't work with MDB2_Schema.</description>
   <pubDate>Thu, 01 May 2008 18:12:24 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t45070</link>
  </item>
  <item>
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title>
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/horde/scripts/sql/create.xml?r1=1.22&amp;r2=1.23&amp;ty=u</description>
   <pubDate>Wed, 20 Aug 2008 13:28:32 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6183#t48324</link>
  </item>
  

 </channel>
</rss>
