From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88752 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.gnus.general Subject: Re: Multiple Mailings Date: Sun, 08 Sep 2019 18:33:58 -1000 Organization: Avi Gobbler Publishing Message-ID: <874l1mozpl.fsf@bobnewell.net> References: <87d0gamwtn.fsf@bobnewell.net> <875zm2qi23.fsf@ericabrahamsen.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="27273"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: ding@gnus.org To: Eric Abrahamsen Original-X-From: ding-owner+M36956@lists.math.uh.edu Mon Sep 09 06:34:39 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 1i7BNu-0006y5-0h for ding-account@gmane.org; Mon, 09 Sep 2019 06:34:38 +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 1i7BNV-0004Mg-7L; Sun, 08 Sep 2019 23:34:13 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i7BNQ-0004Jw-R0 for ding@lists.math.uh.edu; Sun, 08 Sep 2019 23:34:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1i7BNO-0003Oa-Q8 for ding@lists.math.uh.edu; Sun, 08 Sep 2019 23:34:08 -0500 Original-Received: from mail-pf1-f169.google.com ([209.85.210.169]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i7BNK-0000RV-ME for ding@gnus.org; Mon, 09 Sep 2019 06:34:05 +0200 Original-Received: by mail-pf1-f169.google.com with SMTP id q10so8352975pfl.0 for ; Sun, 08 Sep 2019 21:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version; bh=bBO/rjubzpnzsnl2JP1WBX/hfTmYmYnlPLp+Mf9lOM8=; b=UbUrJBLk0ruc57UhHaLKi0J08X+yFQ7szqq/k/IHsZ243UErX8ESrhTBBhLlMFgSYb iifZxUkUgtXoG3l1Qs2hDUAWAfUF+E48jsf5CJP2FpKt64klugi4xbWVm9moXK0kSX+b WxlXoY0y30B1UP/t3WmPCvnkILP5QpIF8Kf98f8rO97vVHaqWXLyC/GI9rjfvwj8WWmw 49tyuwSd0Tt98eemyfE1Qgq0DSd+r00VuYcB6vD3ZTm13P70GhKHl9CUKFVSwXof7VfZ pslbd93FtTm0d4Kngy+Ei2EqoHIYMB8jBMxvoZiPhRN8wmMq/nBnx6P07u+PVSjYx4YM uxtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=bBO/rjubzpnzsnl2JP1WBX/hfTmYmYnlPLp+Mf9lOM8=; b=ndl3+M6Lm/VEdfadIMxP/KGFpFUlFKghZD+DKTMHwvruKH8PlYkz+7BVWylu7sMve4 oV7ZcwuHp6P23KSzIxJfVeKeXedkpi0aXpIFuRD4GufdJmLcItShZuvYnu5+BDQNG058 oQUxyXP9RYSqYfH1c6aY+F3B5lqt74KnpD8mh9WeaY542Tf9y5Vh1g+u8M2VRtySntsm PmZoXnoksYtEroPtYv5kb4Mh+FiNOY0eS/eeTu63sVUryZDHamDf1bNG+eTnx9o74wUJ URpXeatxD00SsZw0TSg2vJNoviMAQ2wwqDl0x+thY757/SPfrMeWhtEDIm0Wmsk7T7uH hEfw== X-Gm-Message-State: APjAAAXtsuGqh1fnZKfatUN1s6qUtvUyCJjIqyAUuuAuoS9GqUlh6tox L29MzFMqcK00y4PwiYkelWWHOw== X-Google-Smtp-Source: APXvYqz1wvH7TEr3Ul5tsc69PZAoX2a9bgQy0D6Rb8CLO5XyOZ2QNaQDqsePDrTB+p60/gG5uZvv9A== X-Received: by 2002:a63:7e17:: with SMTP id z23mr19854251pgc.14.1568003640633; Sun, 08 Sep 2019 21:34:00 -0700 (PDT) Original-Received: from localhost (udp072992uds.hawaiiantel.net. [141.239.244.209]) by smtp.gmail.com with ESMTPSA id y138sm2755867pfb.174.2019.09.08.21.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2019 21:33:59 -0700 (PDT) In-Reply-To: <875zm2qi23.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 09 Sep 2019 11:12:20 +0800") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88752 Archived-At: I see what you are doing in your code, but it didn't quite work for me although I'm sure with some tweaking it could. I solved the issue another way, which is hackish but at least a little less so. The code is below; it's for my own environment, but could be generally useful if the connectivity check were to be removed. I can't take much credit; it's mostly stuff found on the web with a few of my own changes. I now get around the prompting by resetting 'message-sent-message-via to nil, so gnus doesn't realize I'm sending duplicates and therefore doesn't nag. I tie 'message-send-and-exit-multiple to C-c C-m C-m in 'message-mode-map. (defun message-send-and-exit-multiple () (interactive) ;;; Check connectivity once, assume(!) it stays up for the duration of ;;; the mass mailing. (if (outbound-port-test "smtp.gmail.com" 587) (progn (let ((addresses (split-string (message-fetch-field "To") "," t))) (while addresses ;; Avoid prompts for mailing duplicate copies. (setq message-sent-message-via nil) (let ((address (car addresses))) (setq addresses (cdr addresses)) (message-remove-header "To") (message-add-header (format "To: %s" address)) (if addresses (message-send) (message-send-and-exit)))))) (message "No smtp connectivity, save as draft instead"))) -- Bob Newell Honolulu, Hawai`i * Via Gnus/BBDB/Org/Emacs/Linux *