Your message dated Thu, 08 Sep 2016 22:37:26 +0000
with message-id <[email protected]>
and subject line Bug#549204: fixed in mutt 1.7.0-2
has caused the Debian Bug report #549204,
regarding imap: set blindly read-only when it's not for flags
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
549204: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549204
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mutt
Version: 1.5.20-4
Severity: normal

This is upstream bug http://dev.mutt.org/trac/ticket/969
which is old.

I wrote a fix, attached, that remove the CHECK_READONLY in various place
and only use CHECK_ACL to check the permission.

I can provide more explanation/information if needed.

The patch is made to be put at last in misc/fix-acl. I can rework it if
needed.

-- Package-specific info:
Mutt 1.5.20 (2009-06-14)
Copyright (C) 1996-2009 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 2.6.30-1-amd64 (x86_64)
ncurses: ncurses 5.7.20090803 (compiled with 5.7)
libidn: 1.15 (compiled with 1.15)
hcache backend: GDBM version 1.8.3. 10/15/2002 (built Jul  9 2009 11:48:41)
Compile options:
-DOMAIN
+DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  +USE_FCNTL  -USE_FLOCK   
+USE_POP  +USE_IMAP  +USE_SMTP  
-USE_SSL_OPENSSL  +USE_SSL_GNUTLS  +USE_SASL  +USE_GSS  +HAVE_GETADDRINFO  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  +CRYPT_BACKEND_GPGME  
-EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET 
 +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
To contact the developers, please mail to <[email protected]>.
To report a bug, please visit http://bugs.mutt.org/.

patch-1.5.13.cd.ifdef.2

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mutt depends on:
ii  libc6                   2.9-26           GNU C Library: Shared libraries
ii  libcomerr2              1.41.9-1         common error description library
ii  libgdbm3                1.8.3-6          GNU dbm database routines (runtime
ii  libgnutls26             2.8.4-1          the GNU TLS library - runtime libr
ii  libgpg-error0           1.6-1            library for common error values an
ii  libgpgme11              1.2.0-1          GPGME - GnuPG Made Easy
ii  libgssapi-krb5-2        1.7dfsg~beta3-1  MIT Kerberos runtime libraries - k
ii  libidn11                1.15-1           GNU Libidn library, implementation
ii  libk5crypto3            1.7dfsg~beta3-1  MIT Kerberos runtime libraries - C
ii  libkrb5-3               1.7dfsg~beta3-1  MIT Kerberos runtime libraries
ii  libncursesw5            5.7+20090803-2   shared libraries for terminal hand
ii  libsasl2-2              2.1.23.dfsg1-1.1 Cyrus SASL - authentication abstra

Versions of packages mutt recommends:
ii  exim4-daemon-light [mai 4.69-11+b1       lightweight Exim MTA (v4) daemon
ii  libsasl2-modules        2.1.23.dfsg1-1.1 Cyrus SASL - pluggable authenticat
ii  locales                 2.9-26           GNU C Library: National Language (
ii  mime-support            3.46-1           MIME files 'mime.types' & 'mailcap

Versions of packages mutt suggests:
ii  aspell                        0.60.6-2   GNU Aspell spell-checker
ii  ca-certificates               20090814   Common CA certificates
ii  gnupg                         1.4.10-2   GNU privacy guard - a free PGP rep
pn  mixmaster                     <none>     (no description available)
ii  openssl                       0.9.8k-5   Secure Socket Layer (SSL) binary a
pn  urlview                       <none>     (no description available)

Versions of packages mutt is related to:
ii  mutt                          1.5.20-4   text-based mailreader supporting M
ii  mutt-dbg                      1.5.20-4   debugging symbols for mutt
pn  mutt-patched                  <none>     (no description available)

-- no debconf information
Index: mutt-1.5.20/curs_main.c
===================================================================
--- mutt-1.5.20.orig/curs_main.c	2009-10-01 14:59:29.000000000 +0200
+++ mutt-1.5.20/curs_main.c	2009-10-01 14:59:30.000000000 +0200
@@ -819,7 +819,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("delete message(s)"));
 
 	CHECK_ATTACH;
@@ -987,7 +986,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("undelete message(s)"));
 
 	if (mutt_pattern_func (M_UNDELETE, _("Undelete messages matching: ")) == 0)
@@ -1020,7 +1018,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	{
 	  int oldvcount = Context->vcount;
 	  int oldcount  = Context->msgcount;
@@ -1273,7 +1270,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("link threads"));
 
         if ((Sort & SORT_MASK) != SORT_THREADS)
@@ -1541,7 +1537,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_WRITE, _("flag message"));
 
         if (tag)
