8 ms·
Mutt on Windows Without WSL
- smusamashah 3y agoI wonder if this author has tried Justin Tuney's Cosmopolitan to run Linux tools on Windows. Her last releases are shipping full set of multiplatfom compiled GNU tools. They do work on windows. Even bash works. They do break sometimes but work when they do still. I used cosmopolitan's rsync on windows to copy stuff from sdcard but it was terminating randomly sometimes and I ended up using wsl.
- hiAndrewQuinn 3y agoThis comment just made me realize Cosmo rsync might fix my weird issues with getting Vagrant to sync files over to my Unix VMs on my corporate Windows laptop. Thanks!
- hiAndrewQuinn 3y agoIt worked!
- lsllc 3y agoJustine with an `e` and two `n`s in Tunney.
- deleted 3y ago[deleted]
- xvilka 3y agoMutt is exactly something that would be nice to rewrite in Rust, moreover, splitting into various crates of working with email, so that it will be possible to reuse the same code for both TUI and GUI clients.
- deleted 3y ago[deleted]
- djha-skin 3y agoAlready done: https://pimalaya.org/ https://pimalaya.org/
- abound 3y agoAnd also: https://meli-email.org/ https://meli-email.org/
- mimotomo2009 3y agoIt took only a second to see what I would miss as like on most of the mail clients: why isn't it possible to configure the list of mails to see not only the sender but the e-mail address? I only know three e-mail clients where I can configure it: mutt, betterbird and evolution. But maybe I'm old and no one would like to see that "bill gates <fake@bad.boy>" is not from bill gates before opening the mail (and render the contents). The phisher are thankful.
- Karellen 3y agoYou can do it in Claws Mail (also available on Windows): Configuration -> Preferences -> Display/Summaries -> Message List -> Displayed in From Column: Name | Address | Name and Address
- lsllc 3y agoSo this looks like it might even support "cloud" based email services with OAuth2/MFA authentication such as Outlook/Exchange in the cloud: https://pimalaya.org/himalaya/cli/latest/configuration/outlook.html https://pimalaya.org/himalaya/cli/latest/configuration/outlo...
- consp 3y ago> so that it will be possible to reuse the same code for both TUI and GUI clients. Why must a generaly good improvement these days always start on HN with "rewrite in rust" like it's the only language which still matters. Leave that up to the developer to what they prefer for the job.
- roydivision 3y agoYou're new here aren't you?
- ParetoOptimal 3y ago> Why must a generaly good improvement these days always start on HN with "rewrite in rust" like it's the only language which still matters. I'm guessing so that its likely to 1) be safer by default, 2) likely to get more contributors, 3) more likely to work cross-platform, and 4) more likely to get attention and survive as a project.
- BirAdam 3y ago"memory safe by default" but not necessarily "safer" by default. A code base that has been battle tested in production for decades will likely be safer in every other way than an entirely new project that has got thrown up on a git repo yesterday.
- anonymousDan 3y agoOmg scoop looks awesome, how have I not heard of it before?
- madspindel 3y agoHave you heard about WinGet? It's the official package manager for Windows: https://github.com/microsoft/winget-cli https://github.com/microsoft/winget-cli
- Brian_K_White 3y agoI've heard that they stole it. , so I approve of avoiding it.
- daghamm 3y agoI'm surprised this is not used more. How good is the community repo?
- jessekv 3y agoI tried WinGet out when it came out, but ended up sticking with scoop. What would you say are the advantages of WinGet over scoop?
- c-hendricks 3y agoCopying from a comment I made on Ars: Where scoop differs, which might be good or bad depending on your point of view, is that it installs software to its own location, and self-updating apps don't self update. So, tutorials and programs have to take Scoop into account[1] since they won't be installed to their usual locations (bonus: scoop itself can be installed to your users home directory, or to C:\ProgramData\scoop). Another wart is that maintainers of scoop recommend using scoop + winget[2]. I think it's neat, but personally, I just use winget to install things, and a variety of portable apps on a secondary drive (in fact, winget supports installing one-off programs to random locations). Another nice thing about winget is being able to update and manage software that wasn't installed with it too. [1]: https://github.com/microsoft/vscode/issues/123205#issuecomment-834670454 https://github.com/microsoft/vscode/issues/123205#issuecomme... [2]: https://github.com/ScoopInstaller/Scoop/issues/3691#issuecomment-1276399022 https://github.com/ScoopInstaller/Scoop/issues/3691#issuecom...
- jxdxbx 3y agore: using Unix tools on Windows, I do like that you can pipe the output of a program in WSL to the Windows clipboard (clip.exe). I was really surprised by this! I use pbcopy on the Mac for this all the time.
- deleted 3y ago[deleted]
- TOMDM 3y agoOh wow, I didn't know about this, thanks for posting! For others, it really is just as easy as `ls | clip.exe` to pipe into your clipboard on WSL. `ls | tee clip.exe` if you want to print as well as copy. And of course you can just set an alias if you want to shorten clip.exe to clip. Great tip! Thank you!
- Brian_K_White 3y agoIt's implimented as a magic filename? Not a virtual or real file that actually appears in a filesystem? You don't have to do something like mount a virtual fs that maps to your host windows fs like a bind mount or nfs mount, and also add that fs to PATH? If so, that sounds terrible, and very Microsoft.
- Kwpolska 3y agoThe entire point of WSL is seamless integration. Windows drives are automatically mounted as /mnt/c, the Windows PATH is added to the Linux one, and it can run Windows .exe files and communicate with their standard I/O.
- Brian_K_White 3y agoSo it's not magic then. A fs and a field in PATH means nothing unexpected happens. So good then.
- chungy 3y agoCygwin also offers this through /dev/clipboard, bidirectional. You can do "cat /dev/clipboard > file.txt" as well as "ls > /dev/clipboard"
- ggm 3y agoThe general case here would be that to be POSIX compliant doesn't demand the underlying OS is unix, only that the API/ABI and commands work in very narrow limits. If you write to libc and a small set of dependencies and if you are in C, it should be possible to do things. If you want curses, you are walking into hairy areas.
- dataflow 3y ago> WSL is nice, but it takes up a lot of RAM on my system. I prefer to use MSYS2. That's why you trash WSL2 and just stick with WSL1. I'm surprised they didn't mention it at all. Keep MSYS2 around for where WSL1 doesn't suffice, but that should be fairly infrequent.
- nolok 3y agoThere is an issue between WSL/Hyper-V and the cache system on linux, WSL2 might LOOK like it needs 8GB but in reality if you check under it most of it is used by cache, if you lower the amount of ram dedicated it will do just fine. WSL1 was great and I loved it better on many aspect, until you needed to touch the filesystem.
- baq 3y agoWSL1 just doesn't work well enough. I'd never recommend WSL1 for anything. The extra nines in compatibility matter in development work if you have any dependencies in your projects. WSL2 is also pretty good at giving RAM back to the host Windows. I guess you're really running thin on resources if this doesn't do enough.
- evook 3y agoThere is an experimental flag[0] in the .wslconfig which let's you set autoMemoryReclaim to gradual or dropcache. On my laptop I had good success with dropcache and on my countryside desktop with gradual. [0] https://learn.microsoft.com/en-us/windows/wsl/wsl-config#experimental-settings https://learn.microsoft.com/en-us/windows/wsl/wsl-config#exp...
- rcarmo 3y agoI used to do exactly this using Cygwin. I wonder why that is not an option anymore.
- jasode 3y ago>Cygwin The author uses MSYS2 which is based on Cygwin: https://www.google.com/search?q=msys2+based+on+cygwin https://www.google.com/search?q=msys2+based+on+cygwin EDIT add : >I wonder why that is not an option anymore. In the particular context of the blog, the author deliberately wants to make MSYS2 the main environment when he wrote: "These prerequisites are not just to use mutt, but to use msys2 successfully in any capacity for development or other work." Therefore, installing Cygwin separately for Mutt would work but it contradicts the goal of him wanting to use MSYS2.
- layer8 3y agoWhile MSYS2 is based on parts of Cygwin, it is not Cygwin (as opposed to how, say, Ubuntu is based on Debian). MSYS2 and Cygwin have different goals and provide a different environment: https://www.msys2.org/wiki/How-does-MSYS2-differ-from-Cygwin/ https://www.msys2.org/wiki/How-does-MSYS2-differ-from-Cygwin... The author probably prefers the MSYS2 way, but Mutt should work fine under Cygwin without requiring jumping through the hoops the author describes.
- jasode 3y ago>While MSYS2 is based on parts of Cygwin, Yes, this fragment is what my reply was about. >it is not Cygwin (as opposed to how, say, Ubuntu is based on Debian). I agree and that was not what my reply was claiming. Instead, I interpreted the gp's comment as being unfamiliar with MSYS2 and how it's related to Cygwin to fill the use case for a UNIX-POSIX-emulator. Extra trivia... as for whether "MSYS _is_ or _is not_ Cygwin" is a matter of context and particular person's perspective for comparison. Examples: "MSYS is not Cygwin": https://news.ycombinator.com/item?id=11390890 https://news.ycombinator.com/item?id=11390890 "MSYS is Cygwin": https://news.ycombinator.com/item?id=11390961 https://news.ycombinator.com/item?id=11390961
- 3y ago
- juujian 3y agoAm I the only one who said screw it, I'm getting 64GB of ram? The amount of concern about ram, it's not that much more expensive atm to get double or 4x if your already buying a laptop.
- klodolph 3y agoYes, since I can afford it. I feel bad for all the people out there who are students or otherwise under budget constraints. I go on Reddit or Discord and hear stories from people who are stuck on computers with 4GB RAM dating back to 2015 or earlier. These people are being left behind, which is a shame. Part of the justification is that anyone who has such old hardware can’t afford to buy your products or services anyways, but that’s a very narrow capitalist lens. These are motivated, intelligent people who could better contribute to our society if we made sure that you could do good development work on old hardware.
- w0m 3y agoThis. It's not that expensive; it's not worth your time dancing around over time. I Know it's an entitled view point, but engineers are also generally entitled.
- unshavedyak 3y agoYup. I've even debated 128. Though not because of WSL, i just do some work with high ram needs and having it for when i want it is worth it's cost, easily. Same for storage that isn't Apple based.
- Zambyte 3y agoI dropped Windows instead. I decided to splurge on RAM when I built my PC a couple years ago, because I like to run lots of VMs simultaneously to test things out. I also use source based package managers which can use a lot of RAM when compiling things in parallel. I have half as much RAM as you, and it feels endless.
- gyrospike 3y agoWhy not use a linux vm on windows? Using a shared folder mounted on the linux vm gets you file sharing, what else would you want that WSL gets you?
- w0m 3y agoWSL2 is basically a lower-memory VM via containerization with auto-mounts of the host OS.
- shortrounddev2 3y agoI'm sure it doesn't have the same features but you can send emails natively in CLI on windows with send-mailmessage https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/send-mailmessage?view=powershell-7.4 https://learn.microsoft.com/en-us/powershell/module/microsof...
- hiAndrewQuinn 3y agoI wish. "The Send-MailMessage cmdlet is obsolete. This cmdlet doesn't guarantee secure connections to SMTP servers. While there is no immediate replacement available in PowerShell, we recommend you do not use Send-MailMessage. For more information, see Platform Compatibility note DE0005." This made me very, very sad in my last job as the de facto PowerShell expert.
- doctorpangloss 3y agoBusybox for Windows is a great shell for people who want Linux look and feel on Windows. Chocolatey may also cover more stuff than scoop. Most developers should also be using Windows 2022 with Desktop. What you trade in one time agitation with i210 drivers you gain forever in zero cruft, and maybe more with file deduplication. In terms of exciting stuff to program, it would be nice if Triton supported Windows.
- Alifatisk 3y ago> get unix tools to run natively on Windows. I managed to run unix tools in cmd, so I can run both windows & unix commands togheter. It required adding msys2 into the environment variable.