Trying Gnus as an Email Client
gluer.org
gluer.org
Gnus has a much nicer user experience and the integration into Emacs alone is worth switching.
What I particularly like: I can use the native IMAP server-side search with Gnus' own syntax. This means I have never been tempted to look at search/index specialized clients like notmuch or mu4e.
https://www.gnu.org/software/emacs/manual/html_node/gnus/Sea...
EDIT: Oh, what I forgot: also very nice is the Email Based Diary for reminders that appear in the groups overview. Quite unknown and covered by countless other tools, but the solution (and again - integration) is really clever.
https://www.gnu.org/software/emacs//manual/html_node/gnus/Em...
Running the same folder in a local Maildir didn't cause an issue, so I made the switch, but it would be nice to go back to IMAP. Partially back to IMAP, anyway - the office Outlook server requires OAUTH for IMAP and I don't believe that GNUS supports that configuration.
(setq gnus-select-method '(nnnil nil))
(setq gnus-secondary-select-methods
'((nnimap "account1"
(nnimap-address "mail.account1")
(nnimap-server-port "imaps")
(nnimap-stream ssl)
(nnir-search-engine imap)
(nnmail-expiry-target "nnimap+account1:Trash")
(nnmail-expiry-wait immediate))
(nnimap "account2"
(nnimap-address "imap.account2")
(nnimap-server-port "imaps")
(nnimap-stream ssl)
(nnir-search-engine imap)
(nnmail-expiry-target "nnimap+account2:Trash")
(nnmail-expiry-wait immediate))
(nndiary "diary")))Sadly, I had to move on to Thunderbird, and lately Outlook. Sad to say it, but email has become an absolute pain to use and text-based email clients are increasingly unusable. At some level, I feel I'm a sell-out. I no longer self-host my own email server, and I no longer use Gnus or mutt. It does feel like the rest of the world has forced us off these high-quality clients as it has consolidated around a small number of providers who deliberately prevent us doing it ourselves or using our own clients without jumping through major hoops like authentication, and this is a big loss.
If you're missing XOAUTH2 authentication, there is an Emacs auth-source backend for it.
https://www.emacswiki.org/emacs/BbdbMode
At one point, I had it exporting to the original Palm PDA: https://www.neilvandyke.org/bbdbpalm/
If you later move your email away from Emacs: https://www.neilvandyke.org/bbdb2tbird/
But Gnus is really good for email. I think it's gotten a lot of bad press in the Emacs community for being slow and leaky. But the imap backend re-write, async, and native-comp have made Gnus fast enough for my taste.
I've never tried Gnus for email because VM has always met my needs. VM (and ancillary tools, like Personality Crisis and mairix)
* does a great of job displaying HTML messages. For the very few that it doesn't, one keystroke sends the message to my web browser running locally.
* sends URLs I select (all from the keyboard) to the web browser
* opens images and attachments
* auto-adjusts the From: line of outgoing messages depending on the recipient
* archives messages to various folders using various criteria
* searches my archived mail going back a quarter century at lightning speed
Of course, I can write Emacs Lisp code of my own to extend any or all of the above.
VM isn't perfect. I'm sure that I could do all of the above with Gnus, and quite possibly am missing out on other features that VM lacks. Overall, though, I really feel like I have a superpower for email handling with it.
It takes Gnus ten minutes to start up even with nativecomp, and hours to do its initial indexing (but you already have to give up that time for notmuch's own indexing). It's unusable without nativecomp.
I switched because I realised that I was hackily reimplementing many Gnus features and ideas on top of notmuch.el in my Emacs init. I had to fix some bugs in Gnus, and help the author of nnselect fix some much harder bugs, over the past nine months. It works well now.
>shifted to Outlook because I was getting so much html
Does that mean GNUs does not handle html email ? I ask because with the standard ew package, I would think it would be able to format some html emals.
Right now, I use mutt but under some occasions I need to start firefox to read these emails. Usually from medical companies.
(Also, Outlook has MS-specific niceties like replying directly to Teams messages from within an email without having to start up Teams, which I assume they made as a workaround for how long it takes to start up Teams and pick the right organisation and wait for it to tell you to log out (since your account is still connected to that one organisation that long ago invited you for a single meeting and only org admins can remove users) and then hit reload since that sometimes works and then pick the right organisation again and then reply "OK" and then quickly exit Teams before your computer runs out of memory and grinds to a halt.)
Anyway, what email providers do people use today? One I found with SMTP support tends to be directed to spambox by Gmail.
Edit: Am I correct that I have to basically make my own app in order to do this? (Ok if the case, just making sure I'm not looking in the wrong direction.)
Sending mail works with that same app password and smpt.gmail.com, I use that to send email from systemd using msmtp as well.
It’s pretty reliable, but if you change your gmail password it revokes your app passwords. Only downtime I had was I simply didn’t know that, easy fix.
I can relate to this, I'm yet to find a way to connect my $CURRENT_JOB Office 365 to Gnus...
> Anyway, what email providers do people use today?
I personally use mailbox.org and never had a problem with SMTP.
Is GNU Emacs multithreaded or async yet? It was, uh, a few years away a few decades ago.
Mu4e now uses Gnus' code for viewing emails by default. Mu4e's headers mode will look a lot nicer than Gnus' article mode though.
Gnus is massive and has a huge learning curve. It would be great if you are working with very active mailing lists. If you're dealing with a small amount of email, there won't be much benefit.
My ~/.gnus.el:
(setq gnus-select-method '(nnspool "")
nnspool-spool-directory "/var/spool/slrnpull/news"
nnspool-nov-directory "/var/spool/slrnpull/news/over.view"
nnspool-active-file "/var/spool/slrnpull/data/active"
gnus-check-new-newsgroups t
gnus-post-method '(nnspool "")
nnspool-inews-program "sh"
nnspool-inews-switches '("-c" "cat > /var/spool/slrnqqqpull/out.going/X$(date +%s)-$$-1.$LOGNAME"))
(defun my-slrnpull-post-only (&optional dont-check)
(interactive)
(when (or dont-check
(message-news-p))
(gnus-message 5 "Posting news...")
(shell-command "slrnpull -d /var/spool/slrnpull --post-only")))
(add-hook 'message-sent-hook 'my-slrnpull-post-only)
~/.slrnrc: set auto_mark_article_as_read 0
set username "anthk"
set hostname "example.org" #YOUR HOST HERE
set realname "bozo user"
set post_object "slrnpull"
set read_active 0
set scorefile "/var/spool/slrnpull/news/score"
set server_object "spool"
set sorting_method 9
set spool_inn_root "/var/spool/slrnpull"
set spool_nov_root "/var/spool/slrnpull/news"
set spool_root "/var/spool/slrnpull/news"
set use_slrnpull 1
set wrap_flags 4