[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to setup Gnus for the first time? (was: How to add two sequences
From: |
Dmitry Alexandrov |
Subject: |
Re: How to setup Gnus for the first time? (was: How to add two sequences of different lengths?) |
Date: |
Mon, 20 Jul 2020 01:33:59 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hashish Singh <hashish0singh@gmail.com> 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 — <info-gnus-english@gnu.org> aka
newsgroup <nntp://news.gmane.io/gmane.emacs.gnus.user>.
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 "hashish0singh@gmail.com")
(setq send-mail-function 'smtpmail-send-it
message-send-mail-function send-mail-function
smtpmail-smtp-server "smtp.gmail.com"
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 "")
gnus-secondary-select-methods
'((nnml "")
(nnimap "0"
(nnimap-address "imap.gmail.com")
(nnimap-stream ssl)) ; TLS really
(nntp "g"
(nntp-address "news.gmane.io"))
(nntp "a"
(nntp-address "nntp.aioe.org"))))
(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
'((cond
((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."
"linux."
"mozilla.")))
;; 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 smtp.gmail.com 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 gmane.emacs.help there.
signature.asc
Description: PGP signature
- Re: How to setup Gnus for the first time? (was: How to add two sequences of different lengths?),
Dmitry Alexandrov <=