@@ -1578,7 +1573,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_SEEN, _("toggle new"));
 
 	if (tag)
@@ -1833,7 +1827,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("delete message"));
 
 	if (tag)
@@ -1877,7 +1870,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("delete message(s)"));
 
 	rc = mutt_thread_set_flag (CURHDR, M_DELETE, 1,
@@ -1917,7 +1909,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ATTACH;
 	CHECK_ACL(M_ACL_INSERT, _("edit message"));
 
@@ -2049,7 +2040,6 @@
 
 	CHECK_MSGCOUNT;
 	CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_SEEN, _("mark message(s) as read"));
 
 	rc = mutt_thread_set_flag (CURHDR, M_READ, 1,
@@ -2139,7 +2129,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("undelete message"));
 
 	if (tag)
@@ -2168,7 +2157,6 @@
 
 	CHECK_MSGCOUNT;
         CHECK_VISIBLE;
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("undelete message(s)"));
 
 	rc = mutt_thread_set_flag (CURHDR, M_DELETE, 0,
Index: mutt-1.5.20/flags.c
===================================================================
--- mutt-1.5.20.orig/flags.c	2009-10-01 14:59:29.000000000 +0200
+++ mutt-1.5.20/flags.c	2009-10-01 14:59:30.000000000 +0200
@@ -33,9 +33,6 @@
   int flagged = ctx->flagged;
   int update = 0;
 
-  if (ctx->readonly && flag != M_TAG)
-    return; /* don't modify anything if we are read-only */
-
   switch (flag)
   {
     case M_DELETE:
Index: mutt-1.5.20/pager.c
===================================================================
--- mutt-1.5.20.orig/pager.c	2009-10-01 14:59:29.000000000 +0200
+++ mutt-1.5.20/pager.c	2009-10-01 14:59:30.000000000 +0200
@@ -2319,7 +2319,6 @@
       case OP_PURGE_MESSAGE:
       case OP_DELETE:
 	CHECK_MODE(IsHeader (extra));
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("delete message"));
 
 	mutt_set_flag (Context, extra->hdr, M_DELETE, 1);
@@ -2352,7 +2351,6 @@
       case OP_DELETE_THREAD:
       case OP_DELETE_SUBTHREAD:
 	CHECK_MODE(IsHeader (extra));
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("delete message(s)"));
 
 	r = mutt_thread_set_flag (extra->hdr, M_DELETE, 1,
@@ -2472,7 +2470,6 @@
 
       case OP_FLAG_MESSAGE:
 	CHECK_MODE(IsHeader (extra));
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_WRITE, "flag message");
 
 	mutt_set_flag (Context, extra->hdr, M_FLAG, !extra->hdr->flagged);
@@ -2628,7 +2625,6 @@
 
       case OP_TOGGLE_NEW:
 	CHECK_MODE(IsHeader (extra));
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_SEEN, _("toggle new"));
 
 	if (extra->hdr->read || extra->hdr->old)
@@ -2647,7 +2643,6 @@
 
       case OP_UNDELETE:
 	CHECK_MODE(IsHeader (extra));
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("undelete message"));
 
 	mutt_set_flag (Context, extra->hdr, M_DELETE, 0);
@@ -2663,7 +2658,6 @@
       case OP_UNDELETE_THREAD:
       case OP_UNDELETE_SUBTHREAD:
 	CHECK_MODE(IsHeader (extra));
