djcb / mu

maildir indexer/searcher + emacs mail client + guile bindings
http://www.djcbsoftware.nl/code/mu
GNU General Public License v3.0
1.62k stars 391 forks source link

mu4e can't delete messages that contain certain characters #1932

Closed JonathanReeve closed 3 years ago

JonathanReeve commented 3 years ago

Expected or desired behavior

I expect to be able to delete messages.

Actual behavior

I can't delete messages because I get this error:

These default coding systems were tried to encode text
in the buffer ‘ *temp file*’:
  (utf-8-unix (4787 . 4194194) (5090 . 4194194) (5330 . 4194194) (6210 .
  4194195) (6287 . 4194196) (6318 . 4194195) (6409 . 4194196) (6424 . 4194194)
  (6612 . 4194194) (7069 . 4194194) (7314 . 4194217))
However, each of them encountered characters it couldn’t encode:
  utf-8-unix cannot encode these: � � � � � � � � � � ...

Click on a character (or switch to this window by ‘SPC w C-w’
and select the characters by RET) to jump to the place it appears,
where ‘SPC u g a’ will give information about it.

Select one of the safe coding systems listed below,
or cancel the writing with C-g and edit the buffer
   to remove or modify the problematic characters,
or specify any other coding system (and risk losing
   the problematic characters).

  raw-text no-conversion

Steps to reproduce

Have an email that contains the characters above. Try to delete that email. Notice that you can't, because you get this error.

Versions of mu, mu4e/emacs, operating system etc.

djcb commented 3 years ago

