From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Guidance with handling email from emacs Date: Thu, 21 Sep 2023 11:25:28 +0200 Message-ID: <87ediryj1z.fsf@gmail.com> References: <87ttrozvm1.fsf@makinata.eu> 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="22433"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Bruno Victal , help-gnu-emacs@gnu.org To: Eshel Yaron Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 21 11:26:37 2023 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 1qjFxF-0005XV-9Y for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 21 Sep 2023 11:26:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjFwH-00053N-73; Thu, 21 Sep 2023 05:25:37 -0400 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 1qjFwG-00052e-9R for help-gnu-emacs@gnu.org; Thu, 21 Sep 2023 05:25:36 -0400 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjFwD-0003K0-B1 for help-gnu-emacs@gnu.org; Thu, 21 Sep 2023 05:25:35 -0400 Original-Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-321fa040ae7so254208f8f.1 for ; Thu, 21 Sep 2023 02:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695288330; x=1695893130; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=QaAWEzxUKH7FOVYXfNKuVgOqflZp3SzHL+nEvWUZ0xg=; b=R68lCN1xD+b0IQWGB6fqkRvNaO+sVWzZYuYhdvayHa6RGRUIuDmOShP/fiMpe/zMLw Aapw0spoNYMvFzUyWDm4oU5Js0UIH4Wi0CzxFii82jnehwmwuI+l/oldHZPWMupUfzSM SLILNT3VARLxYEyIfG9BbLmfd2DhqPGeWOzjWtxbcjFbCsQodpVdGiSsSDpHXERUUs2V I2vi+jKkoot0JvvnNY3/FSC7b1Q7Bgprw92B8y95Xv7qCkOEV5DVoHixNs4R9XP38Lch PLHyrAS1rghn9eP8kL1ofsYGXfqOye5RoWYo0KoTvOCGfTqDg0fKABytLchlAeakmzeG cG8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695288330; x=1695893130; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QaAWEzxUKH7FOVYXfNKuVgOqflZp3SzHL+nEvWUZ0xg=; b=hvdqJ6f92AxqkoL0gweHCp/uUSlccZyB8W26mZ7wEilDHyI4UjbE2DW47sSJEIEilp TtSzhC7tqDmg5w6DhP+YpuIWp31nzDtXPwbFB2N1H5M5PPhzvu+BPqTZ36Wc6K+LMtFt LcCtmp4R4bNVz41FWgMWeFfsPv+ADIkDJCxbA+9z/ZGkdVeD2wYY/r04YlQg53tfvw4f FQ0zc/HDFsPoINP7/nnPQpvdgrS4qr5kXFcAevkoaXBWrY+dh6UbFY0yWVGis538AMQg fRftPiSdrKhLEV1ZzkkprotsbC/nwAoxkNszkLWglCWN+Vt08UG4XQBRh2jdy0G4aCBs BebQ== X-Gm-Message-State: AOJu0YyRgGIpcYLqesqkxVVXCzY2NyBJgmEkaPCJYx6r7Yd2mBiagwB8 OcjNR8NHtNs8Jp1ubMRQRVN0RFlf34m3gg== X-Google-Smtp-Source: AGHT+IHvI4F9RyMDtHeAX5ftwvM36jUXtn6/m++DV+LWQv79yAb4T9/t9HtuL7C18x2p8dUV7DE2TA== X-Received: by 2002:adf:e253:0:b0:31a:dd55:e69c with SMTP id bl19-20020adfe253000000b0031add55e69cmr4342864wrb.60.1695288330229; Thu, 21 Sep 2023 02:25:30 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:65a9:f59c:5fbd:1054]) by smtp.gmail.com with ESMTPSA id t16-20020adff050000000b0031c6dc684f8sm1236506wro.20.2023.09.21.02.25.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 02:25:29 -0700 (PDT) In-Reply-To: (Eshel Yaron's message of "Thu, 21 Sep 2023 09:14:22 +0200") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=rpluim@gmail.com; helo=mail-wr1-x436.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.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:145149 Archived-At: >>>>> On Thu, 21 Sep 2023 09:14:22 +0200, Eshel Yaron s= aid: Eshel> Bruno Victal writes: >> * Place a copy of the sent message in the IMAP Sent folder? >> I'm aware of the `mail-self-blind' variable that BCCs the mail to >> myself but I'm asking for this behavior in specific. You can in theory set `gnus-message-archive-group' to point at an IMAP folder like "nnimap+myimapserver:Sent", but I=CA=BCve never tried it (see also `gnus-gcc-mark-as-read'). Eshel> I'm not sure how to configure this behavior, but I think for me = this Eshel> just works. Did you give it a try? gmail does it for you automatically, that I know. >> * Is there the equivalent of =E2=80=9CPaste with quotation=E2=80=9D? >> i.e. Paste contents of clipboard but with one level of quotation, >> regardless of where I copied the text from. Eshel> I just yank the text I want to quote, and then type C-x r t > SP= C RET. Eshel> I'm not sure if there's another bespoke way to do that. There=CA=BCs `message-yank-buffer', but see below. >> * How can I replicate the citation message style used in Thunderbird? >> i.e. =E2=80=9COn 2023-09-18 07:57, _NAME_ wrote:=E2=80=9D Eshel> Try setting `message-citation-line-function` to Eshel> `message-insert-formatted-citation-line` and customize Eshel> `message-citation-line-format`. Or take a look at the "supercite" package (I used it for this message). >> * Is there a =E2=80=9Cright=E2=80=9D way for easily handling multipl= e SMTP accounts (or >> identities as Thunderbird calls them)? Eshel> Yes, there are a couple of ways to achieve this, none of them ar= e really Eshel> great IMO. But the best way is to customize `message-server-ali= st`. Eshel> You can take a look at my email config here: Eshel> http://git.eshelyaron.com/gitweb/?p=3Ddotfiles.git;a=3Dblob;f=3D= .emacs.d/lisp/esy-comm.el;hb=3DHEAD I=CA=BCve used `gnus-posting-styles' for this in the past. something like (setq gnus-posting-styles '( ("^nnimap\\+gmail" (address "myusername@gmail.com") ("X-Message-SMTP-Method" "smtp mail.gmail.com smtps myusername")) ("^nnimap\\+yahoo" (address "myusername@yahoo.com") ("X-Message-SMTP-Method" "smtp mail.yahoo.com smtps myusername")))) (this also sets "From" for you based on the group you=CA=BCre in) >> * ^Related to the above: Can I paste something and have it automatic= ally >> enclose with the =E2=80=9C=E2=80=A6cut here=E2=80=A6=E2=80=9D lines = instead of having to mark the >> region and do `C-c M-m'? Yes. See `yank-transform-functions', which you could also use to do the quoting you talked about earlier. Of course this is Emacs, so you can always define your own functions to do different kinds of yanking and bind them to keys of your choosing. Robert --=20