| | @@ -152,11 +152,12 @@ |
| 152 | 152 | |
| 153 | 153 | |
| 154 | 154 | /* |
| 155 | 155 | ** WEBPAGE: setup_email |
| 156 | 156 | ** |
| 157 | | -** Administrative page for configuring and controlling email notification |
| 157 | +** Administrative page for configuring and controlling email notification. |
| 158 | +** Normally accessible via the /Admin/Email menu. |
| 158 | 159 | */ |
| 159 | 160 | void setup_email(void){ |
| 160 | 161 | static const char *const azSendMethods[] = { |
| 161 | 162 | "off", "Disabled", |
| 162 | 163 | "pipe", "Pipe to a command", |
| | @@ -812,12 +813,23 @@ |
| 812 | 813 | ; |
| 813 | 814 | |
| 814 | 815 | /* |
| 815 | 816 | ** WEBPAGE: subscribe |
| 816 | 817 | ** |
| 817 | | -** Allow users to subscribe to email notifications, or to change or |
| 818 | | -** verify their subscription. |
| 818 | +** Allow users to subscribe to email notifications. |
| 819 | +** |
| 820 | +** This page is usually run by users who are not logged in. |
| 821 | +** A logged-in user can add email notificates on the /alerts page. |
| 822 | +** Access to this page by a logged in user (other than an |
| 823 | +** administrator) results in a redirect to the /alerts page. |
| 824 | +** |
| 825 | +** Administrators can visit this page in order to sign up other |
| 826 | +** users. |
| 827 | +** |
| 828 | +** The Email-Alerts permission ("7") is required to access this |
| 829 | +** page. To allow anonymous passers-by to sign up for email |
| 830 | +** notification, set Email-Alerts on user "nobody" or "anonymous". |
| 819 | 831 | */ |
| 820 | 832 | void subscribe_page(void){ |
| 821 | 833 | int needCaptcha; |
| 822 | 834 | unsigned int uSeed; |
| 823 | 835 | const char *zDecoded; |
| | @@ -1026,11 +1038,11 @@ |
| 1026 | 1038 | /* |
| 1027 | 1039 | ** WEBPAGE: alerts |
| 1028 | 1040 | ** |
| 1029 | 1041 | ** Edit email alert and notification settings. |
| 1030 | 1042 | ** |
| 1031 | | -** The subscriber entry is identified in either of two ways: |
| 1043 | +** The subscriber is identified in either of two ways: |
| 1032 | 1044 | ** |
| 1033 | 1045 | ** (1) The name= query parameter contains the subscriberCode. |
| 1034 | 1046 | ** |
| 1035 | 1047 | ** (2) The user is logged into an account other than "nobody" or |
| 1036 | 1048 | ** "anonymous". In that case the notification settings |
| | @@ -1372,12 +1384,14 @@ |
| 1372 | 1384 | |
| 1373 | 1385 | /* |
| 1374 | 1386 | ** WEBPAGE: subscribers |
| 1375 | 1387 | ** |
| 1376 | 1388 | ** This page, accessible to administrators only, |
| 1377 | | -** shows a list of email notification email addresses with |
| 1378 | | -** links to facilities for editing. |
| 1389 | +** shows a list of email notification email addresses. |
| 1390 | +** Clicking on an email takes one to the /alerts page |
| 1391 | +** for that email where the delivery settings can be |
| 1392 | +** modified. |
| 1379 | 1393 | */ |
| 1380 | 1394 | void subscriber_list_page(void){ |
| 1381 | 1395 | Blob sql; |
| 1382 | 1396 | Stmt q; |
| 1383 | 1397 | login_check_credentials(); |
| | @@ -1582,10 +1596,15 @@ |
| 1582 | 1596 | ** Usage: %fossil test-add-alerts EVENTID ... |
| 1583 | 1597 | ** |
| 1584 | 1598 | ** Add one or more events to the pending_alert queue. Use this |
| 1585 | 1599 | ** command during testing to force email notifications for specific |
| 1586 | 1600 | ** events. |
| 1601 | +** |
| 1602 | +** EVENTIDs are text. The first character is 'c', 'w', or 't' |
| 1603 | +** for check-in, wiki, or ticket. The remaining text is a |
| 1604 | +** integer that references the EVENT.OBJID value for the event. |
| 1605 | +** Run /timeline?showid to see these OBJID values. |
| 1587 | 1606 | */ |
| 1588 | 1607 | void test_add_alert_cmd(void){ |
| 1589 | 1608 | int i; |
| 1590 | 1609 | db_find_and_open_repository(0, 0); |
| 1591 | 1610 | verify_all_options(); |
| 1592 | 1611 | |