Fossil SCM
Fix some minor problems with email notification support
Commit
c2566260268c436328ea3b5bd2cd87790d334fe6587487dcf75cdd5f45e01b6d
Parent
e649820ba1fdb2d…
1 file changed
+2
-3
+2
-3
| --- src/email.c | ||
| +++ src/email.c | ||
| @@ -70,11 +70,11 @@ | ||
| 70 | 70 | @ -- 'c4413' means check-in with rid=4413. |
| 71 | 71 | @ -- |
| 72 | 72 | @ CREATE TABLE repository.pending_alert( |
| 73 | 73 | @ eventid TEXT PRIMARY KEY, -- Object that changed |
| 74 | 74 | @ sentSep BOOLEAN DEFAULT false, -- individual emails sent |
| 75 | -@ sendDigest BOOLEAN DEFAULT false, -- digest emails sent | |
| 75 | +@ sendDigest BOOLEAN DEFAULT false -- digest emails sent | |
| 76 | 76 | @ ) WITHOUT ROWID; |
| 77 | 77 | @ |
| 78 | 78 | @ -- Record bounced emails. If too many bounces are received within |
| 79 | 79 | @ -- some defined time range, then cancel the subscription. Older |
| 80 | 80 | @ -- entries are periodically purged. |
| @@ -1407,11 +1407,11 @@ | ||
| 1407 | 1407 | zType, |
| 1408 | 1408 | db_column_text(&q,2), |
| 1409 | 1409 | zUrl, |
| 1410 | 1410 | db_column_text(&q,0) |
| 1411 | 1411 | ); |
| 1412 | - *pnEvent++; | |
| 1412 | + (*pnEvent)++; | |
| 1413 | 1413 | } |
| 1414 | 1414 | db_finalize(&q); |
| 1415 | 1415 | return anchor.pNext; |
| 1416 | 1416 | } |
| 1417 | 1417 | |
| @@ -1449,11 +1449,10 @@ | ||
| 1449 | 1449 | ** that generates email alert text. |
| 1450 | 1450 | */ |
| 1451 | 1451 | void test_generate_alert_cmd(void){ |
| 1452 | 1452 | int bActual = find_option("actual",0,0)!=0; |
| 1453 | 1453 | Blob out; |
| 1454 | - int i; | |
| 1455 | 1454 | int nEvent; |
| 1456 | 1455 | EmailEvent *pEvent, *p; |
| 1457 | 1456 | |
| 1458 | 1457 | db_find_and_open_repository(0, 0); |
| 1459 | 1458 | verify_all_options(); |
| 1460 | 1459 |
| --- 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 |