From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88751 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Multiple Mailings Date: Mon, 09 Sep 2019 11:12:20 +0800 Message-ID: <875zm2qi23.fsf@ericabrahamsen.net> References: <87d0gamwtn.fsf@bobnewell.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="253191"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M36955@lists.math.uh.edu Mon Sep 09 05:13:19 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i7A7C-0013hN-2o for ding-account@gmane.org; Mon, 09 Sep 2019 05:13:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92) (envelope-from ) id 1i7A6a-0003h1-9C; Sun, 08 Sep 2019 22:12:40 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i7A6W-0003eJ-2V for ding@lists.math.uh.edu; Sun, 08 Sep 2019 22:12:36 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1i7A6T-0004iz-Vu for ding@lists.math.uh.edu; Sun, 08 Sep 2019 22:12:35 -0500 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226] helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i7A6Q-000843-65 for ding@gnus.org; Mon, 09 Sep 2019 05:12:32 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1i7A6O-0012wC-1Q for ding@gnus.org; Mon, 09 Sep 2019 05:12:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:+a8DK50Yju8EDDQfDhbmovS8wbw= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88751 Archived-At: Bob Newell writes: > Aloha everyone, > > As many people do, I use the 'alias' feature of BBDB to set up mailing > lists. I typically expand the list into a BCC: field in my message, and > put in a generic address as the To: element. This works fine, as > expected, except that some spam filters don't like mail coming to a > generic address instead of the recipient's real address. > > Well, in Gnus all is possible. So I found some code on the web and > modified it, so that an expanded mailing list is parsed and individual > mails get sent to the real address of each recipient. So, say 18 on the > list, 18 separate email transactions. > > Very fine, except Gnus insists on prompting me for Each And Every Copy, > and that gets very tiresome. I think there could be a change > made. Looking in message.el, about line 4120 in my version, we have > this code fragment: > > (when (and (or (not (memq (car elem) > message-sent-message-via)) > (message-fetch-field "supersedes") > (if (or (message-gnksa-enable-p 'multiple-copies) > (not (eq (car elem) 'news))) > (y-or-n-p > (format > "Already sent message via %s; resend? " > (car elem))) > (error "Denied posting -- multiple copies"))) > (setq success (funcall (caddr elem) arg))) > (setq sent t)))) > > I thought that by enabling 'multiple-copies in the > 'message-gnksa-shoot-feet variable, I would avoid prompting. But as the > code above shows (once I figured out the nestings!) that isn't the > case. 'multiple-copies only comes into play under certain circumstances, > and will never prevent prompting. > > But shouldn't it? Is there really a reason to force prompting all the > time? Is that perhaps my use case--- automated single mailings to > multiple users--- is out of scope? (Or potentially very spammy, but I > should take responsibility for that.) Looking at uses of `message-gnksa-enable-p', the behavior of that function is to make the specified foot-gun *possible*, ie it won't be denied automatically. But in all call sites (not just 'multiple-copies) a prompt is still required. In other words the choice is between automatic denial and prompting, not between prompting and automatic acceptance. I don't think we'd want to change that behavior, as it's pretty baked in, and when you step back and look at it, what you're doing is actually sending multiple messages, not multiple copies of the same message. I would just write a little program to compose and send multiple messages, using `compose-mail': (dolist (rec (bbdb-do-records)) (compose-mail (bbdb-dwim-mail rec) "Hi there" '(("Bcc" . "me@myself.com"))) ;; If you're using message-mode (message-goto-body) (insert "Dear so-and-so,") (message-send-and-exit)) Untested! But hopefully an okay starting place. (Obligatory shameless plug: EBDB has `ebdb-mail-each' which does this for you.)