When exactly does this happen, i.e., the key presses from emacs start`? And please include an example message where this happens, as the issue template asks for, thanks.

JonathanReeve commented 3 years ago

I mark a message as to be deleted, and then run the command to execute all marks. It asks, are you sure you want to execute one mark? And I type y and then get that error.

Here's the email which triggers it:

Click here to read the very long email ``` ------=_NextPart_420_A055FFC8.A055FFC8 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit Exclusive offer: Save 40% on Philips Sonicare Having trouble viewing this email? http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7331&p1=%40a1oYwj3nu2Istsz3NSbjfxxyGNH4PAIQOGc7Gyt2UjY%3D View in browser. Join BrushSmart TM A healthier smile begins at home with better habits and a smart brush* http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7332&p1=%40jZDA5E5%2BnZsTJY08aJKwqA%3D%3D Start now and save 40% Hi, Jonathan! Using a powered toothbrush can make you less likely to suffer from gum disease and cavities compared to using a manual brush. 1,2 That�s one of the reasons why Delta Dental and Philips Sonicare have teamed up to offer you BrushSmart , a complete at-home oral care program that helps you get smart about your health and rewards you for better brushing. Joining BrushSmart means more than learning how to care for your smile at home. You�ll unlock exclusive savings as a Delta Dental enrollee, starting with 40% off a $180 MSRP Philips Sonicare ExpertClean 7500 toothbrush . This app-connected brush provides progress reports and tips for building better brushing habits. You�ll also get FREE brush heads when you brush regularly 3 , and special pricing on professional whitening treatments, oral hygiene products and more. With these powerful resources and great savings, BrushSmart can help you achieve a healthier, brighter smile. http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7333&p1=%40jZDA5E5%2BnZsTJY08aJKwqA%3D%3D Join BrushSmart and save Stay Informed! http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7334 http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7335 http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7336 http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7337 http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7338 *Each BrushSmart invitation is unique to the recipient. Invitations may not be redeemed more than once or transferred to others. Offer expires 1/31/21. 1 Study of Health in Pomerania, �Long-term impact of powered toothbrush on oral health: 11-year cohort study,� 2019. 2 Oral Health Group, �Powered/electric toothbrushes compared to manual toothbrushes for maintaining oral health,� 2014. 3 You�ll receive 2 brush heads with your toothbrush order, plus 2 more free from Delta Dental when you connect and stay connected to the BrushSmart version of the Sonicare app, for a total year�s supply. Review http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7339&p1=%40jZDA5E5%2BnZsTJY08aJKwqA%3D%3D BrushSmart info and FAQ http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb733a&p1=@jZDA5E5+nZsTJY08aJKwqA== Unsubscribe from promotional opportunities like this one. http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb733b&p1=@jZDA5E5+nZsTJY08aJKwqA== Unsubscribe from all updates and information related to your dental policy. * * You�ll still receive mandatory notices such as bill alerts, EOBs, etc. Privacy is important to us; therefore, we will not sell or rent your name or email address to anyone. http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb733c Privacy Policy � Delta Dental. Our Delta Dental enterprise includes Delta Dental of California, Delta Dental of Pennsylvania, Delta Dental Insurance Company and our affiliated enterprise companies. � Koninklijke Philips N.V., 2020. All rights reserved. Philips values and respects your privacy. Read more about our http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb733d privacy policy . Delta Dental is a registered trademark of Delta Dental Plans Association. BrushSmart is a trademark of Delta Dental of California. ` ------=_NextPart_420_A055FFC8.A055FFC8 Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Join Delta Dental=92s new, at-home oral care program

Exclusive offer: Save 40% on Philips Sonicare

Having trouble viewing this email=3F View in browser.

=3D"Delta

Join BrushSmartTM

A healthier smile begins at home

with bett= er habits and a smart brush*

Start now and save 40%
3D"+

Hi, Jonathan!

Using a powered toothbrush can make you les= s likely to suffer from gum disease and cavities compared to using a manual= brush.1,2 That’s one of the reasons why Delta Dental and Philips S= onicare have teamed up to offer you BrushSmart, a complete at-home oral care program that help= s you get smart about your health and rewards you for better brushing.

Joining BrushSmart means more than learning= how to care for your smile at home. You’ll unlock exclusive savings = as a Delta Dental enrollee, starting with 40% off a $180 MSRP Philips Sonicare ExpertClean 7500 to= othbrush. This app-connected brush provides progress reports and tips f= or building better brushing habits.

You’ll also get FREE brush heads when yo= u brush regularly3, and special pricing on professional whitening treatme= nts, oral hygiene products and more. With these powerful resources and grea= t savings, BrushSmart can help you achieve a healthier, brighter smile.

Join BrushSmart and save

Stay Informed!

=3D"Link =3D"Link =3D"Link =3D"Link =3D"Link

*Each BrushSmart invitation is unique to the re= cipient. Invitations may not be redeemed more than once or transferred to o= thers. Offer expires 1/31/21.

1Study of Health in Pomerania, “Long-te= rm impact of powered toothbrush on oral health: 11-year cohort study,&rdquo= ; 2019.

2Oral Health Group, “Powered/electric t= oothbrushes compared to manual toothbrushes for maintaining oral health,&rd= quo; 2014.

3You’ll receive 2 brush = heads with your toothbrush order, plus 2 more free from Delta Dental when y= ou connect and stay connected to the BrushSmart version of the Sonicare app= , for a total year’s supply.

Review = BrushSmart info and FAQ

Unsubscribe from promotional opportunities like this one.

Unsubscribe from all up= dates and information related to your dental policy.*<= /sup>

*You’ll still receive mandatory = notices such as bill alerts, EOBs, etc.

Privacy is important to us; therefore, we will = not sell or rent your name or email address to anyone. Privacy Policy

© Delta Dental. Our Delta Dental enterprise include= s Delta Dental of California, Delta Dental of Pennsylvania, Delta Dental In= surance Company and our affiliated enterprise companies.

© Koninklijke Philips N.V., 2020. All rights reserved. Philip= s values and respects your privacy. Read more about our privacy policy.

Delta Dental is a registered trademark of Delta= Dental Plans Association.

BrushSmart is a trademark of Del= ta Dental of California.

`

