View | Details | Raw Unified | Return to bug 213431 | Differences between
and this patch

Collapse All | Expand All

(-)b/mail/mutt/Makefile (-19 / +23 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	mutt
4
PORTNAME=	mutt
5
PORTVERSION=	1.7.0
5
PORTVERSION=	1.7.1
6
PORTREVISION?=	0
6
PORTREVISION?=	0
7
CATEGORIES+=	mail ipv6
7
CATEGORIES+=	mail ipv6
8
MASTER_SITES=	ftp://ftp.mutt.org/pub/mutt/ \
8
MASTER_SITES=	ftp://ftp.mutt.org/pub/mutt/ \
Lines 10-31 MASTER_SITES= ftp://ftp.mutt.org/pub/mutt/ \ Link Here
10
		https://bitbucket.org/mutt/mutt/downloads/ \
10
		https://bitbucket.org/mutt/mutt/downloads/ \
11
		ftp://ftp.demon.co.uk/pub/mirrors/mutt/ \
11
		ftp://ftp.demon.co.uk/pub/mirrors/mutt/ \
12
		http://www.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
12
		http://www.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
13
		http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv
13
		http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
14
		http://vc.org.ua/mutt/:vc
14
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
15
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
16
DIST_SUBDIR=	mutt
15
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
17
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
16
18
17
PATCH_SITES+=	http://www.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
19
PATCH_SITES+=	http://www.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
18
		http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
20
		http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
19
		http://home.woolridge.ca/mutt/patches/:dw
21
		http://home.uchicago.edu/~dgc/sw/mutt/:dgc \
22
		https://www.schrab.com/aaron/mutt/:ats
23
PATCH_DIST_STRIP=	-p1
24
PATCHFILES=	patch-1.5.1.dgc.deepif.1:dgc \
25
			patch-1.7.0.ats.date_conditional.1:ats
20
26
21
MAINTAINER?=	dereks@lifeofadishwasher.com
27
MAINTAINER?=	dereks@lifeofadishwasher.com
22
COMMENT?=	The Mongrel of Mail User Agents
28
COMMENT?=	Small but powerful text based program for read/writing e-mail
23
29
24
LICENSE=	GPLv2+
30
LICENSE=	GPLv2+
25
31
26
CONFLICTS?=	ja-mutt-[0-9]* ja-mutt-devel-[0-9]* mutt-1.4* mutt-devel-lite-[0-9]* mutt-lite-[0-9]* zh-mutt-devel-[0-9]*
32
CONFLICTS?=	ja-mutt-[0-9]* ja-mutt-devel-[0-9]* mutt-1.4* mutt-devel-lite-[0-9]* mutt-lite-[0-9]* zh-mutt-devel-[0-9]*
27
33
28
DIST_SUBDIR=	mutt
29
DOCSDIR?=	${PREFIX}/share/doc/mutt
34
DOCSDIR?=	${PREFIX}/share/doc/mutt
30
EXAMPLESDIR?=	${PREFIX}/share/examples/mutt
35
EXAMPLESDIR?=	${PREFIX}/share/examples/mutt
31
DATADIR?=	${PREFIX}/share/mutt
36
DATADIR?=	${PREFIX}/share/mutt
Lines 49-59 AUTOMAKE_ARGS= --add-missing --foreign Link Here
49
OPTIONS_SUB=	yes
54
OPTIONS_SUB=	yes
50
55
51
.if defined (MUTT_LITE)
56
.if defined (MUTT_LITE)
52
LITE=	yes
53
USES+=	ncurses
54
.endif
55
56
.if defined (LITE)
57
OPTIONS_UNSET=	NLS DOCS EXAMPLES
57
OPTIONS_UNSET=	NLS DOCS EXAMPLES
58
.else
58
.else
59
OPTIONS_DEFINE=	COMPRESSED_FOLDERS SASL DEBUG DOCS EXAMPLES FLOCK \
59
OPTIONS_DEFINE=	COMPRESSED_FOLDERS SASL DEBUG DOCS EXAMPLES FLOCK \
Lines 111-117 OPTIONS_DEFAULT= COMPRESSED_FOLDERS HTML ICONV IDN IFDEF_PATCH \ Link Here
111
111
112
RUN_DEPENDS+=	${LOCALBASE}/etc/mime.types:misc/mime-support
112
RUN_DEPENDS+=	${LOCALBASE}/etc/mime.types:misc/mime-support
113
113
114
.if !defined (LITE)
114
.if !defined (MUTT_LITE)
115
ASPELL_BUILD_DEPENDS=	aspell:textproc/aspell
115
ASPELL_BUILD_DEPENDS=	aspell:textproc/aspell
116
ASPELL_RUN_DEPENDS=	aspell:textproc/aspell
116
ASPELL_RUN_DEPENDS=	aspell:textproc/aspell
117
ISPELL_BUILD_DEPENDS=	ispell:textproc/aspell-ispell
117
ISPELL_BUILD_DEPENDS=	ispell:textproc/aspell-ispell
Lines 119-126 ISPELL_RUN_DEPENDS= ispell:textproc/aspell-ispell Link Here
119
URLVIEW_RUN_DEPENDS=	urlview:textproc/urlview
119
URLVIEW_RUN_DEPENDS=	urlview:textproc/urlview
120
.endif
120
.endif
121
121
122
.if defined (LITE)
122
.if defined (MUTT_LITE)
123
PKGNAMESUFFIX=	-lite
123
USES+=	ncurses
124
PLIST_SUB+=	MAILBOX_MANPAGES=""
124
PLIST_SUB+=	MAILBOX_MANPAGES=""
125
PLIST_SUB+=	COMPRESSED_FOLDERS="@comment "
125
PLIST_SUB+=	COMPRESSED_FOLDERS="@comment "
126
PLIST_SUB+=	HTML="@comment "
126
PLIST_SUB+=	HTML="@comment "
Lines 187-192 SMTP_CONFIGURE_ENABLE= smtp Link Here
187
187
188
MAILDIR_HEADER_CACHE_CONFIGURE_OFF=	--without-qdbm
188
MAILDIR_HEADER_CACHE_CONFIGURE_OFF=	--without-qdbm
189
189
190
GREETING_PATCH_DISTFILES=	mutt-${GREETING_PATCH_VERSION}.vc.greeting:vc
191
190
COMPRESSED_FOLDERS_DISTFILES=	patch-${RR_PATCH_VERSION}.rr.compressed.gz:vvv
192
COMPRESSED_FOLDERS_DISTFILES=	patch-${RR_PATCH_VERSION}.rr.compressed.gz:vvv
191
COMPRESSED_FOLDERS_CONFIGURE_ON=	--enable-compressed
193
COMPRESSED_FOLDERS_CONFIGURE_ON=	--enable-compressed
192
COMPRESSED_FOLDERS_VARS=	XML_NEEDED=yes
194
COMPRESSED_FOLDERS_VARS=	XML_NEEDED=yes
Lines 209-223 DOCS_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-doc-ref Link Here
209
211
210
.include <bsd.port.options.mk>
212
.include <bsd.port.options.mk>
211
213
212
DW_PATCH_VERSION=	1.5.6
214
# un/comment as each VERSION is created for PORTVERSION
215
#VVV_PATCH_VERSION=	1.7.0
216
#RR_PATCH_VERSION=	1.7.0
217
GREETING_PATCH_VERSION=	1.7.0
218
213
.if !defined(VVV_PATCH_VERSION)
219
.if !defined(VVV_PATCH_VERSION)
214
VVV_PATCH_VERSION=	${PORTVERSION}
220
VVV_PATCH_VERSION=	${PORTVERSION}
215
.endif
221
.endif
216
.if !defined(RR_PATCH_VERSION)
222
.if !defined(RR_PATCH_VERSION)
217
RR_PATCH_VERSION=	${PORTVERSION}
223
RR_PATCH_VERSION=	${PORTVERSION}
218
.endif
224
.endif
219
.if !defined(DW_PATCH_VERSION)
225
.if !defined(GREETING_PATCH_VERSION)
220
DW_PATCH_VERSION=	${PORTVERSION}
226
GREETING_PATCH_VERSION=	${PORTVERSION}
221
.endif
227
.endif
222
228
223
# XXX
229
# XXX
Lines 234-241 LDFLAGS+= -L${LOCALBASE}/lib -Wl,-rpath=${LOCALBASE}/lib:/usr/lib -ltinfow Link Here
234
CFLAGS+=		${CFLAGS_ADD}
240
CFLAGS+=		${CFLAGS_ADD}
235
LDFLAGS+=		${LDFLAGS_ADD}
241
LDFLAGS+=		${LDFLAGS_ADD}
236
242
237
PATCH_DIST_STRIP=	-p1
238
239
pre-patch-PARENT_CHILD_MATCH_PATCH-on:
243
pre-patch-PARENT_CHILD_MATCH_PATCH-on:
240
	@${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-parent-child-match
244
	@${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-parent-child-match
241
245
Lines 274-280 post-install-NNTP-on: Link Here
274
	${INSTALL_DATA} ${WRKSRC}/ChangeLog.nntp ${STAGEDIR}${DOCSDIR}
278
	${INSTALL_DATA} ${WRKSRC}/ChangeLog.nntp ${STAGEDIR}${DOCSDIR}
275
279
276
post-patch-GREETING_PATCH-on:
280
post-patch-GREETING_PATCH-on:
277
	@${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-greeting
281
	@${PATCH} ${PATCH_ARGS} -p1 < ${DISTDIR}/${DIST_SUBDIR}/mutt-${GREETING_PATCH_VERSION}.vc.greeting
278
282
279
post-patch-IFDEF_PATCH-on:
283
post-patch-IFDEF_PATCH-on:
280
	@${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-ifdef
284
	@${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-ifdef
(-)b/mail/mutt/distinfo (-13 / +19 lines)
Lines 1-13 Link Here
1
TIMESTAMP = 1475708081
1
TIMESTAMP = 1476339598
2
SHA256 (mutt/mutt-1.7.0.tar.gz) = 1d3e987433d8c92ef88a604f4dcefdb35a86ce73f3eff0157e2e491e5b55b345
2
SHA256 (mutt/mutt-1.7.1.tar.gz) = e9c6f88e83d48690033f0d862a70293ac746286b77241554f5448bc23bd0d6df
3
SIZE (mutt/mutt-1.7.0.tar.gz) = 4019567
3
SIZE (mutt/mutt-1.7.1.tar.gz) = 4025008
4
SHA256 (mutt/patch-1.7.0.rr.compressed.gz) = 663987cf588e1b55cae37efa55d078ed805f5c1eaca892d2077408855d47f561
4
SHA256 (mutt/patch-1.7.1.rr.compressed.gz) = 97bc56bbc6b0312b87e8dfb68dd9b551edb9d6771bb1b52b1c6f63f51d0bd05b
5
SIZE (mutt/patch-1.7.0.rr.compressed.gz) = 9994
5
SIZE (mutt/patch-1.7.1.rr.compressed.gz) = 9985
6
SHA256 (mutt/patch-1.7.0.vvv.nntp.gz) = c22c42f0635246532a8d806e479d963dac419b913c6fbd0a1af41c2444175aa9
6
SHA256 (mutt/mutt-1.7.0.vc.greeting) = 88f0a1b29750fdb0d4feef5dc46bd0ab022b93ec8c53080991b17dd13fb8e185
7
SIZE (mutt/patch-1.7.0.vvv.nntp.gz) = 61078
7
SIZE (mutt/mutt-1.7.0.vc.greeting) = 4175
8
SHA256 (mutt/patch-1.7.0.vvv.nntp_ru.gz) = f238786497f56925a7d230143622b9ff5c5f9baaf5643e2b0322b9cfb7013ce8
8
SHA256 (mutt/patch-1.7.1.vvv.nntp.gz) = 798db983e3d63d954bfd88e0b8771f806afddf0ae07cc9a03d27def355675687
9
SIZE (mutt/patch-1.7.0.vvv.nntp_ru.gz) = 5495
9
SIZE (mutt/patch-1.7.1.vvv.nntp.gz) = 61201
10
SHA256 (mutt/patch-1.7.0.vvv.initials.gz) = f27a94a16233de695a004e2e720ac2b531e26956577c08ab576f79e288268420
10
SHA256 (mutt/patch-1.7.1.vvv.nntp_ru.gz) = 497f96c19ff17330404667a63c1abd6a5b309004c4dc5100f73973012ad8a2c1
11
SIZE (mutt/patch-1.7.0.vvv.initials.gz) = 669
11
SIZE (mutt/patch-1.7.1.vvv.nntp_ru.gz) = 5494
12
SHA256 (mutt/patch-1.7.0.vvv.quote.gz) = 9f22fd73fe918520750174be6285ba9a7d95054e616db717b638ad5e3073d5dc
12
SHA256 (mutt/patch-1.5.1.dgc.deepif.1) = d655a2f0003bdb2efb7ee5a8c77c113da661110e9c63289f03eb622773fc7a34
13
SIZE (mutt/patch-1.7.0.vvv.quote.gz) = 1252
13
SIZE (mutt/patch-1.5.1.dgc.deepif.1) = 767
14
SHA256 (mutt/patch-1.7.0.ats.date_conditional.1) = a7f65e0b6e59713582b3b0a1c3d3c0e54e5875f5dfe3bda285e51a5b6d96e14e
15
SIZE (mutt/patch-1.7.0.ats.date_conditional.1) = 2415
16
SHA256 (mutt/patch-1.7.1.vvv.initials.gz) = 1405104d8929d672dc5ffebbca8ea5601a88c515e862ec2f89e5b92bfdb53ad0
17
SIZE (mutt/patch-1.7.1.vvv.initials.gz) = 675
18
SHA256 (mutt/patch-1.7.1.vvv.quote.gz) = de0e47fb8ffe1ab6587aba37438c90443bee6508759bf82d8aa5da27317b3cc7
19
SIZE (mutt/patch-1.7.1.vvv.quote.gz) = 1258
(-)b/mail/mutt/files/patch-INSTALL (+18 lines)
Added Link Here
1
--- INSTALL.orig	2016-10-13 05:35:30 UTC
2
+++ INSTALL
3
@@ -228,13 +228,13 @@ If you decide to use your system's iconv
4
 need to tell mutt about implementation-defined names for some
5
 character sets.  Sample configuration files for various systems can
6
 be found in the directory contrib/iconv/ in this source
7
-distribution, and will be installed in the samples/iconv directory
8
+distribution, and will be installed in the share/examples/mutt/iconv directory
9
 as part of mutt's documentation.
10
 
11
 In order to use these sample configuration files, just put a line
12
 like
13
 
14
-     source /usr/local/doc/mutt/samples/iconv/iconv.osf1-4.0d.rc
15
+     source /usr/local/share/examples/mutt/iconv/iconv.osf1-4.0d.rc
16
 
17
 into your system's global Muttrc, which normally resides in /etc or
18
 /usr/local/etc.
(-)b/mail/mutt/files/patch-Makefile.am (-3 / +24 lines)
Lines 1-6 Link Here
1
--- Makefile.am.orig	2015-09-10 07:37:42.000000000 +0200
1
--- Makefile.am.orig	2016-10-13 05:35:30 UTC
2
+++ Makefile.am	2015-09-10 07:38:51.000000000 +0200
2
+++ Makefile.am
3
@@ -162,10 +162,6 @@
3
@@ -10,7 +10,7 @@ IMAP_SUBDIR = imap
4
 IMAP_INCLUDES = -I$(top_srcdir)/imap
5
 endif
6
 
7
-SUBDIRS = m4 po intl doc contrib $(IMAP_SUBDIR)
8
+SUBDIRS = m4 po intl contrib $(IMAP_SUBDIR) . doc
9
 
10
 bin_SCRIPTS = muttbug flea $(SMIMEAUX_TARGET)
11
 
12
@@ -153,22 +153,9 @@ patchlist.c: $(srcdir)/PATCHES $(srcdir)
13
 	$(srcdir)/patchlist.sh < $(srcdir)/PATCHES > patchlist.c
14
 
15
 install-exec-hook:
16
-	if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/mutt_dotlock ; then	\
17
-		rm -f $(DESTDIR)$(bindir)/mutt.dotlock ;		\
18
-		ln -sf $(DESTDIR)$(bindir)/mutt_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
19
-	fi
20
-	if test -f $(DESTDIR)$(bindir)/mutt_dotlock && test x$(DOTLOCK_GROUP) != x ; then \
21
-		chgrp $(DOTLOCK_GROUP) $(DESTDIR)$(bindir)/mutt_dotlock && \
22
-		chmod $(DOTLOCK_PERMISSION) $(DESTDIR)$(bindir)/mutt_dotlock || \
23
-		{ echo "Can't fix mutt_dotlock's permissions!  This is required to lock mailboxes in the mail spool directory." >&2 ; exit 1 ; } \
24
-	fi
4
 
25
 
5
 install-data-local:
26
 install-data-local:
6
 	$(MKDIR_P) $(DESTDIR)$(sysconfdir)
27
 	$(MKDIR_P) $(DESTDIR)$(sysconfdir)
(-)a/mail/mutt/files/patch-Makefile.am.doc (-11 lines)
Removed Link Here
1
--- Makefile.am.orig2	Mon Feb  7 10:20:52 2005
2
+++ Makefile.am	Mon Feb  7 10:29:41 2005
3
@@ -10,7 +10,7 @@
4
 IMAP_INCLUDES = -I$(top_srcdir)/imap
5
 endif
6
 
7
-SUBDIRS = m4 po intl doc contrib $(IMAP_SUBDIR)
8
+SUBDIRS = m4 po intl contrib $(IMAP_SUBDIR) . doc
9
 
10
 bin_SCRIPTS = muttbug flea @SMIMEAUX_TARGET@
11
 
(-)b/mail/mutt/files/patch-browser.c (-4 / +5 lines)
Lines 1-5 Link Here
1
Index: browser.c
1
--- browser.c.orig	2016-10-08 19:35:50 UTC
2
@@ -80,6 +80,12 @@
2
+++ browser.c
3
@@ -80,6 +80,12 @@ static int browser_compare_subject (cons
3
   struct folder_file *pa = (struct folder_file *) a;
4
   struct folder_file *pa = (struct folder_file *) a;
4
   struct folder_file *pb = (struct folder_file *) b;
5
   struct folder_file *pb = (struct folder_file *) b;
5
 
6
 
Lines 12-18 Index: browser.c Link Here
12
   int r = mutt_strcoll (pa->name, pb->name);
13
   int r = mutt_strcoll (pa->name, pb->name);
13
 
14
 
14
   return ((BrowserSort & SORT_REVERSE) ? -r : r);
15
   return ((BrowserSort & SORT_REVERSE) ? -r : r);
15
@@ -90,6 +96,12 @@
16
@@ -90,6 +96,12 @@ static int browser_compare_date (const v
16
   struct folder_file *pa = (struct folder_file *) a;
17
   struct folder_file *pa = (struct folder_file *) a;
17
   struct folder_file *pb = (struct folder_file *) b;
18
   struct folder_file *pb = (struct folder_file *) b;
18
 
19
 
Lines 25-31 Index: browser.c Link Here
25
   int r = pa->mtime - pb->mtime;
26
   int r = pa->mtime - pb->mtime;
26
 
27
 
27
   return ((BrowserSort & SORT_REVERSE) ? -r : r);
28
   return ((BrowserSort & SORT_REVERSE) ? -r : r);
28
@@ -100,6 +112,12 @@
29
@@ -100,6 +112,12 @@ static int browser_compare_size (const v
29
   struct folder_file *pa = (struct folder_file *) a;
30
   struct folder_file *pa = (struct folder_file *) a;
30
   struct folder_file *pb = (struct folder_file *) b;
31
   struct folder_file *pb = (struct folder_file *) b;
31
 
32
 
(-)b/mail/mutt/files/patch-commands.c (+11 lines)
Added Link Here
1
--- commands.c.orig	2016-10-13 05:35:30 UTC
2
+++ commands.c
3
@@ -185,7 +185,7 @@ int mutt_display_message (HEADER *cur)
4
     {
5
       if (cur->security & GOODSIGN)
6
       {
7
-	if (!crypt_smime_verify_sender(cur))
8
+	if (option(OPTSMIMENOSENDER) || !crypt_smime_verify_sender(cur))
9
 	  mutt_message ( _("S/MIME signature successfully verified."));
10
 	else
11
 	  mutt_error ( _("S/MIME certificate owner does not match sender."));
(-)a/mail/mutt/files/patch-contrib-Makefile.am (-11 lines)
Removed Link Here
1
--- contrib/Makefile.am.orig	Tue Jul 18 20:04:14 2006
2
+++ contrib/Makefile.am	Wed Aug 30 16:15:04 2006
3
@@ -2,7 +2,7 @@
4
 
5
 subdir = contrib
6
 
7
-SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp5.rc pgp6.rc Tin.rc \
8
+SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp6.rc Tin.rc \
9
 	sample.muttrc  sample.mailcap sample.muttrc-tlr \
10
 	colors.default colors.linux smime.rc \
11
 	ca-bundle.crt smime_keys_test.pl
(-)b/mail/mutt/files/patch-contrib_Makefile.am (+29 lines)
Added Link Here
1
--- contrib/Makefile.am.orig	2016-10-13 05:35:30 UTC
2
+++ contrib/Makefile.am
3
@@ -1,8 +1,9 @@
4
 # $Id$
5
 
6
 subdir = contrib
7
+samplesdir = /usr/local/share/examples/mutt
8
 
9
-SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp5.rc pgp6.rc Tin.rc \
10
+SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp6.rc Tin.rc \
11
 	sample.mailcap sample.muttrc sample.muttrc-sidebar sample.muttrc-tlr \
12
 	sample.vimrc-sidebar colors.default colors.linux smime.rc \
13
 	ca-bundle.crt smime_keys_test.pl mutt_xtitle
14
@@ -14,12 +15,12 @@ EXTRA_DIST = language.txt language50.txt
15
 	iconv/make.sh
16
 
17
 install-data-local:
18
-	$(MKDIR_P) $(DESTDIR)$(docdir)/samples $(DESTDIR)$(docdir)/samples/iconv
19
+	$(MKDIR_P) $(DESTDIR)$(samplesdir) $(DESTDIR)$(samplesdir)/iconv
20
 	for f in $(SAMPLES) ; do \
21
-		$(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir)/samples ;	\
22
+		$(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(samplesdir) ;	\
23
 	done
24
 	for f in $(srcdir)/iconv/*.rc ; do					\
25
-		$(INSTALL) -m 644 $$f $(DESTDIR)$(docdir)/samples/iconv	  ;	\
26
+		$(INSTALL) -m 644 $$f $(DESTDIR)$(samplesdir)/iconv  ;		\
27
 	done
28
 
29
 uninstall-local:
(-)b/mail/mutt/files/patch-contrib_smime.rc (+28 lines)
Added Link Here
1
--- contrib/smime.rc.orig	2016-10-13 05:35:30 UTC
2
+++ contrib/smime.rc
3
@@ -8,7 +8,10 @@ set smime_is_default
4
 
5
 # Uncomment this if you don't want to set labels for certificates you add.
6
 # unset smime_ask_cert_label
7
-
8
+ 
9
+# Uncomment this if you don't want to check for sender's email address
10
+# set smime_dont_check_sender = yes
11
+  
12
 # Passphrase expiration
13
 set smime_timeout=300
14
 
15
@@ -23,8 +26,12 @@ set crypt_verify_sig = yes
16
 
17
 # The (default) keyfile for signing/decrypting.  Uncomment the following
18
 # line and replace the keyid with your own.
19
-set smime_default_key="12345678.0"
20
+# set smime_default_key="12345678.0"
21
 
22
+# Uncomment the following line in addition to the one above, if you want that
23
+# all encrypted messages are also encrypted with your default key.
24
+# set smime_encrypt_self = yes
25
+  
26
 # Uncomment to make mutt ask what key to use when trying to decrypt a message.
27
 # It will use the default key above (if that was set) else.
28
 # unset smime_decrypt_use_default_key
(-)b/mail/mutt/files/patch-crypt.c (+23 lines)
Added Link Here
1
--- crypt.c.orig	2016-10-13 05:35:30 UTC
2
+++ crypt.c
3
@@ -231,8 +231,18 @@ int mutt_protect (HEADER *msg, char *key
4
     if ((WithCrypto & APPLICATION_SMIME)
5
         && (msg->security & APPLICATION_SMIME))
6
     {
7
-      if (!(tmp_pbody = crypt_smime_build_smime_entity (tmp_smime_pbody,
8
-                                                        keylist)))
9
+	   char *new_keylist = keylist;
10
+
11
+		 if (SmimeDefaultKey && query_quadoption(OPT_SMIMEENCRYPTSELF, _("Encrypt message to S/MIME Default Key also?")) == MUTT_YES)
12
+		 {
13
+			int size = mutt_strlen(keylist) + mutt_strlen (SmimeDefaultKey) + 2; /* +1 for NULL, +1 for \n */
14
+			new_keylist = safe_malloc(size);
15
+			snprintf(new_keylist, size, "%s%s\n", keylist, SmimeDefaultKey);
16
+	   }
17
+		 
18
+	  tmp_pbody = crypt_smime_build_smime_entity (tmp_smime_pbody, new_keylist);
19
+	  safe_free((void **)&new_keylist);
20
+	  if (!tmp_pbody)
21
       {
22
 	/* signed ? free it! */
23
 	return (-1);
(-)a/mail/mutt/files/patch-date-conditional (-147 lines)
Removed Link Here
1
--- PATCHES~	never
2
+++ PATCHES	Thu Jun 13 16:25:05 CDT 2002
3
@@ -0,0 +1 @@
4
+dgc.deepif.1
5
diff -Pur mutt-1.5.1-base/muttlib.c mutt-1.5.1/muttlib.c
6
--- muttlib.c	Tue Mar 26 16:47:06 2002
7
+++ muttlib.c	Thu Jun 13 15:28:20 2002
8
@@ -978,6 +978,12 @@
9
 	count = 0;
10
         while (count < sizeof (ifstring) && *src && *src != '?' && *src != '&')
11
 	{
12
+	  if (*src == '\\')
13
+	  {
14
+	    src++;
15
+	    if (!*src)
16
+	      break;
17
+	  }
18
           *cp++ = *src++;
19
 	  count++;
20
 	}
21
@@ -990,7 +996,13 @@
22
 	count = 0;
23
 	while (count < sizeof (elsestring) && *src && *src != '?')
24
 	{
25
-	  *cp++ = *src++;
26
+	  if (*src == '\\')
27
+	  {
28
+	    src++;
29
+	    if (!*src)
30
+	      break;
31
+	  }
32
+          *cp++ = *src++;
33
 	  count++;
34
 	}
35
 	*cp = 0;
36
Index: PATCHES
37
===================================================================
38
--- PATCHES	(revision 22)
39
+++ PATCHES	(revision 22)
40
@@ -0,0 +1 @@
41
+patch-1.5.0.ats.date_conditional.1
42
Index: muttlib.c
43
===================================================================
44
--- muttlib.c	(revision 22)
45
+++ muttlib.c	(revision 22)
46
@@ -944,7 +944,16 @@
47
       if (*src == '?')
48
       {
49
 	flags |= MUTT_FORMAT_OPTIONAL;
50
-	src++;
51
+	ch = *(++src); /* save the character to switch on */
52
+	cp = prefix;
53
+	++src;
54
+	count = 0;
55
+	while (count < sizeof (prefix) && *src != '?')
56
+	{
57
+	  *cp++ = *src++;
58
+	  count++;
59
+	}
60
+	*cp = 0;
61
       }
62
       else
63
       {
64
@@ -960,12 +969,12 @@
65
 	  count++;
66
 	}
67
 	*cp = 0;
68
-      }
69
 
70
-      if (!*src)
71
-	break; /* bad format */
72
+	if (!*src)
73
+	  break; /* bad format */
74
 
75
-      ch = *src++; /* save the character to switch on */
76
+	ch = *src++; /* save the character to switch on */
77
+      }
78
 
79
       if (flags & M_FORMAT_OPTIONAL)
80
       {
81
--- hdrline.c.orig	Tue Jun 29 15:01:28 2004
82
+++ hdrline.c	Tue Jun 29 15:02:59 2004
83
@@ -316,6 +316,64 @@
84
 	const char *cp;
85
 	struct tm *tm; 
86
 	time_t T;
87
+	int i = 0, invert = 0;
88
+
89
+	if (optional && (op == '[' || op == '(')) {
90
+	  char *is;
91
+          int d;
92
+	  T = time(NULL);
93
+	  tm = localtime(&T);
94
+	  d = (T + tm->tm_gmtoff) % 86400;
95
+	  T -= (op == '(') ? hdr->received : hdr->date_sent;
96
+
97
+	  is = (char *)prefix;
98
+	  if( *is == '>' ) {
99
+	    invert = 1;
100
+	    ++is;
101
+	  }
102
+
103
+	  while( *is && *is != '?' ) {
104
+	    int t = strtol (is, &is, 10);
105
+	    switch (*(is++)) {
106
+	      case '?':
107
+		break;
108
+	      case 'y':
109
+		t *= 365 * 24 * 60 * 60;
110
+		break;
111
+	      case 'M':
112
+		t *= 30 * 24 * 60 * 60;
113
+		break;
114
+	      case 'w':
115
+		t *= 7 * 24 * 60 * 60;
116
+		break;
117
+	      case 'd':
118
+		t *= 24 * 60 * 60;
119
+		break;
120
+	      case 't':
121
+		if (t > 1) {
122
+		  t = (t-1) * 24 * 60 * 60;
123
+		} else {
124
+		  t = 0;
125
+		}
126
+		t += d;
127
+		break;
128
+	      case 'h':
129
+		t *= 60 * 60;
130
+		break;
131
+	      case 'm':
132
+		t *= 60;
133
+		break;
134
+	    }
135
+	    i += t;
136
+	  }
137
+
138
+	  if (i < 0)
139
+	    i *= -1;
140
+
141
+	  if( (T > i || T < -1*i) ^ invert )
142
+	    optional = 0;
143
+	  break;
144
+	}
145
 
146
 	p = dest;
147
 
(-)a/mail/mutt/files/patch-doc-Muttrc (-10 lines)
Removed Link Here
1
--- doc/Muttrc.orig	Sat May 13 08:30:44 2000
2
+++ doc/Muttrc	Sat May 13 08:32:05 2000
3
@@ -629,6 +629,7 @@
4
 # Type: boolean
5
 # Default: yes
6
 # 
7
+set followup_to=no
8
 # 
9
 # Controls whether or not the Mail-Followup-To header field is
10
 # generated when sending mail.  When set, Mutt will generate this
(-)b/mail/mutt/files/patch-doc_Makefile.am (-4 / +4 lines)
Lines 1-6 Link Here
1
--- doc/Makefile.am.orig	2014-05-31 14:09:54.000000000 +0200
1
--- doc/Makefile.am.orig	2016-10-13 05:35:30 UTC
2
+++ doc/Makefile.am	2014-05-31 14:12:07.000000000 +0200
2
+++ doc/Makefile.am
3
@@ -77,14 +77,7 @@
3
@@ -79,14 +79,7 @@ install-data-local: makedoc-all instdoc
4
 	-for f in $(HTML_DOCFILES) ; do \
4
 	-for f in $(HTML_DOCFILES) ; do \
5
 		$(INSTALL) -m 644 $$f $(DESTDIR)$(docdir) ; \
5
 		$(INSTALL) -m 644 $$f $(DESTDIR)$(docdir) ; \
6
 	done
6
 	done
Lines 16-22 Link Here
16
 
16
 
17
 uninstall-local:
17
 uninstall-local:
18
 	for f in mutt.1 mutt_dotlock.1 flea.1 muttbug.1 smime_keys.1 pgpewrap.1 pgpring.1; do \
18
 	for f in mutt.1 mutt_dotlock.1 flea.1 muttbug.1 smime_keys.1 pgpewrap.1 pgpring.1; do \
19
@@ -107,9 +100,7 @@
19
@@ -109,9 +102,7 @@ uninstall-local:
20
 
20
 
21
 check:
21
 check:
22
 manual.txt: manual.html
22
 manual.txt: manual.html
(-)b/mail/mutt/files/patch-doc_Muttrc (+10 lines)
Added Link Here
1
--- doc/Muttrc.orig	2016-10-13 05:35:30 UTC
2
+++ doc/Muttrc
3
@@ -626,6 +626,7 @@ attachments   -I message/external-body
4
 # will be saved for later references.  Also see $record,
5
 # $save_name, $force_name and ``fcc-hook''.
6
 # 
7
+set followup_to=no
8
 # 
9
 # set crypt_autoencrypt=no
10
 #
(-)b/mail/mutt/files/patch-doc_manual.txt (+24 lines)
Added Link Here
1
--- doc/manual.txt.orig	2016-10-13 05:35:30 UTC
2
+++ doc/manual.txt
3
@@ -8073,8 +8073,8 @@ set imap_authenticators="gssapi:cram-md5
4
 
5
    For examples on how to configure these formats for the various versions
6
    of PGP which are floating around, see the pgp and gpg sample
7
-   configuration files in the samples/ subdirectory which has been
8
-   installed on your system alongside the documentation. (PGP only)
9
+   configuration files in the share/examples/mutt/ subdirectory which has
10
+   been installed on your system alongside the documentation. (PGP only)
11
 
12
 3.166. pgp_decrypt_command
13
 
14
@@ -9332,8 +9332,8 @@ set sidebar_delim_chars='.'
15
    or "-CAfile [1766]$$ssmmiimmee__ccaa__llooccaattiioonn".
16
 
17
    For examples on how to configure these formats, see the smime.rc in the
18
-   samples/ subdirectory which has been installed on your system alongside
19
-   the documentation. (S/MIME only)
20
+   share/examples/mutt/ subdirectory which has been installed on your system
21
+   alongside the documentation. (S/MIME only)
22
 
23
 3.271. smime_decrypt_use_default_key
24
 
(-)b/mail/mutt/files/patch-doc_manual.xml.head (-2 / +2 lines)
Lines 1-5 Link Here
1
--- doc/manual.xml.head.orig	2009-06-22 08:35:06.000000000 +0200
1
--- doc/manual.xml.head.orig	2016-10-13 05:35:30 UTC
2
+++ doc/manual.xml.head	2009-06-22 08:37:31.000000000 +0200
2
+++ doc/manual.xml.head
3
@@ -1,6 +1,6 @@
3
@@ -1,6 +1,6 @@
4
 <?xml version="1.0" standalone="no"?>
4
 <?xml version="1.0" standalone="no"?>
5
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
5
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
(-)a/mail/mutt/files/patch-examples (-94 lines)
Removed Link Here
1
--- contrib/Makefile.am.orig	2015-09-10 08:43:38.000000000 +0200
2
+++ contrib/Makefile.am	2015-09-10 08:48:05.000000000 +0200
3
@@ -1,6 +1,7 @@
4
 # $Id$
5
 
6
 subdir = contrib
7
+samplesdir = @samplesdir@
8
 
9
 SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp6.rc Tin.rc \
10
 	sample.muttrc  sample.mailcap sample.muttrc-tlr \
11
@@ -14,12 +15,12 @@
12
 	iconv/make.sh
13
 
14
 install-data-local:
15
-	$(MKDIR_P) $(DESTDIR)$(docdir)/samples $(DESTDIR)$(docdir)/samples/iconv
16
+	$(MKDIR_P) $(DESTDIR)$(samplesdir) $(DESTDIR)$(samplesdir)/iconv
17
 	for f in $(SAMPLES) ; do \
18
-		$(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir)/samples ;	\
19
+		$(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(samplesdir) ;	\
20
 	done
21
 	for f in $(srcdir)/iconv/*.rc ; do					\
22
-		$(INSTALL) -m 644 $$f $(DESTDIR)$(docdir)/samples/iconv	  ;	\
23
+		$(INSTALL) -m 644 $$f $(DESTDIR)$(samplesdir)/iconv  ;		\
24
 	done
25
 
26
 uninstall-local:
27
--- init.h.orig	2009-02-06 13:27:52.000000000 +0100
28
+++ init.h	2009-02-06 13:34:09.000000000 +0100
29
@@ -1808,9 +1808,8 @@
30
   ** .pp
31
   ** For examples on how to configure these formats for the various versions
32
   ** of PGP which are floating around, see the pgp and gpg sample configuration files in
33
-  ** the \fCsamples/\fP subdirectory which has been installed on your system
34
-  ** alongside the documentation.
35
-  ** (PGP only)
36
+  ** the \fCshare/examples/mutt/\fP subdirectory which has been installed on
37
+  **  your system. (PGP only)
38
   */
39
   { "pgp_getkeys_command",	DT_STR, R_NONE, UL &PgpGetkeysCommand, 0},
40
   /*
41
@@ -2017,9 +2016,8 @@
42
   ** .de
43
   ** .pp
44
   ** For examples on how to configure these formats, see the \fCsmime.rc\fP in
45
-  ** the \fCsamples/\fP subdirectory which has been installed on your system
46
-  ** alongside the documentation.
47
-  ** (S/MIME only)
48
+  ** the \fCshare/examples/mutt/\fP subdirectory which has been installed on
49
+  ** your system. (S/MIME only)
50
   */
51
   { "smime_verify_command", 	DT_STR, R_NONE, UL &SmimeVerifyCommand, 0},
52
   /*
53
--- INSTALL.orig	Mon Nov 25 15:16:46 2002
54
+++ INSTALL	Wed Mar 26 15:59:57 2003
55
@@ -225,13 +225,13 @@
56
 need to tell mutt about implementation-defined names for some
57
 character sets.  Sample configuration files for various systems can
58
 be found in the directory contrib/iconv/ in this source
59
-distribution, and will be installed in the samples/iconv directory
60
+distribution, and will be installed in the share/examples/mutt/iconv directory
61
 as part of mutt's documentation.
62
 
63
 In order to use these sample configuration files, just put a line
64
 like
65
 
66
-     source /usr/local/doc/mutt/samples/iconv/iconv.osf1-4.0d.rc
67
+     source /usr/local/share/examples/mutt/iconv/iconv.osf1-4.0d.rc
68
 
69
 into your system's global Muttrc, which normally resides in /etc or
70
 /usr/local/etc.
71
--- doc/manual.txt.orig	2015-08-30 19:25:51.000000000 +0200
72
+++ doc/manual.txt	2015-09-10 08:56:32.000000000 +0200
73
@@ -7736,8 +7736,8 @@
74
 
75
    For examples on how to configure these formats for the various versions
76
    of PGP which are floating around, see the pgp and gpg sample
77
-   configuration files in the samples/ subdirectory which has been
78
-   installed on your system alongside the documentation. (PGP only)
79
+   configuration files in the share/examples/mutt/ subdirectory which has
80
+   been installed on your system alongside the documentation. (PGP only)
81
 
82
 3.162. pgp_decrypt_command
83
 
84
@@ -8783,8 +8783,8 @@
85
       "-CAfile $$ssmmiimmee__ccaa__llooccaattiioonn".
86
 
87
    For examples on how to configure these formats, see the smime.rc in the
88
-   samples/ subdirectory which has been installed on your system alongside
89
-   the documentation. (S/MIME only)
90
+   share/examples/mutt/ subdirectory which has been installed on your system
91
+   alongside the documentation. (S/MIME only)
92
 
93
 3.252. smime_decrypt_use_default_key
94
 
(-)b/mail/mutt/files/patch-imap_message.c (-6 / +2 lines)
Lines 1-10 Link Here
1
This patch fixes a segfault that happens when the IMAP server sends some
1
--- imap/message.c.orig	2016-10-13 05:35:30 UTC
2
additional flags for the same message ID, see upstream bug
3
http://bugs.mutt.org/3288
4
5
--- imap/message.c
6
+++ imap/message.c
2
+++ imap/message.c
7
@@ -288,7 +288,7 @@
3
@@ -290,7 +290,7 @@ int imap_read_headers (IMAP_DATA* idata,
8
         continue;
4
         continue;
9
       }
5
       }
10
       /* May receive FLAGS updates in a separate untagged response (#2935) */
6
       /* May receive FLAGS updates in a separate untagged response (#2935) */
(-)b/mail/mutt/files/patch-init.h (+47 lines)
Added Link Here
1
--- init.h.orig	2016-10-13 05:35:30 UTC
2
+++ init.h
3
@@ -1814,9 +1814,8 @@ struct option_t MuttVars[] = {
4
   ** .pp
5
   ** For examples on how to configure these formats for the various versions
6
   ** of PGP which are floating around, see the pgp and gpg sample configuration files in
7
-  ** the \fCsamples/\fP subdirectory which has been installed on your system
8
-  ** alongside the documentation.
9
-  ** (PGP only)
10
+  ** the \fCshare/examples/mutt/\fP subdirectory which has been installed on
11
+  **  your system. (PGP only)
12
   */
13
   { "pgp_decrypt_command", 	DT_STR, R_NONE, UL &PgpDecryptCommand, 0},
14
   /*
15
@@ -2942,9 +2941,17 @@ struct option_t MuttVars[] = {
16
   ** .de
17
   ** .pp
18
   ** For examples on how to configure these formats, see the \fCsmime.rc\fP in
19
-  ** the \fCsamples/\fP subdirectory which has been installed on your system
20
-  ** alongside the documentation.
21
-  ** (S/MIME only)
22
+  ** the \fCshare/examples/mutt/\fP subdirectory which has been installed on
23
+  ** your system. (S/MIME only)
24
+  */
25
+  { "smime_dont_check_sender",	DT_BOOL, R_NONE, OPTSMIMENOSENDER, 0 },
26
+  /*
27
+  ** .pp
28
+  ** This flag controls wether you want the skip the check for the sender's
29
+  ** email address against the email address stored in the certificate. 
30
+  ** This can be useful if most of your email senders use SMIMEv3 which no
31
+  ** longer needs email-addresses as part of the certificates.
32
+  ** It is not set by default.
33
   */
34
   { "smime_decrypt_use_default_key",	DT_BOOL, R_NONE, OPTSDEFAULTDECRYPTKEY, 1 },
35
   /*
36
@@ -2971,6 +2978,11 @@ struct option_t MuttVars[] = {
37
   ** possible \fCprintf(3)\fP-like sequences.
38
   ** (S/MIME only)
39
   */
40
+  { "smime_encrypt_self",	DT_QUAD,	 R_NONE, OPT_SMIMEENCRYPTSELF, 1 },
41
+  /*
42
+  ** .pp
43
+  ** Encrypt the message to smime_default_key too.
44
+  */
45
   { "smime_encrypt_with",	DT_STR,	 R_NONE, UL &SmimeCryptAlg, UL "aes256" },
46
   /*
47
   ** .pp
(-)b/mail/mutt/files/patch-m4_gssapi.m4 (-4 / +4 lines)
Lines 1-7 Link Here
1
--- m4/gssapi.m4.orig	2015-08-30 19:06:38.000000000 +0200
1
--- m4/gssapi.m4.orig	2016-10-13 05:35:30 UTC
2
+++ m4/gssapi.m4	2016-01-25 15:04:37.448609000 +0100
2
+++ m4/gssapi.m4
3
@@ -27,6 +27,7 @@
3
@@ -27,6 +27,7 @@ AC_DEFUN([MUTT_AM_PATH_GSSAPI],
4
     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
4
     GSSAPI_LIBS="`$KRB5CFGPATH --libs gssapi`"
5
     case "`$KRB5CFGPATH --version`" in
5
     case "`$KRB5CFGPATH --version`" in
6
       "Kerberos 5 "*)	GSSAPI_IMPL="MIT";;
6
       "Kerberos 5 "*)	GSSAPI_IMPL="MIT";;
7
+      "FreeBSD heimdal"*)		GSSAPI_IMPL="Heimdal";;
7
+      "FreeBSD heimdal"*)		GSSAPI_IMPL="Heimdal";;
(-)b/mail/mutt/files/patch-mutt.h (+26 lines)
Added Link Here
1
--- mutt.h.orig	2016-10-13 05:35:30 UTC
2
+++ mutt.h
3
@@ -190,6 +190,7 @@ enum
4
   MUTT_EXPIRED,
5
   MUTT_SUPERSEDED,
6
   MUTT_TRASH,
7
+  MUTT_THREADCOMPLETE,
8
 
9
   /* actions for mutt_pattern_comp/mutt_pattern_exec */
10
   MUTT_AND,
11
@@ -263,6 +264,7 @@ enum
12
   OPT_FORWEDIT,
13
   OPT_FCCATTACH,
14
   OPT_INCLUDE,
15
+  OPT_SMIMEENCRYPTSELF,
16
   OPT_MFUPTO,
17
   OPT_MIMEFWD,
18
   OPT_MIMEFWDREST,
19
@@ -486,6 +488,7 @@ enum
20
   OPTCRYPTTIMESTAMP,
21
   OPTSMIMEISDEFAULT,
22
   OPTASKCERTLABEL,
23
+  OPTSMIMENOSENDER,
24
   OPTSDEFAULTDECRYPTKEY,
25
   OPTPGPIGNORESUB,
26
   OPTPGPCHECKEXIT,
(-)b/mail/mutt/files/patch-muttlib.c (-3 / +3 lines)
Lines 1-6 Link Here
1
--- muttlib.c.orig	2015-09-10 08:59:45.000000000 +0200
1
--- muttlib.c.orig	2016-10-13 05:35:30 UTC
2
+++ muttlib.c	2015-09-10 09:04:24.000000000 +0200
2
+++ muttlib.c
3
@@ -774,16 +774,15 @@
3
@@ -779,16 +779,15 @@ void mutt_merge_envelopes(ENVELOPE* base
4
 void _mutt_mktemp (char *s, size_t slen, const char *prefix, const char *suffix,
4
 void _mutt_mktemp (char *s, size_t slen, const char *prefix, const char *suffix,
5
                    const char *src, int line)
5
                    const char *src, int line)
6
 {
6
 {
(-)b/mail/mutt/files/patch-pattern.c (-17 / +6 lines)
Lines 1-25 Link Here
1
--- mutt.h.orig2	Mon Sep  6 09:24:17 2004
1
--- pattern.c.orig	2016-10-13 05:35:30 UTC
2
+++ mutt.h	Mon Sep  6 09:27:04 2004
2
+++ pattern.c
3
@@ -212,6 +212,7 @@
3
@@ -56,6 +56,7 @@ static const struct pattern_flags
4
   MUTT_LIMIT,
5
   MUTT_EXPIRED,
6
   MUTT_SUPERSEDED,
7
   MUTT_TRASH,
8
+  MUTT_THREADCOMPLETE,
9
 
10
   /* actions for mutt_pattern_comp/mutt_pattern_exec */
11
   M_AND,
12
--- pattern.c.orig2	Sun Sep 18 15:17:46 2005
13
+++ pattern.c	Sun Sep 18 15:19:48 2005
14
@@ -54,6 +54,7 @@
15
 }
4
 }
16
 Flags[] =
5
 Flags[] =
17
 {
6
 {
18
+  { 'a', MUTT_THREADCOMPLETE,	0,		NULL },
7
+  { 'a', MUTT_THREADCOMPLETE,	0,		NULL },
19
   { 'A', MUTT_ALL,			0,		NULL },
8
   { 'A', MUTT_ALL,			0,		NULL },
20
   { 'b', MUTT_BODY,		M_FULL_MSG,	eat_regexp },
9
   { 'b', MUTT_BODY,		MUTT_FULL_MSG,	eat_regexp },
21
   { 'B', MUTT_WHOLE_MSG,		M_FULL_MSG,	eat_regexp },
10
   { 'B', MUTT_WHOLE_MSG,		MUTT_FULL_MSG,	eat_regexp },
22
@@ -1139,6 +1140,16 @@
11
@@ -1185,6 +1186,16 @@ mutt_pattern_exec (struct pattern_t *pat
23
                                              2, h->env->to, h->env->cc));
12
                                              2, h->env->to, h->env->cc));
24
     case MUTT_LIST:	/* known list, subscribed or not */
13
     case MUTT_LIST:	/* known list, subscribed or not */
25
       return (pat->not ^ mutt_is_list_cc (pat->alladdr, h->env->to, h->env->cc));
14
       return (pat->not ^ mutt_is_list_cc (pat->alladdr, h->env->to, h->env->cc));
(-)a/mail/mutt/files/patch-smime-self (-65 lines)
Removed Link Here
1
Base: http://descolada.dartmouth.edu/mutt/patch-1.5.4+-ow.smime-encrypt-self.2
2
--- crypt.c	7 Mar 2003 08:23:27 -0000	3.17
3
+++ crypt.c	7 May 2003 14:57:00 -0000
4
@@ -246,8 +246,18 @@
5
     if ((WithCrypto & APPLICATION_SMIME)
6
         && (msg->security & APPLICATION_SMIME))
7
     {
8
-      if (!(tmp_pbody = crypt_smime_build_smime_entity (tmp_smime_pbody,
9
-                                                        keylist)))
10
+	   char *new_keylist = keylist;
11
+
12
+		 if (SmimeDefaultKey && query_quadoption(OPT_SMIMEENCRYPTSELF, _("Encrypt message to S/MIME Default Key also?")) == MUTT_YES)
13
+		 {
14
+			int size = mutt_strlen(keylist) + mutt_strlen (SmimeDefaultKey) + 2; /* +1 for NULL, +1 for \n */
15
+			new_keylist = safe_malloc(size);
16
+			snprintf(new_keylist, size, "%s%s\n", keylist, SmimeDefaultKey);
17
+	   }
18
+		 
19
+	  tmp_pbody = crypt_smime_build_smime_entity (tmp_smime_pbody, new_keylist);
20
+	  safe_free((void **)&new_keylist);
21
+	  if (!tmp_pbody)
22
       {
23
 	/* signed ? free it! */
24
 	return (-1);
25
--- init.h.orig	2015-09-10 09:06:48.000000000 +0200
26
+++ init.h	2015-09-10 09:08:24.000000000 +0200
27
@@ -2748,6 +2748,11 @@
28
   ** possible \fCprintf(3)\fP-like sequences.
29
   ** (S/MIME only)
30
   */
31
+  { "smime_encrypt_self",	DT_QUAD,	 R_NONE, OPT_SMIMEENCRYPTSELF, 1 },
32
+  /*
33
+  ** .pp
34
+  ** Encrypt the message to smime_default_key too.
35
+  */
36
   { "smime_encrypt_with",	DT_STR,	 R_NONE, UL &SmimeCryptAlg, UL "aes256" },
37
   /*
38
   ** .pp
39
diff -u -d -b -B -r3.18 mutt.h
40
--- mutt.h.orig	Thu Nov  6 08:15:51 2003
41
+++ mutt.h	Thu Nov  6 08:16:43 2003
42
@@ -275,6 +275,7 @@
43
   OPT_DELETE,
44
   OPT_FORWEDIT,
45
   OPT_INCLUDE,
46
+  OPT_SMIMEENCRYPTSELF,
47
   OPT_MFUPTO,
48
   OPT_MIMEFWD,
49
   OPT_MIMEFWDREST,
50
--- contrib/smime.rc.orig	2015-08-30 19:06:38.000000000 +0200
51
+++ contrib/smime.rc	2015-09-10 09:14:20.000000000 +0200
52
@@ -23,8 +23,12 @@
53
 
54
 # The (default) keyfile for signing/decrypting.  Uncomment the following
55
 # line and replace the keyid with your own.
56
-set smime_default_key="12345678.0"
57
+# set smime_default_key="12345678.0"
58
 
59
+# Uncomment the following line in addition to the one above, if you want that
60
+# all encrypted messages are also encrypted with your default key.
61
+# set smime_encrypt_self = yes
62
+  
63
 # Uncomment to make mutt ask what key to use when trying to decrypt a message.
64
 # It will use the default key above (if that was set) else.
65
 # unset smime_decrypt_use_default_key
(-)a/mail/mutt/files/patch-smime-sender (-53 lines)
Removed Link Here
1
--- commands.c.orig	Thu Mar 20 20:37:21 2003
2
+++ commands.c	Thu Mar 20 20:40:29 2003
3
@@ -178,7 +178,7 @@
4
     {
5
       if (cur->security & GOODSIGN)
6
       {
7
-	if (!crypt_smime_verify_sender(cur))
8
+	if (option(OPTSMIMENOSENDER) || !crypt_smime_verify_sender(cur))
9
 	  mutt_message ( _("S/MIME signature successfully verified."));
10
 	else
11
 	  mutt_error ( _("S/MIME certificate owner does not match sender."));
12
--- init.h.orig2	Fri May 31 10:14:05 2002
13
+++ init.h	Fri May 31 10:54:55 2002
14
@@ -1435,6 +1435,15 @@
15
   ** This flag controls wether you want to be asked to enter a label for a certificate
16
   ** about to be added to the database or not. It is set by default.
17
   */
18
+  { "smime_dont_check_sender",	DT_BOOL, R_NONE, OPTSMIMENOSENDER, 0 },
19
+  /*
20
+  ** .pp
21
+  ** This flag controls wether you want the skip the check for the sender's
22
+  ** email address against the email address stored in the certificate. 
23
+  ** This can be useful if most of your email senders use SMIMEv3 which no
24
+  ** longer needs email-addresses as part of the certificates.
25
+  ** It is not set by default.
26
+  */
27
   { "smime_decrypt_use_default_key",	DT_BOOL, R_NONE, OPTSDEFAULTDECRYPTKEY, 1 },
28
   /*
29
   ** .pp
30
--- mutt.h.orig2	Fri May 31 10:14:06 2002
31
+++ mutt.h	Fri May 31 10:24:03 2002
32
@@ -453,6 +453,7 @@
33
 #ifdef HAVE_SMIME
34
   OPTSMIMEISDEFAULT,
35
   OPTASKCERTLABEL,
36
+  OPTSMIMENOSENDER,
37
   OPTSDEFAULTDECRYPTKEY,
38
 #endif
39
 #ifdef HAVE_PGP
40
--- contrib/smime.rc.orig	2015-09-10 09:16:17.000000000 +0200
41
+++ contrib/smime.rc	2015-09-10 09:18:18.000000000 +0200
42
@@ -8,7 +8,10 @@
43
 
44
 # Uncomment this if you don't want to set labels for certificates you add.
45
 # unset smime_ask_cert_label
46
-
47
+ 
48
+# Uncomment this if you don't want to check for sender's email address
49
+# set smime_dont_check_sender = yes
50
+  
51
 # Passphrase expiration
52
 set smime_timeout=300
53
 
(-)a/mail/mutt/files/patch-staging-Makefile.am (-18 lines)
Removed Link Here
1
--- Makefile.am.orig	2015-09-10 09:19:15.000000000 +0200
2
+++ Makefile.am	2015-09-10 09:21:00.000000000 +0200
3
@@ -150,15 +150,6 @@
4
 	$(srcdir)/patchlist.sh < $(srcdir)/PATCHES > patchlist.c
5
 
6
 install-exec-hook:
7
-	if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/mutt_dotlock ; then	\
8
-		rm -f $(DESTDIR)$(bindir)/mutt.dotlock ;		\
9
-		ln -sf $(DESTDIR)$(bindir)/mutt_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
10
-	fi
11
-	if test -f $(DESTDIR)$(bindir)/mutt_dotlock && test x$(DOTLOCK_GROUP) != x ; then \
12
-		chgrp $(DOTLOCK_GROUP) $(DESTDIR)$(bindir)/mutt_dotlock && \
13
-		chmod $(DOTLOCK_PERMISSION) $(DESTDIR)$(bindir)/mutt_dotlock || \
14
-		{ echo "Can't fix mutt_dotlock's permissions!  This is required to lock mailboxes in the mail spool directory." >&2 ; exit 1 ; } \
15
-	fi
16
 
17
 install-data-local:
18
 	$(MKDIR_P) $(DESTDIR)$(sysconfdir)
(-)b/mail/mutt/pkg-plist (-1 / +2 lines)
Lines 76-82 man/man5/muttrc.5.gz Link Here
76
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgp6.rc
76
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgp6.rc
77
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.mailcap
77
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.mailcap
78
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.muttrc
78
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.muttrc
79
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.muttrc-sidebar
79
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.muttrc-tlr
80
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.muttrc-tlr
81
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.vimrc-sidebar
80
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/smime.rc
82
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/smime.rc
81
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/smime_keys_test.pl
83
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/smime_keys_test.pl
82
%%NLS%%share/locale/bg/LC_MESSAGES/mutt.mo
84
%%NLS%%share/locale/bg/LC_MESSAGES/mutt.mo
83
- 

Return to bug 213431