diff --git a/.gitignore b/.gitignore index 7004204..cbc6dfe 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ mutt-1.5.22.tar.gz mutt-1.5.23.tar.gz /mutt-1.5.23-20150609hg17a4f92e4a95.tar.gz /mutt-1.5.24.tar.gz +/mutt-1.6.0.tar.gz diff --git a/mutt-1.5.21-syncdebug.patch b/mutt-1.5.21-syncdebug.patch deleted file mode 100644 index 016e500..0000000 --- a/mutt-1.5.21-syncdebug.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up mutt-1.5.21/imap/imap.c.syncdebug mutt-1.5.21/imap/imap.c ---- mutt-1.5.21/imap/imap.c.syncdebug 2012-03-27 10:05:44.978962551 +0200 -+++ mutt-1.5.21/imap/imap.c 2012-03-27 10:05:54.223252267 +0200 -@@ -1128,7 +1128,7 @@ static int sync_helper (IMAP_DATA* idata - - char buf[LONG_STRING]; - -- if (!mutt_bit_isset (idata->ctx->rights, right)) -+ if (!idata->ctx || !mutt_bit_isset (idata->ctx->rights, right)) - return 0; - - if (right == M_ACL_WRITE && !imap_has_flag (idata->flags, name)) diff --git a/mutt-1.5.23-add_debug_option.patch b/mutt-1.5.23-add_debug_option.patch deleted file mode 100644 index bc8495f..0000000 --- a/mutt-1.5.23-add_debug_option.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up ./doc/manual.xml.head.add_debug_option ./doc/manual.xml.head ---- ./doc/manual.xml.head.add_debug_option 2014-04-30 17:31:42.062694536 +0200 -+++ ./doc/manual.xml.head 2014-04-30 17:53:10.230668282 +0200 -@@ -8182,6 +8182,7 @@ mailboxes and to send messages from the - -aattach a file to a message - -bspecify a blind carbon-copy (BCC) address - -cspecify a carbon-copy (Cc) address -+-dlog debugging output to ~/.muttdebug0 if mutt was complied with +DEBUG; it can range from 1-5 and affects verbosity (a value of 2 is recommended) - -Dprint the value of all Mutt variables to stdout - -especify a config command to be run after initialization files are read - -fspecify a mailbox to load diff --git a/mutt-1.5.23-domainname.patch b/mutt-1.5.23-domainname.patch deleted file mode 100644 index a515694..0000000 --- a/mutt-1.5.23-domainname.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -rup mutt-1.5.23/init.c mutt-1.5.23-new/init.c ---- mutt-1.5.23/init.c 2014-03-12 17:03:45.000000000 +0100 -+++ mutt-1.5.23-new/init.c 2015-06-01 12:28:34.178727003 +0200 -@@ -2890,7 +2890,8 @@ void mutt_init (int skip_sys_rc, LIST *c - { - struct passwd *pw; - struct utsname utsname; -- char *p, buffer[STRING]; -+ char *p; -+ char buffer[STRING] = ""; - int i, default_rc = 0, need_pause = 0; - BUFFER err; - -@@ -2968,11 +2969,11 @@ void mutt_init (int skip_sys_rc, LIST *c - - #ifndef DOMAIN - #define DOMAIN buffer -- if (!p && getdnsdomainname (buffer, sizeof (buffer)) == -1) -+ if (p == NULL && getdnsdomainname (buffer, sizeof (buffer)) == -1 && strlen(Hostname) == 0) - Fqdn = safe_strdup ("@"); - else - #endif /* DOMAIN */ -- if (*DOMAIN != '@') -+ if (*DOMAIN != '@' && strlen(DOMAIN) != 0) - { - Fqdn = safe_malloc (mutt_strlen (DOMAIN) + mutt_strlen (Hostname) + 2); - sprintf (Fqdn, "%s.%s", NONULL(Hostname), DOMAIN); /* __SPRINTF_CHECKED__ */ diff --git a/mutt-1.6.0-syncdebug.patch b/mutt-1.6.0-syncdebug.patch new file mode 100644 index 0000000..d67a94a --- /dev/null +++ b/mutt-1.6.0-syncdebug.patch @@ -0,0 +1,12 @@ +diff -ur mutt-1.6.0-orig/imap/imap.c mutt-1.6.0/imap/imap.c +--- mutt-1.6.0-orig/imap/imap.c 2016-04-02 19:12:22.000000000 +0100 ++++ mutt-1.6.0/imap/imap.c 2016-04-18 14:08:01.016584276 +0100 +@@ -1125,7 +1125,7 @@ + if (!idata->ctx) + return -1; + +- if (!mutt_bit_isset (idata->ctx->rights, right)) ++ if (!idata->ctx || !mutt_bit_isset (idata->ctx->rights, right)) + return 0; + + if (right == M_ACL_WRITE && !imap_has_flag (idata->flags, name)) diff --git a/mutt.spec b/mutt.spec index 5873c3a..50e1fa4 100644 --- a/mutt.spec +++ b/mutt.spec @@ -17,23 +17,21 @@ Summary: A text mode mail user agent Name: mutt -Version: 1.5.24 -Release: 2%{?dist} +Version: 1.6.0 +Release: 1%{?dist} Epoch: 5 # The entire source code is GPLv2+ except # pgpewrap.c setenv.c sha1.c wcwidth.c which are Public Domain License: GPLv2+ and Public Domain Group: Applications/Internet # hg snapshot created from http://dev.mutt.org/hg/mutt -Source: %{name}-%{version}.tar.gz +Source: ftp://ftp.mutt.org/pub/%{name}/%{name}-%{version}.tar.gz Source1: mutt_ldap_query Patch1: mutt-1.5.18-muttrc.patch Patch2: mutt-1.5.21-cabundle.patch -# FIXME find on dev.mutt.org -Patch3: mutt-1.5.21-syncdebug.patch +# https://dev.mutt.org/trac/ticket/3569 +Patch3: mutt-1.6.0-syncdebug.patch # FIXME make it to upstream -Patch4: mutt-1.5.23-add_debug_option.patch -Patch7: mutt-1.5.23-domainname.patch Patch8: mutt-1.5.23-system_certs.patch Patch9: mutt-1.5.23-ssl_ciphers.patch Url: http://www.mutt.org/ @@ -82,8 +80,6 @@ autoreconf --install %patch1 -p1 -b .muttrc %patch2 -p1 -b .cabundle %patch3 -p1 -b .syncdebug -%patch4 -p1 -b .add_debug_option -%patch7 -p1 -b .domainname %patch8 -p1 -b .system_certs %patch9 -p1 -b .ssl_ciphers @@ -195,10 +191,14 @@ ln -sf ./muttrc.5 $RPM_BUILD_ROOT%{_mandir}/man5/muttrc.local.5 %changelog +* Mon Apr 18 2016 Fabio Alessandro Locati - 5:1.6.0-1 +- Upgrade to 1.6.0 +- Drop patch domainname since it should not be needed any more + * Thu Feb 04 2016 Fedora Release Engineering - 5:1.5.24-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild -* Thu Sep 04 2015 Matej Muzila - 5:1.5.24-1 +* Fri Sep 04 2015 Matej Muzila - 5:1.5.24-1 - New release, resolves rhbz#1259332 * Wed Aug 26 2015 Matej Muzila - 5:1.5.23-11.20150609hg17a4f92e4a95 diff --git a/sources b/sources index ff43ff6..8773132 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7f25d27f3c7c82285ac07aac35f5f0f2 mutt-1.5.24.tar.gz +d05bb821d7040c61ba89b22d7c2bd388 mutt-1.6.0.tar.gz