3D'' ------=_NextPart_420_A055FFC8.A055FFC8-- ```
djcb commented 3 years ago

That's just the email body though, we need the raw e-mail message (the file).

JonathanReeve commented 3 years ago

It's long but here it is:

The whole file
Delivered-To: jon.reeve@gmail.com
Received: by 2002:ac0:ab61:0:0:0:0:0 with SMTP id a30csp548323imb;
        Wed, 17 Feb 2021 09:40:38 -0800 (PST)
X-Google-Smtp-Source: ABdhPJwdPFcYPv6MuWw1fTnIFFbWk+xO1w1WugwGEyMbvDXnSNh2uwhSGUu+O4OjyW6HXXHzZhIA
X-Received: by 2002:a17:906:2ac1:: with SMTP id m1mr49422eje.149.1613583637943;
        Wed, 17 Feb 2021 09:40:37 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1613583637; cv=none;
        d=google.com; s=arc-20160816;
        b=VPIhSIGz5LHXfHTKG9EcLOlPcEWf1KU/jkv8TI+HL3YrhQ5VPSWIJOX5hHLbsX4S9u
         Zh0ExOaE/mtpguPV7aTxw0291nN3lUvRE/WDTA5BanTQ/dgaxY6qELgZrMp/1WnPRsN7
         8EFbXXbzeCq+SP2TBhMrZevji8DrzRGUybAfB+0QPjMCl3V29/U/1UjDCs6AhStjPIOu
         tGQBxGDKkhndEKLVOUF4PhCOP8k+aA3cK9pqtX1kXEGHvBzNGzJGcPeqAHPX/z034Dnb
         Wfpt1mUrJC4kkjm1TVYl6KFzH64mgvYEzojOyfmwqaYwp9yJ+X3GrN7wS3puHQO6ds9F
         wF1g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:message-id:mime-version:reply-to:to:date:subject
         :from:domainkey-signature:dkim-signature;
        bh=RT/hWvFQojUhx8swoq+UPbWPzB72avfj2fl76n6ELq8=;
        b=rgpn3WZNNbzIl6xdW0uhpWLsnwfnzQFoJhH+QLNH62Pg8uSwoaIlcDkfPnaF5ErNyx
         IbfxCe05WeS48mD/DhTMZoAc6EdaGMNmrvEtbKBtQBLxXH8n3mV7YtDD/IfMzXVspTtN
         g6cT0wi2WWf5NaQNLPKVMJJKYUvkmBsdDZvHge2h+PUyEOS5V/knaLIcC02MV+Sn4WM0
         tWkNQFMFJKMYX6HPtKQ2D4g6tMrUzk1UCebXGQLoPpmqZ7PnYDaPsOv2l5vUMPqFTkHc
         YQ0YqdMlgZUaDYvQ7snAd6QzrvO1R3bICNU3xP7L5CS4O4u9DG7We5tHE1raBZ48IY7d
         mvpA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@dd.delta.org header.s=neolane header.b=qKaC9EzK;
       spf=pass (google.com: domain of no-reply@dd.delta.org designates 192.161.140.14 as permitted sender) smtp.mailfrom=no-reply@dd.delta.org;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=delta.org
Return-Path: 
Received: from r14.dd.delta.org (r14.dd.delta.org. [192.161.140.14])
        by mx.google.com with ESMTPS id p5si2068818ejo.398.2021.02.17.09.40.37
        for 
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 17 Feb 2021 09:40:37 -0800 (PST)
Received-SPF: pass (google.com: domain of no-reply@dd.delta.org designates 192.161.140.14 as permitted sender) client-ip=192.161.140.14;
Authentication-Results: mx.google.com;
       dkim=pass header.i=@dd.delta.org header.s=neolane header.b=qKaC9EzK;
       spf=pass (google.com: domain of no-reply@dd.delta.org designates 192.161.140.14 as permitted sender) smtp.mailfrom=no-reply@dd.delta.org;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=delta.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
    s=neolane;
    d=dd.delta.org;
    h=domainkey-signature:from:subject:date:to:reply-to:mime-version:x-mailer:message-id:list-unsubscribe:content-type;
    bh=RT/hWvFQojUhx8swoq+UPbWPzB72avfj2fl76n6ELq8=;
    b=qKaC9EzKDmDlEXw8NMftL0OWJ13uhoW5jJnDS/97gg6LBfByWWIT3zzsfWRJ9RHyB1iveaP2piGjOQh2SYz0q7V6gmryRZEY+xu01khySIegMqxaqXCPVJm1j2os5UPsDWTG2lU+W5wD7Mgk+fbJzRTGg+Ci2nzD0RZ/ALIL9dE=
DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns;
    s=neolane;
    d=dd.delta.org;
    h=From:Subject:Date:To:Reply-To:MIME-Version:X-mailer:Message-ID:List-Unsubscribe:Content-Type;
    b=gYx1/melQwCNSxI7NpFIqtHisuoL2vrLKz5qfC7Mq3KlokA0IQwhRE4MfVzt+ZKLCI5VV9/2v+RLn656n76pI6d8kNf+5/o1EZPH0NRfbA3gVGjX9MBv2lPIns8nwpbci8mdGayWUCcK5mmvzo+jJeybFnx8PByAw7BkwyYuag0=
From: "Delta Dental" 
Subject: Exclusive offer: Save over $100 on Philips Sonicare
Date: Wed, 17 Feb 2021 12:36:20 -0500
To: 
Reply-To: "Delta Dental" 
MIME-Version: 1.0
X-mailer: nlserver, Build 6.7.0
Message-ID: 
List-Unsubscribe: 
Content-Type: multipart/alternative;
    boundary="----=_NextPart_420_A055FFC8.A055FFC8"
X-TUID: z9STpOVpQ4Bs

This is a multi-part message in MIME format.

------=_NextPart_420_A055FFC8.A055FFC8
Content-Type: text/plain;
    charset="windows-1252"
Content-Transfer-Encoding: 8bit

Exclusive offer: Save 40% on Philips Sonicare 

Having trouble viewing this email?  http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7331&p1=%40a1oYwj3nu2Istsz3NSbjfxxyGNH4PAIQOGc7Gyt2UjY%3D View in browser. 

Join BrushSmart TM 

A healthier smile begins at home 

with better habits and a smart brush* 

 http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7332&p1=%40jZDA5E5%2BnZsTJY08aJKwqA%3D%3D Start now and save 40%     

Hi, Jonathan! 

Using a powered toothbrush can make you less likely to suffer from gum disease and cavities compared to using a manual brush. 1,2  That�s one of the reasons why Delta Dental and Philips Sonicare have teamed up to offer you BrushSmart , a complete at-home oral care program that helps you get smart about your health and rewards you for better brushing. 

Joining BrushSmart means more than learning how to care for your smile at home. You�ll unlock exclusive savings as a Delta Dental enrollee, starting with 40% off a $180 MSRP Philips Sonicare ExpertClean 7500 toothbrush . This app-connected brush provides progress reports and tips for building better brushing habits. 

You�ll also get FREE brush heads  when you brush regularly 3 , and special pricing on professional whitening treatments, oral hygiene products and more. With these powerful resources and great savings, BrushSmart can help you achieve a healthier, brighter smile. 

 http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7333&p1=%40jZDA5E5%2BnZsTJY08aJKwqA%3D%3D Join BrushSmart and save   

Stay Informed! 

 http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7334      http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7335      http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7336      http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7337      http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7338     

*Each BrushSmart invitation is unique to the recipient. Invitations may not be redeemed more than once or transferred to others. Offer expires 1/31/21. 

1 Study of Health in Pomerania, �Long-term impact of powered toothbrush on oral health: 11-year cohort study,� 2019. 

2 Oral Health Group, �Powered/electric toothbrushes compared to manual toothbrushes for maintaining oral health,� 2014. 

3 You�ll receive 2 brush heads with your toothbrush order, plus 2 more free from Delta Dental when you connect and stay connected to the BrushSmart version of the Sonicare app, for a total year�s supply. 

Review  http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb7339&p1=%40jZDA5E5%2BnZsTJY08aJKwqA%3D%3D BrushSmart info and FAQ 

 http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb733a&p1=@jZDA5E5+nZsTJY08aJKwqA== Unsubscribe from promotional opportunities like this one. 

 http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb733b&p1=@jZDA5E5+nZsTJY08aJKwqA== Unsubscribe from all updates and information related to your dental policy. * 

* You�ll still receive mandatory notices such as bill alerts, EOBs, etc. 

Privacy is important to us; therefore, we will not sell or rent your name or email address to anyone.  http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb733c Privacy Policy 

� Delta Dental.  Our Delta Dental enterprise includes Delta Dental of California, Delta Dental of Pennsylvania, Delta Dental Insurance Company and our affiliated enterprise companies. 

� Koninklijke Philips N.V.,  2020. All rights reserved. Philips values and respects your privacy. Read more about our  http://t.dd.delta.org/r/?id=t5071003,4eb029c2,4ecb733d privacy policy . 

Delta Dental is a registered trademark of Delta Dental Plans Association. 

BrushSmart is a trademark of Delta Dental of California. 

`

