Fossil SCM

Minor simplification of the "test-alerts" debugging command.

drh 2021-06-07 01:17 trunk
Commit 5d28db4da1217e35aee5bb73d570cbb6ff8fc8e3aff2023259b08b27a6397d07
1 file changed +1 -11
+1 -11
--- src/alerts.c
+++ src/alerts.c
@@ -13,11 +13,11 @@
1313
** [email protected]
1414
** http://www.hwaci.com/drh/
1515
**
1616
*******************************************************************************
1717
**
18
-** Logic for email notification, also known as "alerts".
18
+** Logic for email notification, also known as "alerts" or "subscriptions".
1919
**
2020
** Are you looking for the code that reads and writes the internet
2121
** email protocol? That is not here. See the "smtp.c" file instead.
2222
** Yes, the choice of source code filenames is not the greatest, but
2323
** it is not so bad that changing them seems justified.
@@ -2589,19 +2589,10 @@
25892589
"on Fossil repository %s (%s/timeline)\n",
25902590
db_get("email-subname","(unknown)"),
25912591
db_get("email-url","http://localhost:8080"));
25922592
}
25932593
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
-
26032594
/*
26042595
** COMMAND: test-alert
26052596
**
26062597
** Usage: %fossil test-alert EVENTID ...
26072598
**
@@ -2661,11 +2652,10 @@
26612652
blob_append(&out, "\n", 1);
26622653
}
26632654
blob_append(&out, blob_buffer(&p->txt), blob_size(&p->txt));
26642655
}
26652656
alert_free_eventlist(pEvent);
2666
- alert_footer(&out);
26672657
fossil_print("%s", blob_str(&out));
26682658
blob_reset(&out);
26692659
db_end_transaction(0);
26702660
}
26712661
26722662
--- 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

Keyboard Shortcuts

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