Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 593692 - mail-client/mutt: exits line editor when resized when compiled with imap use flag
Summary: mail-client/mutt: exits line editor when resized when compiled with imap use ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL: https://dev.mutt.org/trac/ticket/3875
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-13 23:23 UTC by Nicolas Porcel
Modified: 2016-09-23 08:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix the resize issue (fix-resize.patch,676 bytes, patch)
2016-09-13 23:24 UTC, Nicolas Porcel
Details | Diff
Upstream fix for the problem (fix-resize.patch,1.67 KB, patch)
2016-09-22 23:09 UTC, Nicolas Porcel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Porcel 2016-09-13 23:23:27 UTC
Mutt exits line editor when resized. This only happens when the imap flag is enabled, as the window resize handling is different in that case. I attached a patch that should solve the problem so that you can integrate it in the portage tree.

Reproducible: Always

Steps to Reproduce:
1. Merge mail-client/mutt with imap use flag
2. Open mutt with the following command
3. Resize the terminal
Actual Results:  
Mutt exists


Please note that this bug concerns vanilla mutt and not NeoMutt. I already submitted the fix upstream (see URL), but it might take a while to fix so I attached the patch I use as a user patch on 1.7 version.

Also, this should concern every version of mutt as the issue was introduced a few years ago when fixing another problem.
Comment 1 Nicolas Porcel 2016-09-13 23:24:03 UTC
Created attachment 445626 [details, diff]
Patch to fix the resize issue
Comment 2 Fabian Groffen gentoo-dev 2016-09-17 17:42:24 UTC
Thanks!  I was waiting for a response from mutt maintainers, but will include it on next revbump.
Comment 3 Nicolas Porcel 2016-09-20 19:59:29 UTC
Thanks! FYI, a mutt dev just acknowledged the bug report.

Also, this is not urgent (it has been around for a while). I noticed it because I open mailto urls with this command: "xterm -e mutt", and my window manager (Awesome) resizes the terminal when they open, exiting mutt when it starts. But even in that case there are workarounds such as opening the terminal in floating mode.
Comment 4 Fabian Groffen gentoo-dev 2016-09-21 06:51:56 UTC
I expect Kevin to make some more commits today or tomorrow, after which I'll do a revbump.  Whether or not he includes your fix won't matter, as I already grabbed the patch so the fix will be in the next version.  I hope this is ok for you.
Comment 5 Nicolas Porcel 2016-09-21 08:13:26 UTC
No problem for me. Just do whatever you think is best for the other Gentoo users. I already have the patch in my local patches anyway. I just wasn't sure how long it would take to integrate it upstream, so I submitted the patch here in case someone else had the same problem.
Comment 6 Nicolas Porcel 2016-09-22 23:09:07 UTC
Created attachment 447464 [details, diff]
Upstream fix for the problem

Kevin submitted the official fix. I attached it to the bug report.
Comment 7 Fabian Groffen gentoo-dev 2016-09-23 08:03:35 UTC
This should be in -r5.  Thanks!