Live data from Hacker News

Trying Gnus as an Email Client

gluer.org

41–47 of 47 posts

Re: Trying Gnus as an Email Client

#41
post #38
post #31

Earlier quoted context omitted.

"advanced security". It doesn't allow app passwords. At least, that used to be the case. Using security keys.

I assume that's oauth2 (which xoauth2 implies). It works for me with O365 and a Duo key for multiple clients.

Thanks for the pointer! I'll have to see if I can get that working. Last I looked at this stuff, I didn't understand oauth as well as I do now. (Which, I'm sure is still not perfect. Is an improvement, though.)

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.)

Re: Trying Gnus as an Email Client

#42
post #40

Is there any reason someone would consider switching to gnus from mu4e? I'm always open to, and quite enjoy, trying new things in emacs when it seems promising but am not familiar with the relevant differences.

I've used both. Mu4e is a lot simpler for email. I plan to eventually switch to Gnus for everything since it handles so much more than just mail (feed reader, hacker news, reddit, twitter, newsgroups, etc.), but mu4e is much easier to set up. Gnus really shines when you need to deal with a higher volume of messages than you will ever read. Mu4e now uses Gnus' code for viewing emails by default. Mu4e's headers mode wi…

Thank you for the information, very useful.

Re: Trying Gnus as an Email Client

#43
post #41
post #38

Earlier quoted context omitted.

I assume that's oauth2 (which xoauth2 implies). It works for me with O365 and a Duo key for multiple clients.

Thanks for the pointer! I'll have to see if I can get that working. Last I looked at this stuff, I didn't understand oauth as well as I do now. (Which, I'm sure is still not perfect. Is an improvement, though.) 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.)

I think you're meant to make your own app, but I don't have permission anyway. Some applications have their own tenant id (?) and you can copy, e.g. davmail's from ~/.davmail.properties, or even copy the token you get from it to use with something else.

Re: Trying Gnus as an Email Client

#44
post #30

I prefer Mu4e and msmtp/lbsync.

You say you prefer mu4e which seems to imply you tried or looked into gnus. What were the reasons that made you prefer mu4e? I use mu4e right now but am considering checking out gnus, would like your reasoning for doing the opposite.

Speed, speed and speed. M-x gnus-jog-cache is slow as hell, mu4e makes it fast and on Usenet slrnpull+Gnus it's the ultimate combo:

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

Re: Trying Gnus as an Email Client

#45
post #5

I switched from (neo)mutt to Gnus and never looked backed. 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:…

I'm curious how you had such great luck with Gnus IMAP. I'm a Gnus user myself, but I had to switch to local Maildir because I couldn't get a workable experience with the IMAP configuration. Specifically, Gnus would freeze Emacs for several minutes every time I loaded Gnus. This mostly seemed to be a problem when I accessed an account with more than 10,000 items in a mail folder. Running the same folder in a local Ma…

I have even more items in the INBOX of one IMAP account but never faced the issues you described. Maybe my configuration (parts of it) helps:

  (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")))

Re: Trying Gnus as an Email Client

#46
post #30

I prefer Mu4e and msmtp/lbsync.

You say you prefer mu4e which seems to imply you tried or looked into gnus. What were the reasons that made you prefer mu4e? I use mu4e right now but am considering checking out gnus, would like your reasoning for doing the opposite.

Sorry, I was late. Mu4e and slrn can acces your cached your remote imap and nntp folders with an mbsync (isync pkg) maildir and a news spool (slrnpull setup) respectively, so the access is ultrafast compared to the crawling GNUs, even when used with fiber connections.

Re: Trying Gnus as an Email Client

#47
post #26
post #7

I used it for years until one day it corrupted its own cache and become thoroughly unusable. Manually repairing tens of megabytes of serialised Lisp isn't fun or practical. If you live in Emacs, it's a great tool though. 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…

If "cache" means .newsrc.eld, 10s of MB seems rather large. I wonder what the corruption was, since it doesn't sound like anything I can remember in ages using Gnus. .newsrc.eld does have backups in the same way as other files. If you're missing XOAUTH2 authentication, there is an Emacs auth-source backend for it.

Yes, it was the newsrc.eld which got corrupted. I can't remember the circumstances, but I think it was an Emacs or Gnus bug at that time. This would be over 10 years ago though.
Post reply on HN