Re: How to setup Gnus for the first time? (was: How to add two sequences of different lengths?)

Skip to first unread message

Dmitry Alexandrov

Jul 20, 2020, 12:14:50 AM7/20/20
to Hashish Singh,
Hashish Singh <> wrote:
>> There was really no reason to write me privately in the first place.
> The thing is that this discussion is not relevant to the forum [comp.lang.lisp]

Perhaps. But there are _other_ public forums / newsgroups / mailing lists. And, of course, there is a Gnus user list — <> aka newsgroup <nntp://>.

Iʼll take a liberty to reply you there.

> I think the Gnus is the best way for me to post to the nntp server. What do I need to do the settings?

There is gazillion of different things that you may want to configure to use Gnus the best way (and actually many of them better be defaults). But the minimal setup before typing M-x gnus for the first time might look like that, for instance:

(setq user-full-name "Hashish Singh"
user-mail-address "")

(setq send-mail-function 'smtpmail-send-it
message-send-mail-function send-mail-function
smtpmail-smtp-server ""
smtpmail-stream-type 'ssl ; TLS really, was nil means STARTTLS or cleartext
smtpmail-smtp-service "smtps") ; SMTP/TLS, was 25 == "smtp"

(setq gnus-select-method '(nnnil "")
'((nnml "")
(nnimap "0"
(nnimap-address "")
(nnimap-stream ssl)) ; TLS really
(nntp "g"
(nntp-address ""))
(nntp "a"
(nntp-address ""))))

(setq gnus-agent-auto-agentize-methods '(nnimap nntp)
gnus-agent-enable-expiration 'DISABLE) ; yep, non-standard boolean
(add-hook 'gnus-select-article-hook #'gnus-agent-fetch-selected-article)

(setq gnus-message-archive-group
((string-prefix-p "nnimap+" group) group) ; to itself
(t "nnimap+0:INBOX")))) ; or whatever you normally use
(setq gnus-gcc-mark-as-read t)

;; News hierarchies, which are really gatewayed mailing lists.
(setq gnus-mailing-list-groups
(rx bol (opt "nntp" (1+ nonl) ":") (or "gmane."

;; Name may be misleading, it does not set `fill-column' (which is still used
;; by M-q) in `message-mode', but enables auto-filling on a given column.
(setq message-fill-column nil) ; was 72

Credentials are traditionally stored in ~/.authinfo.gpg like that:

machine login hashish0singh password YOUR-PASSPHRASE
machine 0 login hashish0singh password YOUR-PASSPHRASE

If you use pass(1), thatʼs supported as well, though, cf. (info "(auth) The Unix password store").

One of the first things to do after M-x gnus might be:

^ C-s :g RET RET C-s gnus.user RET u

You might also be interested in there.
Reply all
Reply to author
0 new messages