Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Björn Bidar" <bjorn.bidar@thaodan.de>
To: "Adam Sjøgren" <asjo@koldfront.dk>
Cc: info-gnus-english@gnu.org
Subject: Re: gnus-read-init-file: Error in ~/.gnus: disroot.org
Date: Tue, 22 Nov 2022 23:11:14 +0200	[thread overview]
Message-ID: <87v8n6y9sd.fsf@thaodan.de> (raw)
In-Reply-To: <871qpupys6.fsf@tullinup.koldfront.dk> ("Adam =?utf-8?Q?Sj?= =?utf-8?Q?=C3=B8gren=22's?= message of "Tue, 22 Nov 2022 20:36:09 +0100")

Adam Sjøgren <asjo@koldfront.dk> writes:

>> (nnimap "disroot.org"
>>         (nnimap-inbox "INBOX")
>>         (nnimap-split-methods default)
>>         (nnimap-expunge t)
>>         (nnimap-stream ssl))
>>         (nnimap-authinfo-file "~/.authinfo")))
>
> This part is misplaced - I think what you are looking for is something
> like this:
>
>     (setq gnus-select-method
>           '(nnimap "disroot.org"
>                    (nnimap-inbox "INBOX")
>                    (nnimap-split-methods default)
>                    (nnimap-expunge t)
>                    (nnimap-stream ssl)
>                    (nnimap-authinfo-file "~/.authinfo")))

You can use the argument after nnimap as the server name or as an
identifier.
If you do the second you have add (nnimap-address "imap.server.com")

I configure my select method like this:
       ;; this disables the first select method as I use only secondary methods.
       (setq gnus-select-method '(nnnil ""))   
       (setq gnus-secondary-select-methods
              '((nnimap "server"
                        (nnimap-address "imap.server.de")
                         ;; or whatever your inbox folder is 
                        (nnimap-inbox "INBOX")
                        (nnimap-user "yourloginname")
                        (nnimap-server-port 993)
                        (nnimap-stream ssl)
                        (nnmail-expiry-target "nnimap+thaodan.de:Trash"))


I can you use server side filtering such sieve don't define
nnimap-split-methods and set nnmail-splqit-methods to nil so Gnus doesn't
try to filter your mails.
The more you don't use more than one computer/client to access your mail
I can recommend not use Gnus to filter but use Sieve or what your mail
providers offers for server side filtering.

nnimap-authinfo-file doesn't exist anymore, I think since like 12 years
go around the time the netrc package  was replaced by auth-source.

You have to configure that like this:
;; Put authinfo.gpg first so new secrets will be stored there by default and not in plain text
(setq auth-sources '("~/.authinfo.gpg" "~/.authinfo" "~/.netrc"))
;; Don't ask to store credentials in .authinfo.gpg
(setq auth-source-save-behavior nil)

In case you use password-store (pass) you should also call:
(auth-source-pass-enable)


>If nnimap gets annoying, then figure out another setup.
>
>Start simple, get an idea of what you like and don't, then modify.
>
>(I don't use nnimap, but I also have many weird old habits when it comes
>to email :-))

Nnimap works quite fast, the only downside is that it doesn't run in the
background and articles are not fetched in parallel.
However is a general issue with Gnus.

I've heard setting up Gnus-agent might help.

I hope I could help a bit.

Br,

Björn


      reply	other threads:[~2022-11-22 21:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-22 13:50 jindam, vani
2022-11-22 17:26 ` Adam Sjøgren
2022-11-22 18:10 ` jindam, vani
2022-11-22 18:55   ` Adam Sjøgren
2022-11-23  5:21   ` jindam, vani
2022-11-23  5:25     ` Emanuel Berg
2022-11-23 17:47     ` Eric Abrahamsen
2022-11-22 19:36 ` Adam Sjøgren
2022-11-22 21:11   ` Björn Bidar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8n6y9sd.fsf@thaodan.de \
    --to=bjorn.bidar@thaodan.de \
    --cc=asjo@koldfront.dk \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).