Fossil SCM

Fix some minor problems with email notification support

drh 2018-06-23 00:49 email-alerts
Commit c2566260268c436328ea3b5bd2cd87790d334fe6587487dcf75cdd5f45e01b6d
1 file changed +2 -3
+2 -3
--- src/email.c
+++ src/email.c
@@ -70,11 +70,11 @@
7070
@ -- 'c4413' means check-in with rid=4413.
7171
@ --
7272
@ CREATE TABLE repository.pending_alert(
7373
@ eventid TEXT PRIMARY KEY, -- Object that changed
7474
@ sentSep BOOLEAN DEFAULT false, -- individual emails sent
75
-@ sendDigest BOOLEAN DEFAULT false, -- digest emails sent
75
+@ sendDigest BOOLEAN DEFAULT false -- digest emails sent
7676
@ ) WITHOUT ROWID;
7777
@
7878
@ -- Record bounced emails. If too many bounces are received within
7979
@ -- some defined time range, then cancel the subscription. Older
8080
@ -- entries are periodically purged.
@@ -1407,11 +1407,11 @@
14071407
zType,
14081408
db_column_text(&q,2),
14091409
zUrl,
14101410
db_column_text(&q,0)
14111411
);
1412
- *pnEvent++;
1412
+ (*pnEvent)++;
14131413
}
14141414
db_finalize(&q);
14151415
return anchor.pNext;
14161416
}
14171417
@@ -1449,11 +1449,10 @@
14491449
** that generates email alert text.
14501450
*/
14511451
void test_generate_alert_cmd(void){
14521452
int bActual = find_option("actual",0,0)!=0;
14531453
Blob out;
1454
- int i;
14551454
int nEvent;
14561455
EmailEvent *pEvent, *p;
14571456
14581457
db_find_and_open_repository(0, 0);
14591458
verify_all_options();
14601459
--- src/email.c
+++ src/email.c
@@ -70,11 +70,11 @@
70 @ -- 'c4413' means check-in with rid=4413.
71 @ --
72 @ CREATE TABLE repository.pending_alert(
73 @ eventid TEXT PRIMARY KEY, -- Object that changed
74 @ sentSep BOOLEAN DEFAULT false, -- individual emails sent
75 @ sendDigest BOOLEAN DEFAULT false, -- digest emails sent
76 @ ) WITHOUT ROWID;
77 @
78 @ -- Record bounced emails. If too many bounces are received within
79 @ -- some defined time range, then cancel the subscription. Older
80 @ -- entries are periodically purged.
@@ -1407,11 +1407,11 @@
1407 zType,
1408 db_column_text(&q,2),
1409 zUrl,
1410 db_column_text(&q,0)
1411 );
1412 *pnEvent++;
1413 }
1414 db_finalize(&q);
1415 return anchor.pNext;
1416 }
1417
@@ -1449,11 +1449,10 @@
1449 ** that generates email alert text.
1450 */
1451 void test_generate_alert_cmd(void){
1452 int bActual = find_option("actual",0,0)!=0;
1453 Blob out;
1454 int i;
1455 int nEvent;
1456 EmailEvent *pEvent, *p;
1457
1458 db_find_and_open_repository(0, 0);
1459 verify_all_options();
1460
--- src/email.c
+++ src/email.c
@@ -70,11 +70,11 @@
70 @ -- 'c4413' means check-in with rid=4413.
71 @ --
72 @ CREATE TABLE repository.pending_alert(
73 @ eventid TEXT PRIMARY KEY, -- Object that changed
74 @ sentSep BOOLEAN DEFAULT false, -- individual emails sent
75 @ sendDigest BOOLEAN DEFAULT false -- digest emails sent
76 @ ) WITHOUT ROWID;
77 @
78 @ -- Record bounced emails. If too many bounces are received within
79 @ -- some defined time range, then cancel the subscription. Older
80 @ -- entries are periodically purged.
@@ -1407,11 +1407,11 @@
1407 zType,
1408 db_column_text(&q,2),
1409 zUrl,
1410 db_column_text(&q,0)
1411 );
1412 (*pnEvent)++;
1413 }
1414 db_finalize(&q);
1415 return anchor.pNext;
1416 }
1417
@@ -1449,11 +1449,10 @@
1449 ** that generates email alert text.
1450 */
1451 void test_generate_alert_cmd(void){
1452 int bActual = find_option("actual",0,0)!=0;
1453 Blob out;
 
1454 int nEvent;
1455 EmailEvent *pEvent, *p;
1456
1457 db_find_and_open_repository(0, 0);
1458 verify_all_options();
1459

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button