Skip to content

Commit aa48650

Browse files
committed
Fixes #37 : warn_surpressions should be spelled as warn_suppressions
1 parent 103099f commit aa48650

File tree

11 files changed

+28
-24
lines changed

11 files changed

+28
-24
lines changed

Changelog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Version Changes for Hypermail
44
HYPERMAIL VERSION 2.3.1:
55
============================
66

7+
Jose Kahan (June 19, 2018)
8+
- Changed mispelled configuration option warn_surpressions to the
9+
correct spelling warn_suppressions.
10+
711
Jose Kahan (June 14, 2018)
812
- Hypermail would segfault or have an incorrect thread view if it was
913
handling an archive with a message (msg1) that was a reply to a message not

configs/hmrc.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,15 +798,15 @@ show_index_links = 1
798798
# the default if save_alts = 1:
799799
#alts_text = <hr>
800800

801-
# warn_surpressions = [ 0 | 1 ]
801+
# warn_suppressions = [ 0 | 1 ]
802802
#
803803
# Set this to 1 to get warnings (on stdout) about messages that
804804
# are not converted because of they are missing a msgid (if
805805
# require_msgids is On) or because one of the following options
806-
# surpressed it: deleted expires delete_msgnum filter_out
806+
# suppressed it: deleted expires delete_msgnum filter_out
807807
# filter_require filter_out_full_body filter_require_full_body.
808808

809-
# warn_surpressions = 1
809+
# warn_suppressions = 1
810810

811811
# unsafe_chars = list of chars to prohibit
812812
# Any characters listed in this string are removed from user-specified

configs/hypermail.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,9 +580,9 @@ alts_text = "alternate version of message"
580580
# Set this to On to get warnings (on stdout) about messages that
581581
# are not converted because of they are missing a msgid (if
582582
# require_msgids is On) or because one of the following options
583-
# surpressed it: deleted expires delete_msgnum filter_out
583+
# suppressed it: deleted expires delete_msgnum filter_out
584584
# filter_require filter_out_full_body filter_require_full_body.
585-
warn_surpressions = On
585+
warn_suppressions = On
586586

587587
# Any characters listed in this string are removed from user-specified
588588
# attachment filenames. Those characters will be replaced by a "_"

docs/hmrc.4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,11 @@ If save_alts is 1, this text is put between the alternatives.
547547
If save_alts is 2, this text is used to describe the link to each
548548
alternative file.
549549
.TP
550-
.B warn_surpressions = boolean_number
550+
.B warn_suppressions = boolean_number
551551
Set this to On to get warnings (on stdout) about messages that
552552
are not converted because of they are missing a msgid (if
553553
require_msgids is On) or because one of the following options
554-
surpressed it: deleted expires delete_msgnum filter_out
554+
suppressed it: deleted expires delete_msgnum filter_out
555555
filter_require filter_out_full_body filter_require_full_body.
556556
.TP
557557
.B unsafe_chars = "characters"

docs/hmrc.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ <h1 align=center><img src="hypermail.png" width="60" align="middle" height="60"
182182
<li><a href="#delete_incremental">delete_incremental</a> remove previous deleted messages on-the-fly
183183
<li><a href="#htmlmessage_deleted">htmlmessage_deleted</a> custom markup body for deleted messages
184184
<li><a href="#progress">progress</a> verbosity
185-
<li><a href="#warn_surpressions">warn_surpressions</a> warn about ignored messages
185+
<li><a href="#warn_suppressions">warn_suppressions</a> warn about ignored messages
186186
<li><a href="#uselock">uselock</a> serialize
187187
<li><a href="#locktime">locktime</a> timeouts
188188
<li><a href="#base_url">base_url</a>
@@ -1313,15 +1313,15 @@ <h3><a name="sysmisc">System miscellaneous</a></h3>
13131313
<br>
13141314
<br><i>progress = 0</i>
13151315
</dd>
1316-
<a name="warn_surpressions"></a>
1317-
<dt><strong> warn_surpressions = [ 0 | 1 ]</strong></dt><dd>
1316+
<a name="warn_suppressions"></a>
1317+
<dt><strong> warn_suppressions = [ 0 | 1 ]</strong></dt><dd>
13181318
Set this to 1 to get warnings (on stdout) about messages that
13191319
are not converted because of they are missing a msgid (if
13201320
require_msgids is On) or because one of the following options
1321-
surpressed it: deleted expires delete_msgnum filter_out
1321+
suppressed it: deleted expires delete_msgnum filter_out
13221322
filter_require filter_out_full_body filter_require_full_body.
13231323
<br>
1324-
<br><i>warn_surpressions = 1</i>
1324+
<br><i>warn_suppressions = 1</i>
13251325
</dd>
13261326
<a name="uselock"></a>
13271327
<dt><strong> uselock = [ 0 | 1 ]</strong></dt><dd>

