From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.help Subject: Re: sending mail with gnus Date: Wed, 08 Jan 2025 23:36:33 +0100 Message-ID: References: <68b5c85c-3294-45ba-a0be-bea2ae128cee@posteo.at> <4bf582ca-094d-43db-9dbb-d8df0ed6ef5b@posteo.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9843"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "help-gnu-emacs@gnu.org" To: gfp Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 08 23:37:19 2025 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 1tVefv-0002QV-FV for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 08 Jan 2025 23:37:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVefP-0000LA-QA; Wed, 08 Jan 2025 17:36:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVefH-0000Kp-LN for help-gnu-emacs@gnu.org; Wed, 08 Jan 2025 17:36:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVefE-0007hu-VT; Wed, 08 Jan 2025 17:36:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xm9B5NzYyBK5svSnblZGcWhBOff9J6nmRss6RLDzNZw=; b=M3mnrZ/WFVv+oETuDknh 0NOv5yNirB+8+Y/NZovOaO91I6onR/slEVrEKOova29VQIuDX8xNK84LbMcX/PNZ/s3MW1Jvtteio 8uLMyV6yJnvb/pAhEGmgmknt5/qEsTR9cHkl9E0CTe1kC+EGeqoMKJD11x8dkU8BnVLikKFb7FPzo rTWI1AD+d+Yc9+/KlXiTh4WTvdw+CwTpXI1vmv71nS1jXcjau1oEMWUONPdWprGFSMoeU0qI7J7Kl hfDAmzYse9AZgM85UuJwgSQoK65AWSC84Z2XkKJhdSRV/Ivm0aZ/anoBaXFfLYiS9QFfimLyrwFZk 8cAGYMgh8RJCeQ==; In-Reply-To: <4bf582ca-094d-43db-9dbb-d8df0ed6ef5b@posteo.at> (gfp@posteo.at's message of "Wed, 8 Jan 2025 22:11:25 +0000") X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:149175 Archived-At: gfp writes: > thanks for your help. > I appreciate that very much. You're welcome. > 1. > How do you do this? to get this line: > --8<---------------cut here---------------start------------->8--- I mark a region when writing a message and hit 'C-c M-m': ,----[ C-h k C-c M-m ] | C-c M-m runs the command message-mark-inserted-region (found in | message-mode-map), which is an interactive native-comp-function in | =E2=80=98message.el=E2=80=99. |=20 | It is bound to C-c M-m. |=20 | (message-mark-inserted-region BEG END &optional VERBATIM) |=20 | Inferred type: (function (t t &optional t) t) |=20 | Mark some region in the current article with enclosing tags. | See =E2=80=98message-mark-insert-begin=E2=80=99 and =E2=80=98message-mark= -insert-end=E2=80=99. | If VERBATIM, use slrn style verbatim marks ("#v+" and "#v-"). |=20 `---- > 2. > I fiddled around for many hours today to get gnus SMTP working > and to my own great astonishment > I just managed it some seconds before I got your email. > > my gnus.el: > ;; get emails > (setq gnus-select-method '(nnnil "")) > (setq gnus-secondary-select-methods > '((nnimap "posteo" > (nnimap-address "posteo.de") > (nnnimap-user "gottfried@posteo.de") > (nnimap-authenticator login) > (nnimap-stream ssl) > (nnimap-server-port 993)))) > > ;; Reply emails > (setq gnus-posting-styles > '((smtpmail-smtp-service) > (smtpmail-smtp-server "smtp.posteo.de") > (smtpmail-smtp-user "gottfried@posteo.de") > (smtpmail-smtp-port 465))) And I'm astonished that it works with the code above for `gnus-posting-styles', compare your code with the description in the manual[1]. Well, when it works for you, it works. > So I don=C2=B4t need your help at the moment. But I will keep it as recor= d, > in case I need it. > > Interestingly even I changed my /.authinfo file into /.authinfo.gpg > it worked. > > I am happy, > but unfortunately it takes many hours > to set up every small step in Emacs and Gnus. I agree, it takes time at the beginning, so I can urge you to read the manuals carefully and try to solve one issue after the other. Best, Arash Footnotes: [1] https://www.gnu.org/software/emacs/manual/html_mono/gnus.html#Posting-= Styles