Long delays when mailbox gets modified externally
I have Mutt reading from a local maildir, which gets synced every 1-5 minutes using an external process (mbsync/isync). When this occurs and mutt has local state that hasn't yet been written back to disk, mutt shows a warning message for approximately 5 seconds, during which time the UI is frozen: "Mailbox was externally modified. Flags may be wrong." Is there anyway I can suppress or reduce this delay? These are the timing-related settings I have in my config file: set mail_check = 60 set mail_check_stats = yes set mail_check_stats_interval = 300 set sleep_time = 0 set time_inc = 250 set timeout = 0 Of these, I'm most suspicious of `mail_check_stats`. I don't see the delay all the time, just sometimes, and I wonder if mutt happens to be hanging because it's caught in the middle of a check_stats run. But the behavior is not consistent enough for me to be certain at all, so this is just a flimsy theory. Many thanks for the help. -Greg
Re: Mutt on Windows 10 using WSL
On 01/02/17 15:09 -0500, Ben Boeckel wrote: >On Wed, Feb 01, 2017 at 19:39:33 +, Paul McCormack wrote: >> The only issue that I am having is that I cannot launch Windows executables >> from the bash prompt, so I cannot get my GUI mailcaps to fire. The same issue >> is described here, but there is no useful response: >> https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/windows-10-bash-cannot-run-exe-from-bash/3ddebfb6-a476-4d05-a252-91eec105e0e9 > >ISTR that support for this is hard since you basically need to poke a >hole in the Linux abstraction layer to get have it pass off execution of >a PE-COFF executable. Not that I expect that it's *impossible*, but >you might need something like binfmt_misc for this I suspect. I've just replied to the earlier email with a link to the MS site where it is supposed to work out of the box. I think MS and Canonical must have been working pretty closely to get it to work. > >How's WINE on Windows through WSL using a mount in Linux of C:/ or other >drives? ;) > Yep, that's like a dream within a dream within a dream. Crazy Inception stuff right there. :) Paul -- Paul McCormack | p...@mccormack.org.au | Key ID: CD6B54FC
Re: Mutt on Windows 10 using WSL
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/02/17 11:47 -0800, David Champion wrote: >* On 01 Feb 2017, Paul McCormack wrote: >> The only issue that I am having is that I cannot launch Windows executables >> from the bash prompt, so I cannot get my GUI mailcaps to fire. The same issue >> is described here, but there is no useful response: >> https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/windows-10-bash-cannot-run-exe-from-bash/3ddebfb6-a476-4d05-a252-91eec105e0e9 >> >> Has anyone else tried Mutt on Windows 10? > >I haven't, but this is interesting news - thanks for sharing it. > >It seems like someone will come up with a way to run native windows >commands from within the WSL - even if that's a separate executable you >have to prefix commands with (e.g.: sh -c "exerun MSPaint.exe"). > >-- >David Champion • d...@bikeshed.us It is supposed to just work according to the MS web site. There must be something wrong with my setup, or it might just be the beta gremlins: https://msdn.microsoft.com/en-us/commandline/wsl/interop#invoking-windows-binaries-from-wsl Paul - -- Paul McCormack | p...@mccormack.org.au | Key ID: CD6B54FC -BEGIN PGP SIGNATURE- Version: GnuPG v1 iEYEARECAAYFAliSQngACgkQROV59c1rVPyGnQCg3MIhzmsC0rbNNdC3vum2HX7R zqsAoIqqCi7KdSo4q/zD92LDUNNRK8Jr =hmso -END PGP SIGNATURE-
Re: Mutt on Windows 10 using WSL
On Wed, Feb 01, 2017 at 19:39:33 +, Paul McCormack wrote: > The only issue that I am having is that I cannot launch Windows executables > from the bash prompt, so I cannot get my GUI mailcaps to fire. The same issue > is described here, but there is no useful response: > https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/windows-10-bash-cannot-run-exe-from-bash/3ddebfb6-a476-4d05-a252-91eec105e0e9 ISTR that support for this is hard since you basically need to poke a hole in the Linux abstraction layer to get have it pass off execution of a PE-COFF executable. Not that I expect that it's *impossible*, but you might need something like binfmt_misc for this I suspect. How's WINE on Windows through WSL using a mount in Linux of C:/ or other drives? ;) --Ben
Re: Mutt on Windows 10 using WSL
* On 01 Feb 2017, Paul McCormack wrote: > The only issue that I am having is that I cannot launch Windows executables > from the bash prompt, so I cannot get my GUI mailcaps to fire. The same issue > is described here, but there is no useful response: > https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/windows-10-bash-cannot-run-exe-from-bash/3ddebfb6-a476-4d05-a252-91eec105e0e9 > > Has anyone else tried Mutt on Windows 10? I haven't, but this is interesting news - thanks for sharing it. It seems like someone will come up with a way to run native windows commands from within the WSL - even if that's a separate executable you have to prefix commands with (e.g.: sh -c "exerun MSPaint.exe"). -- David Champion • d...@bikeshed.us signature.asc Description: PGP signature
Mutt on Windows 10 using WSL
Hi, I have just tried installing Mutt on Windows 10 using the beta Windows Subsystem for Linux (WSL). I am pleasantly surprised to say that it works remarkably well. I am using offlineimap (with Outlook.com host), msmtp, ispell, vim, gpg, lynx and notmuch with exactly the same config files from my Xubuntu installation. I've even got solarize colours set up! The only issue that I am having is that I cannot launch Windows executables from the bash prompt, so I cannot get my GUI mailcaps to fire. The same issue is described here, but there is no useful response: https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/windows-10-bash-cannot-run-exe-from-bash/3ddebfb6-a476-4d05-a252-91eec105e0e9 Has anyone else tried Mutt on Windows 10? Paul -- Paul McCormack | p...@mccormack.org.au | Key ID: CD6B54FC
Re: display_filter and ex
On 01.02.17 00:56, Andreas Doll wrote: > TL;DR > Has anyone managed to use ex in conjunction with display_filter? > > > I write emails using vim, which provides the handy function gggqG. This > function reformats text such that it doesn't exceed (say) 72 characters. The ex exercise is intriguing, but one can have approximate equivalence with: a) Reading emails as delivered, in an xterm wide enough to accommodate 80 or 90 character lines, without inconvenience.¹ b) When trimming quoted text in Vim, gq} can be repeated on each retained paragraph with overlong lines, with quoting (even multilevel) well handled, as you describe. A longer reformat seems a temptation to fullquoting? With gq} mapped to e.g. ^W, it's only necessary to whack ^W three times to format three paragraphs. Dunno if this alternative appeals - after all, it unfortunately obviates the need to play with display_filter. ;-) ¹ I do have: set smart_wrap # Wrap set wrapmargin=10 # long lines. unset markers # No '+' email line continuation crap. # Busts URLs! Erik