src/finelink.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static int add_anchor(int msgnum, int quoting_msgnum, int quote_num, const char
202202
break;
203203
}
204204
fputs(buffer, fp2);
205-
/* surpress decrement for lines inserted by html conversion: */
205+
/* suppress decrement for lines inserted by html conversion: */
206206
if (!strcasecmp(buffer, "<p>\n"))
207207
++count_quoted_lines;
208208
else {
@@ -593,17 +593,17 @@ void replace_maybe_replies(const char *filename, struct emailinfo *ep, int new_r
593593
MSG_PREVIOUS_MESSAGE
594594
};
595595
int i;
596-
int surpress = 0;
596+
int suppress = 0;
597597
for (i = 0; patts[i]; ++i) {
598598
char temp[256];
599599
snprintf(temp,sizeof(temp), patts[i], lang[indices[i]]);
600600
if ((ptr = strcasestr(buffer, temp))
601601
&& (i < 4 || new_reply_to == atoi(ptr + strlen(temp)))) {
602-
surpress = 1;
602+
suppress = 1;
603603
break;
604604
}
605605
}
606-
if (surpress)
606+
if (suppress)
607607
continue;
608608
}
609609
/* check for old critmail format */

src/parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3978,7 +3978,7 @@ void fixreplyheader(char *dir, int num, int remove_maybes, int max_update)
39783978
|| strcasestr(bp->line, old2_next_pattern)
39793979
|| strstr(bp->line, old_next_pattern))) {
39803980
bp = bp->next;
3981-
continue; /* line duplicates next in thread; surpress */
3981+
continue; /* line duplicates next in thread; suppress */
39823982
}
39833983

39843984
if (!remove_maybes

src/setup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ bool set_writehaof;
6767
bool set_append;
6868
char *set_append_filename;
6969
bool set_nonsequential;
70-
bool set_warn_surpressions;
70+
bool set_warn_suppressions;
7171
bool set_files_by_thread;
7272
bool set_href_detection;
7373
bool set_mbox_shortened;
@@ -761,11 +761,11 @@ struct Config cfg[] = {
761761
"# If save_alts is 2, this text is used to describe the link to each\n"
762762
"# alternative file.\n", FALSE},
763763

764-
{"warn_surpressions", &set_warn_surpressions, BTRUE, CFG_SWITCH,
764+
{"warn_suppressions", &set_warn_suppressions, BTRUE, CFG_SWITCH,
765765
"# Set this to On to get warnings (on stdout) about messages that\n"
766766
"# are not converted because of they are missing a msgid (if\n"
767767
"# require_msgids is On) or because one of the following options\n"
768-
"# surpressed it: deleted expires delete_msgnum filter_out\n"
768+
"# suppressed it: deleted expires delete_msgnum filter_out\n"
769769
"# filter_require filter_out_full_body filter_require_full_body.\n", FALSE},
770770

771771
{"unsafe_chars", &set_unsafe_chars, NULL, CFG_STRING,

src/setup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ extern bool set_writehaof;
8686
extern bool set_append;
8787
extern char *set_append_filename;
8888
extern bool set_nonsequential;
89-
extern bool set_warn_surpressions;
89+
extern bool set_warn_suppressions;
9090
extern bool set_files_by_thread;
9191
extern bool set_href_detection;
9292
extern bool set_mbox_shortened;

src/struct.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ struct emailinfo *addhash(int num, char *date, char *name, char *email, char *ms
168168
if (!msgid) {
169169
/* SEVERE ERROR, all mails MUST have a Message-ID, ignore it! */
170170
if (set_require_msgids) {
171-
if (set_warn_surpressions)
171+
if (set_warn_suppressions)
172172
printf("Message-ID is missing, ignoring message with subject '%s'.\n", subject ? subject : "<unknown>");
173173
return NULL;
174174
}
@@ -339,7 +339,7 @@ int insert_in_lists(struct emailinfo *emp, const bool * require_filter, int rlen
339339
h->data = emp;
340340
h->next = deletedlist;
341341
deletedlist = h;
342-
if (set_warn_surpressions && require_filter) {
342+
if (set_warn_suppressions && require_filter) {
343343
const char *option = "??";
344344
switch (emp->is_deleted) {
345345
case FILTERED_DELETE:

0 commit comments

Comments
 (0)