------=_NextPart_420_A055FFC8.A055FFC8
Content-Type: text/html;
    charset="windows-1252"
Content-Transfer-Encoding: quoted-printable



  
    
    
    
    
    
    Join Delta Dental=92s new, at-home oral care program
    
    
    
    
    
    

  
  
    

Exclusive offer: Save 40% on Philips Sonicare

Having trouble viewing this email=3F View in browser.

=3D"Delta

Join BrushSmartTM

A healthier smile begins at home

with bett= er habits and a smart brush*

Start now and save 40%
3D"+

Hi, Jonathan!

Using a powered toothbrush can make you les= s likely to suffer from gum disease and cavities compared to using a manual= brush.1,2 That’s one of the reasons why Delta Dental and Philips S= onicare have teamed up to offer you BrushSmart, a complete at-home oral care program that help= s you get smart about your health and rewards you for better brushing.

Joining BrushSmart means more than learning= how to care for your smile at home. You’ll unlock exclusive savings = as a Delta Dental enrollee, starting with 40% off a $180 MSRP Philips Sonicare ExpertClean 7500 to= othbrush. This app-connected brush provides progress reports and tips f= or building better brushing habits.

You’ll also get FREE brush heads when yo= u brush regularly3, and special pricing on professional whitening treatme= nts, oral hygiene products and more. With these powerful resources and grea= t savings, BrushSmart can help you achieve a healthier, brighter smile.

