From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: Package cl is deprecated Date: Mon, 2 Aug 2021 08:50:32 +0800 Message-ID: References: <83y29qs31w.fsf@gnu.org> <87eebclnsz.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 02 02:51:12 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAMAi-0002u1-Dn for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Aug 2021 02:51:12 +0200 Original-Received: from localhost ([::1]:53790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAMAh-0001GM-4p for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Aug 2021 20:51:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAMAK-0001GA-37 for help-gnu-emacs@gnu.org; Sun, 01 Aug 2021 20:50:48 -0400 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:37770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAMAI-0006ar-4P for help-gnu-emacs@gnu.org; Sun, 01 Aug 2021 20:50:47 -0400 Original-Received: by mail-lj1-x235.google.com with SMTP id l4so21754980ljq.4 for ; Sun, 01 Aug 2021 17:50:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6v4pzN5SFQCqRfTJuDLKkgb25kKnJ6BA9jPuCGEG+FY=; b=ItGLiwwsrzwERAp3RNHMdxrqTdQPGbpnI3QTh7QpiYRsVA+hxvmTGa5uuGfP6OJZtd u1PaE9ce2F3GekdGndaascUYXiE7iz+CQx+Kgq/cqY0DPnMwUuILMPdKnWA/YVQvR5uD dqDcKf78AXIATVKSebPEyJ93RZ0XHwqIpxOnlILyJUshMGUNu93vbLaW3kimy1PwWg+A p8iqdm+uZnjUyU7xbLR1b34VbGUhfgkEAQ7pqmq7kymuE9Cf+PCR4CjWNTscJyghsMsY fRHRAPHPxp9OqNEXYUey4kUOltAPLq+imphP6D9o3ZVhITMlpbKfs8VsDf72EgxTWuYL 9K9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6v4pzN5SFQCqRfTJuDLKkgb25kKnJ6BA9jPuCGEG+FY=; b=b4C+xXbGvzjtHDnJaZ9kbs7wCtp7onojzYoBN9iBtvpGmZmmxe/9H6mWLxArw392rc JyJ7zpKngnzSxbM73+4By9tauaHfZWnvarrDRMGBaRNkND2TeKGjFSNsRGHKR+jhsLMc HrW4ozHq1yoeStfJnsTsIewDQ0SBsTwmQthONkY032yeTuMkyVQgDH5tJGi0gOC7iGxK oppRMdAdT8VskTJhzclyJccX8F5vp+hS/dVymNRADrgfqxTyP4zdsbCW7Bj1IAbt+MBN wBtnG+SoZnpVqf2JCCF9fFtr7fkt280TkoJjlUKbBLyjgytKS49owGejZzZ67XrQMYcr WxnQ== X-Gm-Message-State: AOAM531wagTNiRBQhKPbabOIcdDPiY7p2feTaziqqb/M3IPpztqQvcjd dfpdBWcJ6jPhKGLhhbBHcr6f3hjzdwg1RAA1dHY= X-Google-Smtp-Source: ABdhPJxVal45/z5um+revRLnQb75jJjGFfLlreusFZ3GYxeFScc1SsAh/Y5yATZIXuZlHCCgaaeP86Ozm1jSh8OJE3Q= X-Received: by 2002:a2e:bd0c:: with SMTP id n12mr9455864ljq.447.1627865444001; Sun, 01 Aug 2021 17:50:44 -0700 (PDT) In-Reply-To: <87eebclnsz.fsf@web.de> Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x235.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132296 Archived-At: On Mon, Aug 2, 2021 at 7:59 AM Michael Heerdegen wrote: > > Hongyi Zhao writes: > > > But, BTW, I haven't done any configuration for gnus [1], but instead, > > I noticed the following `custom-set-variables' setting in my > > `~/.emacs.d/init.el': > > > > '(send-mail-function 'mailclient-send-it) > > > > If I want to use gnus to do the job through my Gmail account, what > > adjustments should I make? > > If you don't get satisfying answers here, emacs.gnus.user and > emacs.gnus.general are Gnus specific groups to ask. Are these newsgroups or mailing lists? I can't find them on: . > I am using Gnus. M-x emacs-bug-report still doesn't start Gnus, I get a > buffer in message-mode instead. You get the same when starting to > compose a new message from within Gnus. > > You might want to start with one of the tasks (1) sending Email from > Emacs and (2) reading Email and News using Gnus. > > For sending mail, AFAIR you need a sendmail program installed (or did > this change...? I don't reacall). I installed esmtp since it's easy to > configure it. I have a ~/.authinfo.gpg with servers, usernames and > passwords (including the smtp-Server I use for sending mails), and, I > guess, that's already all I config needed outside Emacs. > > Then some basic setup like > > (setq-default > send-mail-function #'smtpmail-send-it > mail-user-agent 'gnus-user-agent > user-mail-address ... ) > > You will want to store Email addresses somewhere, there are multiple > solutions for that (EBDB, BBDB, Org, probably more). > > For basic stuff, i.e. unless you want to use Gnus more or less as your > one and only mail reader, you can also choose a more lightweight > approach inside Emacs, instead of Gnus. > > If you do want to use Gnus, there is some more setup involved, but it is > not harder to setup than other mail readers if you are used to Emacs. > > There is a cool gnus-mock called package for testing purposes available > in Gnu Elpa that always starts with the same basic but functional setup, > if you just want to try out how it looks like, and try out first > settings. Thank you for letting know this interesting tool [1]. [1] https://elpa.gnu.org/packages/gnus-mock.html > Gnus then has its own `gnus-init-file', that's where your Gnus specific > settings would go. > > Some variables you probably want to set: > > #+begin_src emacs-lisp > (setq-default > mail-sources '((file :path "/var/mail/my-user-name")) ;"system" mail > gnus-message-archive-method ;where stuff is saved > '(nnml "archive" > (nnml-directory "~/Mail/archive/") > (nnml-active-file "~/Mail/archive/active") > (nnml-newsgroups-file "~/Mail/archive/newsgroups")) > gnus-message-archive-group "sent" ;your sent mails go there > mail-archive-file-name nil ;have forgotten why I have this > gnus-article-save-directory (expand-file-name "~/Mail/archive/read/") > nntp-authinfo-file (expand-file-name "~/.authinfo.gpg"); see above > message-directory (expand-file-name "~/Mail/") > > epa-file-cache-passphrase-for-symmetric-encryption t > > gnus-secondary-select-methods > '((nnimap "Michael_Heerdegen@web.de" > (nnimap-address "imap.web.de")) > (nntp "Gmane" (nntp-address "news.gmane.io")) > (nntp "news.gnus.org")) > gnus-select-method (car gnus-secondary-select-methods) > > gnus-default-article-saver #'gnus-summary-save-in-folder > > gnus-blocked-images #'gnus-block-private-groups) > #+end_src > > Could be that there are some redundancies, and you want to use your own > Email addresses (I guess). > > That's the answer to the question what you would have to do. There are > probably lots of good "How to get started" manuals out there, and the > Gnus manual itself is written in a nice and funny way, don't hesitate to > read at length. Thank you very much again for your helpful and exhaustive explanations. > Michael. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province