Fossil SCM

Typo fix and EOL whitespace cleanups. No functional changes.

stephan 2024-01-21 01:59 trunk
Commit 55151f0024d38524e8612fd509b78f7d80802277a2f58f9bdf172f3f4303c542
1 file changed +18 -19
+18 -19
--- src/alerts.c
+++ src/alerts.c
@@ -86,11 +86,11 @@
8686
@ eventid TEXT PRIMARY KEY, -- Object that changed
8787
@ sentSep BOOLEAN DEFAULT false, -- individual alert sent
8888
@ sentDigest BOOLEAN DEFAULT false, -- digest alert sent
8989
@ sentMod BOOLEAN DEFAULT false -- pending moderation alert sent
9090
@ ) WITHOUT ROWID;
91
-@
91
+@
9292
@ -- Obsolete table. No longer used.
9393
@ DROP TABLE IF EXISTS repository.alert_bounce;
9494
;
9595
9696
/*
@@ -875,11 +875,11 @@
875875
int nTo = 0;
876876
char **azTo = 0;
877877
Blob v;
878878
char *z, *zAddr;
879879
int i;
880
-
880
+
881881
email_header_value(pMsg, "to", &v);
882882
z = blob_str(&v);
883883
for(i=0; z[i]; i++){
884884
if( z[i]=='<' && (zAddr = email_copy_addr(&z[i+1],'>'))!=0 ){
885885
azTo = fossil_realloc(azTo, sizeof(azTo[0])*(nTo+1) );
@@ -889,11 +889,11 @@
889889
*pnTo = nTo;
890890
*pazTo = azTo;
891891
}
892892
893893
/*
894
-** Free a list of To addresses obtained from a prior call to
894
+** Free a list of To addresses obtained from a prior call to
895895
** email_header_to()
896896
*/
897897
void email_header_to_free(int nTo, char **azTo){
898898
int i;
899899
for(i=0; i<nTo; i++) fossil_free(azTo[i]);
@@ -915,11 +915,11 @@
915915
** Message-Id:
916916
** Content-Type:
917917
** Content-Transfer-Encoding:
918918
** MIME-Version:
919919
** Sender:
920
-**
920
+**
921921
** The caller maintains ownership of the input Blobs. This routine will
922922
** read the Blobs and send them onward to the email system, but it will
923923
** not free them.
924924
**
925925
** The Message-Id: field is added if there is not already a Message-Id
@@ -928,11 +928,11 @@
928928
** If the zFromName argument is not NULL, then it should be a human-readable
929929
** name or handle for the sender. In that case, "From:" becomes a made-up
930930
** email address based on a hash of zFromName and the domain of email-self,
931931
** and an additional "Sender:" field is inserted with the email-self
932932
** address. Downstream software might use the Sender header to set
933
-** the envelope-from address of the email. If zFromName is a NULL pointer,
933
+** the envelope-from address of the email. If zFromName is a NULL pointer,
934934
** then the "From:" is set to the email-self value and Sender is
935935
** omitted.
936936
*/
937937
void alert_send(
938938
AlertSender *p, /* Emailer context */
@@ -1045,11 +1045,11 @@
10451045
** a long-running server and will not be sending email notifications,
10461046
** then leave this setting blank.
10471047
*/
10481048
/*
10491049
** SETTING: email-admin width=40
1050
-** This is the email address for the human administrator for the system.
1050
+** This is the email address for the human administrator for the system.
10511051
** Abuse and trouble reports and password reset requests are send here.
10521052
*/
10531053
/*
10541054
** SETTING: email-subname width=16
10551055
** This is a short name used to identifies the repository in the Subject:
@@ -1080,19 +1080,19 @@
10801080
**
10811081
** email-renew-warning is the time (in days since 1970-01-01) when the
10821082
** last batch of "your subscription is about to expire" emails were
10831083
** sent out.
10841084
**
1085
-** email-renew-cutoff is normally 7 days behind email-renew-warning.
1085
+** email-renew-cutoff is normally 7 days behind email-renew-warning.
10861086
*/
10871087
/*
10881088
** SETTING: email-send-method width=5 default=off sensitive
10891089
** Determine the method used to send email. Allowed values are
10901090
** "off", "relay", "pipe", "dir", "db", and "stdout". The "off" value
10911091
** means no email is ever sent. The "relay" value means emails are sent
10921092
** to an Mail Sending Agent using SMTP located at email-send-relayhost.
1093
-** The "pipe" value means email messages are piped into a command
1093
+** The "pipe" value means email messages are piped into a command
10941094
** determined by the email-send-command setting. The "dir" value means
10951095
** emails are written to individual files in a directory determined
10961096
** by the email-send-dir setting. The "db" value means that emails
10971097
** are added to an SQLite database named by the* email-send-db setting.
10981098
** The "stdout" value writes email text to standard output, for debugging.
@@ -1133,11 +1133,11 @@
11331133
*/
11341134
11351135
11361136
/*
11371137
** COMMAND: alerts*
1138
-**
1138
+**
11391139
** Usage: %fossil alerts SUBCOMMAND ARGS...
11401140
**
11411141
** Subcommands:
11421142
**
11431143
** pending Show all pending alerts. Useful for debugging.
@@ -1759,11 +1759,10 @@
17591759
style_set_current_feature("alerts");
17601760
if( zEmail==0 ){
17611761
style_header("Unsubscribe Fail");
17621762
@ <p>Unable to locate a subscriber with the requested key</p>
17631763
}else{
1764
-
17651764
db_multi_exec(
17661765
"DELETE FROM subscriber WHERE subscriberId=%d", sid
17671766
);
17681767
style_header("Unsubscribed");
17691768
@ <p>The "%h(zEmail)" email address has been unsubscribed from all
@@ -1794,11 +1793,11 @@
17941793
** that constitutes verification of the email address.
17951794
**
17961795
** * The sid= query parameter contains an integer subscriberId.
17971796
** This only works for the administrator. It allows the
17981797
** administrator to edit any subscription.
1799
-**
1798
+**
18001799
** * The user is logged into an account other than "nobody" or
18011800
** "anonymous". In that case the notification settings
18021801
** associated with that account can be edited without needing
18031802
** to know the subscriber code.
18041803
**
@@ -1926,11 +1925,11 @@
19261925
zErr = mprintf("Select this checkbox and press \"Unsubscribe\" again to"
19271926
" unsubscribe");
19281927
}else{
19291928
alert_unsubscribe(sid);
19301929
db_commit_transaction();
1931
- return;
1930
+ return;
19321931
}
19331932
}
19341933
style_set_current_feature("alerts");
19351934
style_header("Update Subscription");
19361935
db_prepare(&q,
@@ -2183,11 +2182,11 @@
21832182
21842183
21852184
/* This is the message that gets sent to describe how to change
21862185
** or modify a subscription
21872186
*/
2188
-static const char zUnsubMsg[] =
2187
+static const char zUnsubMsg[] =
21892188
@ To changes your subscription settings at %s visit this link:
21902189
@
21912190
@ %s/alerts/%s
21922191
@
21932192
@ To completely unsubscribe from %s, visit the following link:
@@ -2224,13 +2223,13 @@
22242223
int sid = 0;
22252224
22262225
if( zName==0 ) zName = P("scode");
22272226
22282227
/* If a valid subscriber code is supplied, then either present the user
2229
- ** with a comformation, or if already confirmed, unsubscribe immediately.
2228
+ ** with a confirmation, or if already confirmed, unsubscribe immediately.
22302229
*/
2231
- if( zName
2230
+ if( zName
22322231
&& (sid = db_int(0, "SELECT subscriberId FROM subscriber"
22332232
" WHERE subscriberCode=hextoblob(%Q)", zName))!=0
22342233
){
22352234
char *zUnsubName = mprintf("confirm%04x", sid);
22362235
if( P(zUnsubName)!=0 ){
@@ -2313,11 +2312,11 @@
23132312
@ unsubscribe and/or modify your subscription settings</p>
23142313
}
23152314
alert_sender_free(pSender);
23162315
style_finish_page();
23172316
return;
2318
- }
2317
+ }
23192318
23202319
/* Non-logged-in users have to enter an email address to which is
23212320
** sent a message containing the unsubscribe link.
23222321
*/
23232322
style_header("Unsubscribe Request");
@@ -2722,11 +2721,11 @@
27222721
if( p->needMod ){
27232722
blob_appendf(&p->hdr, "Subject: %s Pending Moderation: %s\r\n",
27242723
zSub, zTitle);
27252724
}else{
27262725
blob_appendf(&p->hdr, "Subject: %s %s\r\n", zSub, zTitle);
2727
- blob_appendf(&p->hdr, "Message-Id: <%.32s@%s>\r\n",
2726
+ blob_appendf(&p->hdr, "Message-Id: <%.32s@%s>\r\n",
27282727
zUuid, alert_hostname(zFrom));
27292728
zIrt = db_column_text(&q, 4);
27302729
if( zIrt && zIrt[0] ){
27312730
blob_appendf(&p->hdr, "In-Reply-To: <%.32s@%s>\r\n",
27322731
zIrt, alert_hostname(zFrom));
@@ -3231,11 +3230,11 @@
32313230
);
32323231
while( db_step(&q)==SQLITE_ROW ){
32333232
Blob hdr, body;
32343233
blob_init(&hdr, 0, 0);
32353234
blob_init(&body, 0, 0);
3236
- alert_renewal_msg(&hdr, &body,
3235
+ alert_renewal_msg(&hdr, &body,
32373236
db_column_text(&q,0),
32383237
db_column_int(&q,1),
32393238
db_column_text(&q,2),
32403239
db_column_text(&q,3),
32413240
zRepoName, zUrl);
@@ -3301,11 +3300,11 @@
33013300
style_header("Outbound Email Disabled");
33023301
@ <p>Outbound email is disabled on this repository
33033302
style_finish_page();
33043303
return;
33053304
}
3306
- if( P("submit")!=0
3305
+ if( P("submit")!=0
33073306
&& P("subject")!=0
33083307
&& P("msg")!=0
33093308
&& P("from")!=0
33103309
&& cgi_csrf_safe(2)
33113310
&& captcha_is_correct(0)
33123311
--- src/alerts.c
+++ src/alerts.c
@@ -86,11 +86,11 @@
86 @ eventid TEXT PRIMARY KEY, -- Object that changed
87 @ sentSep BOOLEAN DEFAULT false, -- individual alert sent
88 @ sentDigest BOOLEAN DEFAULT false, -- digest alert sent
89 @ sentMod BOOLEAN DEFAULT false -- pending moderation alert sent
90 @ ) WITHOUT ROWID;
91 @
92 @ -- Obsolete table. No longer used.
93 @ DROP TABLE IF EXISTS repository.alert_bounce;
94 ;
95
96 /*
@@ -875,11 +875,11 @@
875 int nTo = 0;
876 char **azTo = 0;
877 Blob v;
878 char *z, *zAddr;
879 int i;
880
881 email_header_value(pMsg, "to", &v);
882 z = blob_str(&v);
883 for(i=0; z[i]; i++){
884 if( z[i]=='<' && (zAddr = email_copy_addr(&z[i+1],'>'))!=0 ){
885 azTo = fossil_realloc(azTo, sizeof(azTo[0])*(nTo+1) );
@@ -889,11 +889,11 @@
889 *pnTo = nTo;
890 *pazTo = azTo;
891 }
892
893 /*
894 ** Free a list of To addresses obtained from a prior call to
895 ** email_header_to()
896 */
897 void email_header_to_free(int nTo, char **azTo){
898 int i;
899 for(i=0; i<nTo; i++) fossil_free(azTo[i]);
@@ -915,11 +915,11 @@
915 ** Message-Id:
916 ** Content-Type:
917 ** Content-Transfer-Encoding:
918 ** MIME-Version:
919 ** Sender:
920 **
921 ** The caller maintains ownership of the input Blobs. This routine will
922 ** read the Blobs and send them onward to the email system, but it will
923 ** not free them.
924 **
925 ** The Message-Id: field is added if there is not already a Message-Id
@@ -928,11 +928,11 @@
928 ** If the zFromName argument is not NULL, then it should be a human-readable
929 ** name or handle for the sender. In that case, "From:" becomes a made-up
930 ** email address based on a hash of zFromName and the domain of email-self,
931 ** and an additional "Sender:" field is inserted with the email-self
932 ** address. Downstream software might use the Sender header to set
933 ** the envelope-from address of the email. If zFromName is a NULL pointer,
934 ** then the "From:" is set to the email-self value and Sender is
935 ** omitted.
936 */
937 void alert_send(
938 AlertSender *p, /* Emailer context */
@@ -1045,11 +1045,11 @@
1045 ** a long-running server and will not be sending email notifications,
1046 ** then leave this setting blank.
1047 */
1048 /*
1049 ** SETTING: email-admin width=40
1050 ** This is the email address for the human administrator for the system.
1051 ** Abuse and trouble reports and password reset requests are send here.
1052 */
1053 /*
1054 ** SETTING: email-subname width=16
1055 ** This is a short name used to identifies the repository in the Subject:
@@ -1080,19 +1080,19 @@
1080 **
1081 ** email-renew-warning is the time (in days since 1970-01-01) when the
1082 ** last batch of "your subscription is about to expire" emails were
1083 ** sent out.
1084 **
1085 ** email-renew-cutoff is normally 7 days behind email-renew-warning.
1086 */
1087 /*
1088 ** SETTING: email-send-method width=5 default=off sensitive
1089 ** Determine the method used to send email. Allowed values are
1090 ** "off", "relay", "pipe", "dir", "db", and "stdout". The "off" value
1091 ** means no email is ever sent. The "relay" value means emails are sent
1092 ** to an Mail Sending Agent using SMTP located at email-send-relayhost.
1093 ** The "pipe" value means email messages are piped into a command
1094 ** determined by the email-send-command setting. The "dir" value means
1095 ** emails are written to individual files in a directory determined
1096 ** by the email-send-dir setting. The "db" value means that emails
1097 ** are added to an SQLite database named by the* email-send-db setting.
1098 ** The "stdout" value writes email text to standard output, for debugging.
@@ -1133,11 +1133,11 @@
1133 */
1134
1135
1136 /*
1137 ** COMMAND: alerts*
1138 **
1139 ** Usage: %fossil alerts SUBCOMMAND ARGS...
1140 **
1141 ** Subcommands:
1142 **
1143 ** pending Show all pending alerts. Useful for debugging.
@@ -1759,11 +1759,10 @@
1759 style_set_current_feature("alerts");
1760 if( zEmail==0 ){
1761 style_header("Unsubscribe Fail");
1762 @ <p>Unable to locate a subscriber with the requested key</p>
1763 }else{
1764
1765 db_multi_exec(
1766 "DELETE FROM subscriber WHERE subscriberId=%d", sid
1767 );
1768 style_header("Unsubscribed");
1769 @ <p>The "%h(zEmail)" email address has been unsubscribed from all
@@ -1794,11 +1793,11 @@
1794 ** that constitutes verification of the email address.
1795 **
1796 ** * The sid= query parameter contains an integer subscriberId.
1797 ** This only works for the administrator. It allows the
1798 ** administrator to edit any subscription.
1799 **
1800 ** * The user is logged into an account other than "nobody" or
1801 ** "anonymous". In that case the notification settings
1802 ** associated with that account can be edited without needing
1803 ** to know the subscriber code.
1804 **
@@ -1926,11 +1925,11 @@
1926 zErr = mprintf("Select this checkbox and press \"Unsubscribe\" again to"
1927 " unsubscribe");
1928 }else{
1929 alert_unsubscribe(sid);
1930 db_commit_transaction();
1931 return;
1932 }
1933 }
1934 style_set_current_feature("alerts");
1935 style_header("Update Subscription");
1936 db_prepare(&q,
@@ -2183,11 +2182,11 @@
2183
2184
2185 /* This is the message that gets sent to describe how to change
2186 ** or modify a subscription
2187 */
2188 static const char zUnsubMsg[] =
2189 @ To changes your subscription settings at %s visit this link:
2190 @
2191 @ %s/alerts/%s
2192 @
2193 @ To completely unsubscribe from %s, visit the following link:
@@ -2224,13 +2223,13 @@
2224 int sid = 0;
2225
2226 if( zName==0 ) zName = P("scode");
2227
2228 /* If a valid subscriber code is supplied, then either present the user
2229 ** with a comformation, or if already confirmed, unsubscribe immediately.
2230 */
2231 if( zName
2232 && (sid = db_int(0, "SELECT subscriberId FROM subscriber"
2233 " WHERE subscriberCode=hextoblob(%Q)", zName))!=0
2234 ){
2235 char *zUnsubName = mprintf("confirm%04x", sid);
2236 if( P(zUnsubName)!=0 ){
@@ -2313,11 +2312,11 @@
2313 @ unsubscribe and/or modify your subscription settings</p>
2314 }
2315 alert_sender_free(pSender);
2316 style_finish_page();
2317 return;
2318 }
2319
2320 /* Non-logged-in users have to enter an email address to which is
2321 ** sent a message containing the unsubscribe link.
2322 */
2323 style_header("Unsubscribe Request");
@@ -2722,11 +2721,11 @@
2722 if( p->needMod ){
2723 blob_appendf(&p->hdr, "Subject: %s Pending Moderation: %s\r\n",
2724 zSub, zTitle);
2725 }else{
2726 blob_appendf(&p->hdr, "Subject: %s %s\r\n", zSub, zTitle);
2727 blob_appendf(&p->hdr, "Message-Id: <%.32s@%s>\r\n",
2728 zUuid, alert_hostname(zFrom));
2729 zIrt = db_column_text(&q, 4);
2730 if( zIrt && zIrt[0] ){
2731 blob_appendf(&p->hdr, "In-Reply-To: <%.32s@%s>\r\n",
2732 zIrt, alert_hostname(zFrom));
@@ -3231,11 +3230,11 @@
3231 );
3232 while( db_step(&q)==SQLITE_ROW ){
3233 Blob hdr, body;
3234 blob_init(&hdr, 0, 0);
3235 blob_init(&body, 0, 0);
3236 alert_renewal_msg(&hdr, &body,
3237 db_column_text(&q,0),
3238 db_column_int(&q,1),
3239 db_column_text(&q,2),
3240 db_column_text(&q,3),
3241 zRepoName, zUrl);
@@ -3301,11 +3300,11 @@
3301 style_header("Outbound Email Disabled");
3302 @ <p>Outbound email is disabled on this repository
3303 style_finish_page();
3304 return;
3305 }
3306 if( P("submit")!=0
3307 && P("subject")!=0
3308 && P("msg")!=0
3309 && P("from")!=0
3310 && cgi_csrf_safe(2)
3311 && captcha_is_correct(0)
3312
--- src/alerts.c
+++ src/alerts.c
@@ -86,11 +86,11 @@
86 @ eventid TEXT PRIMARY KEY, -- Object that changed
87 @ sentSep BOOLEAN DEFAULT false, -- individual alert sent
88 @ sentDigest BOOLEAN DEFAULT false, -- digest alert sent
89 @ sentMod BOOLEAN DEFAULT false -- pending moderation alert sent
90 @ ) WITHOUT ROWID;
91 @
92 @ -- Obsolete table. No longer used.
93 @ DROP TABLE IF EXISTS repository.alert_bounce;
94 ;
95
96 /*
@@ -875,11 +875,11 @@
875 int nTo = 0;
876 char **azTo = 0;
877 Blob v;
878 char *z, *zAddr;
879 int i;
880
881 email_header_value(pMsg, "to", &v);
882 z = blob_str(&v);
883 for(i=0; z[i]; i++){
884 if( z[i]=='<' && (zAddr = email_copy_addr(&z[i+1],'>'))!=0 ){
885 azTo = fossil_realloc(azTo, sizeof(azTo[0])*(nTo+1) );
@@ -889,11 +889,11 @@
889 *pnTo = nTo;
890 *pazTo = azTo;
891 }
892
893 /*
894 ** Free a list of To addresses obtained from a prior call to
895 ** email_header_to()
896 */
897 void email_header_to_free(int nTo, char **azTo){
898 int i;
899 for(i=0; i<nTo; i++) fossil_free(azTo[i]);
@@ -915,11 +915,11 @@
915 ** Message-Id:
916 ** Content-Type:
917 ** Content-Transfer-Encoding:
918 ** MIME-Version:
919 ** Sender:
920 **
921 ** The caller maintains ownership of the input Blobs. This routine will
922 ** read the Blobs and send them onward to the email system, but it will
923 ** not free them.
924 **
925 ** The Message-Id: field is added if there is not already a Message-Id
@@ -928,11 +928,11 @@
928 ** If the zFromName argument is not NULL, then it should be a human-readable
929 ** name or handle for the sender. In that case, "From:" becomes a made-up
930 ** email address based on a hash of zFromName and the domain of email-self,
931 ** and an additional "Sender:" field is inserted with the email-self
932 ** address. Downstream software might use the Sender header to set
933 ** the envelope-from address of the email. If zFromName is a NULL pointer,
934 ** then the "From:" is set to the email-self value and Sender is
935 ** omitted.
936 */
937 void alert_send(
938 AlertSender *p, /* Emailer context */
@@ -1045,11 +1045,11 @@
1045 ** a long-running server and will not be sending email notifications,
1046 ** then leave this setting blank.
1047 */
1048 /*
1049 ** SETTING: email-admin width=40
1050 ** This is the email address for the human administrator for the system.
1051 ** Abuse and trouble reports and password reset requests are send here.
1052 */
1053 /*
1054 ** SETTING: email-subname width=16
1055 ** This is a short name used to identifies the repository in the Subject:
@@ -1080,19 +1080,19 @@
1080 **
1081 ** email-renew-warning is the time (in days since 1970-01-01) when the
1082 ** last batch of "your subscription is about to expire" emails were
1083 ** sent out.
1084 **
1085 ** email-renew-cutoff is normally 7 days behind email-renew-warning.
1086 */
1087 /*
1088 ** SETTING: email-send-method width=5 default=off sensitive
1089 ** Determine the method used to send email. Allowed values are
1090 ** "off", "relay", "pipe", "dir", "db", and "stdout". The "off" value
1091 ** means no email is ever sent. The "relay" value means emails are sent
1092 ** to an Mail Sending Agent using SMTP located at email-send-relayhost.
1093 ** The "pipe" value means email messages are piped into a command
1094 ** determined by the email-send-command setting. The "dir" value means
1095 ** emails are written to individual files in a directory determined
1096 ** by the email-send-dir setting. The "db" value means that emails
1097 ** are added to an SQLite database named by the* email-send-db setting.
1098 ** The "stdout" value writes email text to standard output, for debugging.
@@ -1133,11 +1133,11 @@
1133 */
1134
1135
1136 /*
1137 ** COMMAND: alerts*
1138 **
1139 ** Usage: %fossil alerts SUBCOMMAND ARGS...
1140 **
1141 ** Subcommands:
1142 **
1143 ** pending Show all pending alerts. Useful for debugging.
@@ -1759,11 +1759,10 @@
1759 style_set_current_feature("alerts");
1760 if( zEmail==0 ){
1761 style_header("Unsubscribe Fail");
1762 @ <p>Unable to locate a subscriber with the requested key</p>
1763 }else{
 
1764 db_multi_exec(
1765 "DELETE FROM subscriber WHERE subscriberId=%d", sid
1766 );
1767 style_header("Unsubscribed");
1768 @ <p>The "%h(zEmail)" email address has been unsubscribed from all
@@ -1794,11 +1793,11 @@
1793 ** that constitutes verification of the email address.
1794 **
1795 ** * The sid= query parameter contains an integer subscriberId.
1796 ** This only works for the administrator. It allows the
1797 ** administrator to edit any subscription.
1798 **
1799 ** * The user is logged into an account other than "nobody" or
1800 ** "anonymous". In that case the notification settings
1801 ** associated with that account can be edited without needing
1802 ** to know the subscriber code.
1803 **
@@ -1926,11 +1925,11 @@
1925 zErr = mprintf("Select this checkbox and press \"Unsubscribe\" again to"
1926 " unsubscribe");
1927 }else{
1928 alert_unsubscribe(sid);
1929 db_commit_transaction();
1930 return;
1931 }
1932 }
1933 style_set_current_feature("alerts");
1934 style_header("Update Subscription");
1935 db_prepare(&q,
@@ -2183,11 +2182,11 @@
2182
2183
2184 /* This is the message that gets sent to describe how to change
2185 ** or modify a subscription
2186 */
2187 static const char zUnsubMsg[] =
2188 @ To changes your subscription settings at %s visit this link:
2189 @
2190 @ %s/alerts/%s
2191 @
2192 @ To completely unsubscribe from %s, visit the following link:
@@ -2224,13 +2223,13 @@
2223 int sid = 0;
2224
2225 if( zName==0 ) zName = P("scode");
2226
2227 /* If a valid subscriber code is supplied, then either present the user
2228 ** with a confirmation, or if already confirmed, unsubscribe immediately.
2229 */
2230 if( zName
2231 && (sid = db_int(0, "SELECT subscriberId FROM subscriber"
2232 " WHERE subscriberCode=hextoblob(%Q)", zName))!=0
2233 ){
2234 char *zUnsubName = mprintf("confirm%04x", sid);
2235 if( P(zUnsubName)!=0 ){
@@ -2313,11 +2312,11 @@
2312 @ unsubscribe and/or modify your subscription settings</p>
2313 }
2314 alert_sender_free(pSender);
2315 style_finish_page();
2316 return;
2317 }
2318
2319 /* Non-logged-in users have to enter an email address to which is
2320 ** sent a message containing the unsubscribe link.
2321 */
2322 style_header("Unsubscribe Request");
@@ -2722,11 +2721,11 @@
2721 if( p->needMod ){
2722 blob_appendf(&p->hdr, "Subject: %s Pending Moderation: %s\r\n",
2723 zSub, zTitle);
2724 }else{
2725 blob_appendf(&p->hdr, "Subject: %s %s\r\n", zSub, zTitle);
2726 blob_appendf(&p->hdr, "Message-Id: <%.32s@%s>\r\n",
2727 zUuid, alert_hostname(zFrom));
2728 zIrt = db_column_text(&q, 4);
2729 if( zIrt && zIrt[0] ){
2730 blob_appendf(&p->hdr, "In-Reply-To: <%.32s@%s>\r\n",
2731 zIrt, alert_hostname(zFrom));
@@ -3231,11 +3230,11 @@
3230 );
3231 while( db_step(&q)==SQLITE_ROW ){
3232 Blob hdr, body;
3233 blob_init(&hdr, 0, 0);
3234 blob_init(&body, 0, 0);
3235 alert_renewal_msg(&hdr, &body,
3236 db_column_text(&q,0),
3237 db_column_int(&q,1),
3238 db_column_text(&q,2),
3239 db_column_text(&q,3),
3240 zRepoName, zUrl);
@@ -3301,11 +3300,11 @@
3300 style_header("Outbound Email Disabled");
3301 @ <p>Outbound email is disabled on this repository
3302 style_finish_page();
3303 return;
3304 }
3305 if( P("submit")!=0
3306 && P("subject")!=0
3307 && P("msg")!=0
3308 && P("from")!=0
3309 && cgi_csrf_safe(2)
3310 && captcha_is_correct(0)
3311

Keyboard Shortcuts

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