Join BrushSmart and save

Stay Informed!

=3D"Link =3D"Link =3D"Link =3D"Link =3D"Link

*Each BrushSmart invitation is unique to the re= cipient. Invitations may not be redeemed more than once or transferred to o= thers. Offer expires 1/31/21.

1Study of Health in Pomerania, “Long-te= rm impact of powered toothbrush on oral health: 11-year cohort study,&rdquo= ; 2019.

2Oral Health Group, “Powered/electric t= oothbrushes compared to manual toothbrushes for maintaining oral health,&rd= quo; 2014.

3You’ll receive 2 brush = heads with your toothbrush order, plus 2 more free from Delta Dental when y= ou connect and stay connected to the BrushSmart version of the Sonicare app= , for a total year’s supply.

Review = BrushSmart info and FAQ

Unsubscribe from promotional opportunities like this one.

Unsubscribe from all up= dates and information related to your dental policy.*<= /sup>

*You’ll still receive mandatory = notices such as bill alerts, EOBs, etc.

Privacy is important to us; therefore, we will = not sell or rent your name or email address to anyone. Privacy Policy

© Delta Dental. Our Delta Dental enterprise include= s Delta Dental of California, Delta Dental of Pennsylvania, Delta Dental In= surance Company and our affiliated enterprise companies.

© Koninklijke Philips N.V., 2020. All rights reserved. Philip= s values and respects your privacy. Read more about our privacy policy.

Delta Dental is a registered trademark of Delta= Dental Plans Association.

BrushSmart is a trademark of Del= ta Dental of California.

`

3D'' ------=_NextPart_420_A055FFC8.A055FFC8--
djcb commented 3 years ago

Uhmm, you need to attach it, not paste it. Thanks.

JonathanReeve commented 3 years ago

email.txt

Chris00 commented 3 years ago

I have (setq mu4e-view-use-gnus t). I copied your message to my maildir and got no problem (viewing and) deleting it.

djcb commented 3 years ago

Hmm cannot reproduce this. I'm also not sure how we'd get to the "temp file" part when just deleting the file "D x". Does this happen when you start emacs -Q, and then only load mu4e and not other 3rd party packages? Thanks.

djcb commented 3 years ago

Closing this... feel free to reopen with more information.