[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnus-read-init-file: Error in ~/.gnus:

From: Björn Bidar
Subject: Re: gnus-read-init-file: Error in ~/.gnus:
Date: Tue, 22 Nov 2022 23:11:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Adam Sjøgren <> writes:

>> (nnimap ""
>>         (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 ""
>                    (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
If you do the second you have add (nnimap-address "")

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 "")
                         ;; or whatever your inbox folder is 
                        (nnimap-inbox "INBOX")
                        (nnimap-user "yourloginname")
                        (nnimap-server-port 993)
                        (nnimap-stream ssl)
                        (nnmail-expiry-target ""))

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:

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]