Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: How to setup Gnus for the first time? (was: How to add two sequences of different lengths?)
       [not found]           ` <CAHxV0AiFDx6Ep-HK713rhTUoqq42On7X4V-Vy1ptqwgQm+J8XQ@mail.gmail.com>
@ 2020-07-19 22:33             ` Dmitry Alexandrov
  2020-07-20  7:54               ` How to setup Gnus for the first time? Alberto Luaces
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Alexandrov @ 2020-07-19 22:33 UTC (permalink / raw)
  To: Hashish Singh; +Cc: info-gnus-english


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to setup Gnus for the first time?
  2020-07-19 22:33             ` How to setup Gnus for the first time? (was: How to add two sequences of different lengths?) Dmitry Alexandrov
@ 2020-07-20  7:54               ` Alberto Luaces
  0 siblings, 0 replies; 2+ messages in thread
From: Alberto Luaces @ 2020-07-20  7:54 UTC (permalink / raw)
  To: info-gnus-english

Dmitry Alexandrov writes:

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

This is a very nice tip, thanks for bringing it up!

-- 
Alberto


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-20  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [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             ` How to setup Gnus for the first time? (was: How to add two sequences of different lengths?) Dmitry Alexandrov
2020-07-20  7:54               ` How to setup Gnus for the first time? Alberto Luaces

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