Fossil SCM
Minor simplification of the "test-alerts" debugging command.
Commit
5d28db4da1217e35aee5bb73d570cbb6ff8fc8e3aff2023259b08b27a6397d07
Parent
dfaa221bb58789f…
1 file changed
+1
-11
+1
-11
| --- src/alerts.c | ||
| +++ src/alerts.c | ||
| @@ -13,11 +13,11 @@ | ||
| 13 | 13 | ** [email protected] |
| 14 | 14 | ** http://www.hwaci.com/drh/ |
| 15 | 15 | ** |
| 16 | 16 | ******************************************************************************* |
| 17 | 17 | ** |
| 18 | -** Logic for email notification, also known as "alerts". | |
| 18 | +** Logic for email notification, also known as "alerts" or "subscriptions". | |
| 19 | 19 | ** |
| 20 | 20 | ** Are you looking for the code that reads and writes the internet |
| 21 | 21 | ** email protocol? That is not here. See the "smtp.c" file instead. |
| 22 | 22 | ** Yes, the choice of source code filenames is not the greatest, but |
| 23 | 23 | ** it is not so bad that changing them seems justified. |
| @@ -2589,19 +2589,10 @@ | ||
| 2589 | 2589 | "on Fossil repository %s (%s/timeline)\n", |
| 2590 | 2590 | db_get("email-subname","(unknown)"), |
| 2591 | 2591 | db_get("email-url","http://localhost:8080")); |
| 2592 | 2592 | } |
| 2593 | 2593 | |
| 2594 | -/* | |
| 2595 | -** Append the "unsubscribe" notification and other footer text to | |
| 2596 | -** the end of an email alert being assemblied in pOut. | |
| 2597 | -*/ | |
| 2598 | -void alert_footer(Blob *pOut){ | |
| 2599 | - blob_appendf(pOut, "\n-- \nTo unsubscribe: %s/unsubscribe\n", | |
| 2600 | - db_get("email-url","http://localhost:8080")); | |
| 2601 | -} | |
| 2602 | - | |
| 2603 | 2594 | /* |
| 2604 | 2595 | ** COMMAND: test-alert |
| 2605 | 2596 | ** |
| 2606 | 2597 | ** Usage: %fossil test-alert EVENTID ... |
| 2607 | 2598 | ** |
| @@ -2661,11 +2652,10 @@ | ||
| 2661 | 2652 | blob_append(&out, "\n", 1); |
| 2662 | 2653 | } |
| 2663 | 2654 | blob_append(&out, blob_buffer(&p->txt), blob_size(&p->txt)); |
| 2664 | 2655 | } |
| 2665 | 2656 | alert_free_eventlist(pEvent); |
| 2666 | - alert_footer(&out); | |
| 2667 | 2657 | fossil_print("%s", blob_str(&out)); |
| 2668 | 2658 | blob_reset(&out); |
| 2669 | 2659 | db_end_transaction(0); |
| 2670 | 2660 | } |
| 2671 | 2661 | |
| 2672 | 2662 |
| --- src/alerts.c | |
| +++ src/alerts.c | |
| @@ -13,11 +13,11 @@ | |
| 13 | ** [email protected] |
| 14 | ** http://www.hwaci.com/drh/ |
| 15 | ** |
| 16 | ******************************************************************************* |
| 17 | ** |
| 18 | ** Logic for email notification, also known as "alerts". |
| 19 | ** |
| 20 | ** Are you looking for the code that reads and writes the internet |
| 21 | ** email protocol? That is not here. See the "smtp.c" file instead. |
| 22 | ** Yes, the choice of source code filenames is not the greatest, but |
| 23 | ** it is not so bad that changing them seems justified. |
| @@ -2589,19 +2589,10 @@ | |
| 2589 | "on Fossil repository %s (%s/timeline)\n", |
| 2590 | db_get("email-subname","(unknown)"), |
| 2591 | db_get("email-url","http://localhost:8080")); |
| 2592 | } |
| 2593 | |
| 2594 | /* |
| 2595 | ** Append the "unsubscribe" notification and other footer text to |
| 2596 | ** the end of an email alert being assemblied in pOut. |
| 2597 | */ |
| 2598 | void alert_footer(Blob *pOut){ |
| 2599 | blob_appendf(pOut, "\n-- \nTo unsubscribe: %s/unsubscribe\n", |
| 2600 | db_get("email-url","http://localhost:8080")); |
| 2601 | } |
| 2602 | |
| 2603 | /* |
| 2604 | ** COMMAND: test-alert |
| 2605 | ** |
| 2606 | ** Usage: %fossil test-alert EVENTID ... |
| 2607 | ** |
| @@ -2661,11 +2652,10 @@ | |
| 2661 | blob_append(&out, "\n", 1); |
| 2662 | } |
| 2663 | blob_append(&out, blob_buffer(&p->txt), blob_size(&p->txt)); |
| 2664 | } |
| 2665 | alert_free_eventlist(pEvent); |
| 2666 | alert_footer(&out); |
| 2667 | fossil_print("%s", blob_str(&out)); |
| 2668 | blob_reset(&out); |
| 2669 | db_end_transaction(0); |
| 2670 | } |
| 2671 | |
| 2672 |
| --- src/alerts.c | |
| +++ src/alerts.c | |
| @@ -13,11 +13,11 @@ | |
| 13 | ** [email protected] |
| 14 | ** http://www.hwaci.com/drh/ |
| 15 | ** |
| 16 | ******************************************************************************* |
| 17 | ** |
| 18 | ** Logic for email notification, also known as "alerts" or "subscriptions". |
| 19 | ** |
| 20 | ** Are you looking for the code that reads and writes the internet |
| 21 | ** email protocol? That is not here. See the "smtp.c" file instead. |
| 22 | ** Yes, the choice of source code filenames is not the greatest, but |
| 23 | ** it is not so bad that changing them seems justified. |
| @@ -2589,19 +2589,10 @@ | |
| 2589 | "on Fossil repository %s (%s/timeline)\n", |
| 2590 | db_get("email-subname","(unknown)"), |
| 2591 | db_get("email-url","http://localhost:8080")); |
| 2592 | } |
| 2593 | |
| 2594 | /* |
| 2595 | ** COMMAND: test-alert |
| 2596 | ** |
| 2597 | ** Usage: %fossil test-alert EVENTID ... |
| 2598 | ** |
| @@ -2661,11 +2652,10 @@ | |
| 2652 | blob_append(&out, "\n", 1); |
| 2653 | } |
| 2654 | blob_append(&out, blob_buffer(&p->txt), blob_size(&p->txt)); |
| 2655 | } |
| 2656 | alert_free_eventlist(pEvent); |
| 2657 | fossil_print("%s", blob_str(&out)); |
| 2658 | blob_reset(&out); |
| 2659 | db_end_transaction(0); |
| 2660 | } |
| 2661 | |
| 2662 |