aboutsummaryrefslogtreecommitdiffstats
path: root/mail/fdm
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-09-06 09:19:05 +0800
committersat <sat@FreeBSD.org>2007-09-06 09:19:05 +0800
commit1a6e49afa61ea2e38bb4df6be3beca42f4690bf8 (patch)
tree7fd8a69dc583b5470bc7aa9c5b2764c809aa8110 /mail/fdm
parent006b96466dcad67bb82ee4935e0be3f5b154748f (diff)
downloadfreebsd-ports-gnome-1a6e49afa61ea2e38bb4df6be3beca42f4690bf8.tar.gz
freebsd-ports-gnome-1a6e49afa61ea2e38bb4df6be3beca42f4690bf8.tar.zst
freebsd-ports-gnome-1a6e49afa61ea2e38bb4df6be3beca42f4690bf8.zip
- Integrate a couple of upstream patches
Obtained from: Debian package Suggested by: Frank Terbeck <ft _at_ bewatermyfriend.org>
Diffstat (limited to 'mail/fdm')
-rw-r--r--mail/fdm/Makefile2
-rw-r--r--mail/fdm/files/patch-fix_cmdline_macros42
-rw-r--r--mail/fdm/files/patch-fix_regex_match_tags23
3 files changed, 66 insertions, 1 deletions
diff --git a/mail/fdm/Makefile b/mail/fdm/Makefile
index f1e4e129bc23..26ec63e04086 100644
--- a/mail/fdm/Makefile
+++ b/mail/fdm/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= fdm
-PORTVERSION= 1.3.0.1
+PORTVERSION= 1.3.0.2
DISTVERSION= 1.3c
CATEGORIES= mail
MASTER_SITES= SFE
diff --git a/mail/fdm/files/patch-fix_cmdline_macros b/mail/fdm/files/patch-fix_cmdline_macros
new file mode 100644
index 000000000000..668111658076
--- /dev/null
+++ b/mail/fdm/files/patch-fix_cmdline_macros
@@ -0,0 +1,42 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05fix_cmdline_macros.dpatch by Frank Terbeck <ft@bewatermyfriend.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Quick fix for a bug that breaks macros defined on the command line.
+## Written by Nicholas Marriott (fdm upstream). He will fix this issue
+## the upstream CVS repository as well.
+
+@DPATCH@
+diff -urNad fdm-1.3c~/fdm.c fdm-1.3c/fdm.c
+--- fdm-1.3c~/fdm.c Wed Aug 1 11:58:54 2007
++++ fdm.c Thu Aug 30 14:51:35 2007
+@@ -271,6 +271,8 @@
+ conf.queue_high = -1;
+ conf.queue_low = -1;
+
++ TAILQ_INIT(&parse_macros);
++
+ ARRAY_INIT(&conf.incl);
+ ARRAY_INIT(&conf.excl);
+
+diff -u ../fdm-1.3c.orig/parse.y ./parse.y
+--- ../fdm-1.3c.orig/parse.y Wed Aug 1 11:58:56 2007
++++ parse.y Thu Aug 30 14:51:25 2007
+@@ -70,8 +70,6 @@
+ strb_create(&parse_tags);
+ default_tags(&parse_tags, NULL);
+
+- TAILQ_INIT(&parse_macros);
+-
+ yyparse();
+
+ if (!ARRAY_EMPTY(&parse_rulestack))
+@@ -667,7 +665,7 @@
+ macro->fixed = 0;
+ strlcpy(macro->name, $1, sizeof macro->name);
+ TAILQ_INSERT_HEAD(&parse_macros, macro, entry);
+- } else
++ } else if (!macro->fixed)
+ xfree(macro->value.str);
+ if (!macro->fixed) {
+ macro->type = MACRO_STRING;
diff --git a/mail/fdm/files/patch-fix_regex_match_tags b/mail/fdm/files/patch-fix_regex_match_tags
new file mode 100644
index 000000000000..57f526faf165
--- /dev/null
+++ b/mail/fdm/files/patch-fix_regex_match_tags
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 06fix_regex_match_tags.dpatch by Frank Terbeck <ft@bewatermyfriend.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: This is a fix for broken behaviour if regex matches are used on
+## messages with a From_ header, in which case the replacement tags
+## (like %1) break.
+## Written by Nicholas Marriott (fdm upstream).
+
+@DPATCH@
+diff -urNad fdm-1.3c~/replace.c fdm-1.3c/replace.c
+--- fdm-1.3c~/replace.c Wed Aug 1 11:58:54 2007
++++ replace.c Thu Aug 30 14:51:35 2007
+@@ -257,7 +257,7 @@ replace(char *src, struct strb *tags, st
+ if (!rml->list[idx].valid)
+ continue;
+
+- tptr = m->base + rml->list[idx].so;
++ tptr = m->data + rml->list[idx].so;
+ tlen = rml->list[idx].eo - rml->list[idx].so;
+ break;
+ }
+