mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Add optional DO_NOT_DECODE_SUBJECT knob (allows to catch unwanted charsets)
This commit is contained in:
parent
120579072c
commit
5e85522768
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=96251
@ -24,6 +24,10 @@ IGNORE= requires Sendmail 8.12
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
.if defined(WITHOUT_SENTINEL_DECODE_SUBJECT)
|
||||
CFLAGS+= -DDO_NOT_DECODE_SUBJECT
|
||||
.endif
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && \
|
||||
${CC} ${CFLAGS} ${PTHREAD_CFLAGS} \
|
||||
|
13
mail/sentinel/files/patch-aa
Normal file
13
mail/sentinel/files/patch-aa
Normal file
@ -0,0 +1,13 @@
|
||||
--- sentinel.c.bak Mon Oct 27 02:03:32 2003
|
||||
+++ sentinel.c Sat Dec 20 07:59:32 2003
|
||||
@@ -3135,8 +3135,10 @@
|
||||
/* check if a rule defined for this header in [headers] section */
|
||||
for (smfhl = smfHeader_list[message->cfgNdx]; smfhl; smfhl = smfhl->next) {
|
||||
if (!strcasecmp(smfhl->name, headerf)) {
|
||||
+#ifndef DO_NOT_DECODE_SUBJECT
|
||||
if (!strcasecmp(headerf, "Subject"))
|
||||
headerv = smfMimeDecodeString(headerv, message->buf);
|
||||
+#endif
|
||||
if (headerv) {
|
||||
for (smfel = smfhl->entr; smfel; smfel = smfel->next) {
|
||||
if (!smfPatternMatch(message, headerv, smfel->event)) {
|
Loading…
Reference in New Issue
Block a user