Unnamed repository; edit this file 'description' to name the repository.
 help / color / Atom feed
From: Dmitry Alexandrov <dag@gnui.org>
To: Hashish Singh <hashish0singh@gmail.com>
Cc: info-gnus-english@gnu.org
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
Message-ID: <7duzw2w8.dag@gnui.org> (raw)
In-Reply-To: <CAHxV0AiFDx6Ep-HK713rhTUoqq42On7X4V-Vy1ptqwgQm+J8XQ@mail.gmail.com> (Hashish Singh's message of "Sun, 19 Jul 2020 11:53:15 -0700")

[-- Attachment #1.1: Type: text/plain, Size: 2976 bytes --]

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.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

[-- Attachment #2: Type: text/plain, Size: 162 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

       reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7fe0323c-87db-4458-a723-4c1eb13c7a8ao@googlegroups.com>
     [not found] ` <875zaplney.fsf@bsb.me.uk>
     [not found]   ` <cddc4df7-3655-4d46-8fe3-2d9f21ca49afo@googlegroups.com>
     [not found]     ` <ft9ro791.dag@gnui.org>
     [not found]       ` <CAHxV0AiREgnHFGGz1X7jnR=8Bh1NKSoqm_XhefvZ2G7d85XPyQ@mail.gmail.com>
     [not found]         ` <imejefvx.dag@gnui.org>
     [not found]           ` <CAHxV0AiFDx6Ep-HK713rhTUoqq42On7X4V-Vy1ptqwgQm+J8XQ@mail.gmail.com>
2020-07-19 22:33             ` Dmitry Alexandrov [this message]
2020-07-20  7:54               ` How to setup Gnus for the first time? Alberto Luaces

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=7duzw2w8.dag@gnui.org \
    --to=dag@gnui.org \
    --cc=hashish0singh@gmail.com \
    --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

Unnamed repository; edit this file 'description' to name the repository.

Archives are clonable: git clone --mirror http://inbox.vuxu.org/info-gnus-english

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.emacs.gnus.user


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git