-	CHECK_READONLY;
 	CHECK_ACL(M_ACL_DELETE, _("undelete message(s)"));
 
 	r = mutt_thread_set_flag (extra->hdr, M_DELETE, 0,

--- End Message ---
--- Begin Message ---
Source: mutt
Source-Version: 1.7.0-2

We believe that the bug you reported is fixed in the latest version of
mutt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antonio Radici <[email protected]> (supplier of updated mutt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 29 Aug 2016 21:27:08 +0100
Source: mutt
Binary: mutt
Architecture: source
Version: 1.7.0-2
Distribution: unstable
Urgency: medium
Maintainer: Mutt maintainers <[email protected]>
Changed-By: Antonio Radici <[email protected]>
Description:
 mutt       - text-based mailreader supporting MIME, GPG, PGP and threading
Closes: 96144 423931 549204 569038 599136 618425 639533 644992 741213 757141 
774746 819196 824832 828751 832971 833192 834448 836148 836812
Changes:
 mutt (1.7.0-2) unstable; urgency=medium
 .
   * debian/patches:
     + upstream/833192-preserve-messageid-for-postponed-emails.patch: do not
       remove the message-id of postponed emails (Closes: 833192).
     + upstream/819196-disable-X-in-message-scoring.patch: to disable ~X in
       message scoring, as upstream requested (Closes: 819196).
     + upstream/757141-date-format-length.patch: allow more space for 
date_format
       (Closes: 757141).
     + upstream/644992-ipv6-literal.patch: to parse ipv6 literal addresses
       properly (Closes: 644992).
     + upstream/741213-dsa-elgamal-keys-length.patch: to correctly extract the
       length of DSA and Elgamal keys (Closes: 741213).
     + upstream/549204-clear-N-on-readonly-imap-folders.patch: to clear the N
       flag on readonly IMAP mailboxes (Closes: 549204).
     + upstream/569038-interrupt-socket-read-write.patch: allow the interruption
       of operations which can be long-running
       (Closes: 569038, 774746, 423931, 599136, 618425).
     + upstream/openssl-1.1-build.patch: to build against openssl 1.1
     + neomutt-devel/832971-reset-xlabel.patch to reset X-Label properly for
       newer versions of mutt (Closes: 832971).
     + neomutt-devel/836812-user-agent-temp-fix.patch: hardcode the NeoMutt
       version, it will be fixed in the next NeoMutt release (Closes: 836812).
     + neomutt-devel/834448-restore-i-pager-binding.patch: restored the 'i'
       binding to exit from the pager (Closes: 834448).
     + debian-specific/828751-pinentry-gpg2-support.patch: enable gpgme by
       default, delegating all crypto to gnupg (Closes: 96144, 828751, 824832).
     + misc/smime.rc.patch: switch to 'openssl cms' for decrypt (superset of
       smime) (Closes: 639533).
   * debian/extra/rc/notmuch.rc: restored the notmuch keybindings
     (Closes: 836148).
   * debian/NEWS: added information about GPGME being enabled by default.
Checksums-Sha1:
 bd330d076f98d6f6b495b14f5e4304aef5a11092 2165 mutt_1.7.0-2.dsc
 7e996d68f3cca799410236a331013be2e2553614 255840 mutt_1.7.0-2.debian.tar.xz
Checksums-Sha256:
 bef7b5cc73000f68efa0d7131eea0fef747440398f59e9faf0c66fb14932836c 2165 
mutt_1.7.0-2.dsc
 cce475d3f0eb28b46a860659295d8c32f146d4e4867ae944540c58da26d1b3dc 255840 
mutt_1.7.0-2.debian.tar.xz
Files:
 f7d3d0c85f834167017151ca0d30c5b8 2165 mail optional mutt_1.7.0-2.dsc
 e76e6b51ea2e0ae602fccde7c0bb1264 255840 mail optional 
mutt_1.7.0-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJX0dTMAAoJEDXIyIhyyx7tQLwP/j1Z+8z79Tk1wkszjsNvCKih
b16sYAJFQRg8yekaw46d8aixaoJotsGuyRiuk+yzSHgNiE9cj48luCBhmpZGgQZ1
So3thRaMWWSAdsY8dGBWBm7/YO91YHJo0Tib0wmu4i14JFZS0lXmWaE9dnQTCztz
ZOGuCtkziK+O6ztg7VQAp9+qQNKTqQa7p+HvmHYkn8QVbxhk0TdsO/yJ/EUcMaZZ
UsxvpxMSMssZ+iFCVm475vHQanThi223SO+/6vCEBHdPylY1Coi3AX8X6AcLLjGb
SXQyYRDjDtiEJqvxUsFQdL9FiWnyvs54FKRiUldHoSfcILE0w/cx94ZKvOH+fU63
Ibx+w1Ifoai4nTzUUQhk07FN6ptSR3+TZfiatTTNMktccaIOxS7qdw2d7fNxhMFV
QficJcfpMGO4vp0iVahBJPzMJZzlbb6mGO6+6hW8yl7rcfyQtvnCn7OUzhTZM1QY
zI1n9vVlrXG8lO/nCIOENCJZZ3Jp6bI+Ra1hOR9F5lo2KPWEQf7Z6tUAsfeNX2vM
33JV4yuUPflNU80AlhitNMegyVtSUZUlTC/ldywF4CSiqPuU7DkA0eN/DXA4Asbz
cGoRkNWzz8/34jXH9mNMqPVeYekzK1WZoboxUzUwUi0lAtwHTSK2IAxUW1zUCN1A
032z/piSav/yqwU7eggb
=aEMP
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to