pgp attachment problem
Hi, I'm using mutt since a long time ago and started to use pgp now. It works fine for me, except one thing: If I get an message with an attachment mutt shows me the attachment inline only. Like this: ... [-- BEGIN PGP MESSAGE --] Content-Type: multipart/mixed; boundary="Ui8oIDq6MW9GU3SUM5K8n8J3PoOTdg4xM"; protected-headers="v1" From: f...@bar.de To: foo-...@bar.de Message-ID:Subject: Testmail References: <20161016233834.GA10087@host.localdomain> In-Reply-To: <20161016233834.GA10087@host.localdomain> --Ui8oIDq6MW9GU3SUM5K8n8J3PoOTdg4xM Content-Type: multipart/mixed; boundary="3B1EE4EBF561C851E448F340" This is a multi-part message in MIME format. --3B1EE4EBF561C851E448F340 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable Email content text --3B1EE4EBF561C851E448F340 Content-Type: image/jpeg; name="Image.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Image.jpg" /9j/4AAQSkZJRgABAQEAYABgAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDABYPERMRDhYT EhMZFxYaITckIR4eIUQwMyg3UEZUU09GTUxYY39sWF54X0xNbpZweIOHjpCOVmqcp5uKpn+L jon/2wBDARcZGSEdIUEkJEGJW01biYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJ iYmJiYmJiYmJiYmJiYmJiYn/wgARCAF6AfMDAREAAhEBAxEB/8QAGQABAAMBAQAA ... Somewhere I'd read mutt could handle that. The FAQ recommends me NOT to use procmail. [1] Unfortunately I can't use a found patch (version conflict). [2] And mailcap-hints doesn't look helpful. [3] I'd spend a lot of hours for searching, but couldn't find anything helpful at least.I'm using mutt version 1.5.24-r2 on a Gentoo box. Or is the problem fixed since 1.6.0? [4] Thanks in advance, Martin [1] https://dev.mutt.org/trac/wiki/MuttFaq/Encryption [2] https://dev.mutt.org/trac/changeset/21a08f9abc80d7ea0b3dc0a9f8fa2013c7446f5a[https://dev.mutt.org/trac/changeset/21a08f9abc80d7ea0b3dc0a9f8fa2013c7446f5a] [3] https://github.com/cbracken/mutt/blob/master/.mutt/mailcap[https://github.com/cbracken/mutt/blob/master/.mutt/mailcap] https://www.spinnaker.de/mutt/mailcap [4] http://www.mutt.org/doc/UPDATING[http://www.mutt.org/doc/UPDATING]
Re: how would you match this?
On Sun, Oct 16, 2016 at 05:47:01PM -0400, Jon LaBadie wrote: > I played around with your sequence and confirmed your observation. > Changing the quotes from double to single quotes seems to get > what you are looking for. > > Again that would go along with preserving backslashes during one > round of evaluation. In a double quoted string parsed by the shell, > depending on the following character, a backslash may be escaping the > next character or may be literal. Using single quotes removes the > ambiguity and makes them literal irrespective of the next char. Hi Jon, thank you for your time. Indeed using single quotes solves the issue. But i couldn't imagine such a simple regex would have lead to this problem. I'll pay extra attention in the future buiding the patterns. Thanks again.