Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: Semi-recent addition -  mailto local groups
Date: Sat, 17 Nov 2001 12:19:43 +0100	[thread overview]
Message-ID: <iluy9l5mypc.fsf@dhcp128.extundo.com> (raw)
In-Reply-To: <m3k7wuaadf.fsf@multivac.cwru.edu> (prj@po.cwru.edu's message of "Tue, 13 Nov 2001 11:44:22 -0500")

prj@po.cwru.edu (Paul Jarc) writes:

> Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) wrote:
>> prj@po.cwru.edu (Paul Jarc) writes:
>>> nnml and some others recognize Newsgroups
>>
>> I know that nnimap does.  Maybe nnmaildir does?  Any others?
>
> Not nnmaildir.  (Wasn't the nnml version added to the other nnmail
> backends?)  I was hoping somebody would make the necessary changes to
> allow messages to be delivered only to Gcc, so I wouldn't have to
> bother.  Maybe I'll do that myself.

Does this work?  (I've committed it.)

2001-11-17  Simon Josefsson  <jas@extundo.com>

	* message.el (message-send): Ask user if Fcc/Gcc should be
	performed when no other sender was specified.
	Suggested by prj@po.cwru.edu (Paul Jarc).

Index: message.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/message.el,v
retrieving revision 6.159
diff -u -r6.159 message.el
--- message.el	2001/11/17 10:54:09	6.159
+++ message.el	2001/11/17 11:25:55
@@ -2499,7 +2499,7 @@
   (message message-sending-message)
   (let ((alist message-send-method-alist)
 	(success t)
-	elem sent
+	elem sent dont-barf-on-no-method
 	(message-options message-options))
     (message-options-set-recipient)
     (while (and success
@@ -2516,9 +2516,19 @@
 			 (error "Denied posting -- multiple copies")))
 		   (setq success (funcall (caddr elem) arg)))
 	  (setq sent t))))
-    (unless (or sent (not success))
+    (unless (or sent (not success)
+		(let ((fcc (message-fetch-field "Fcc"))
+		      (gcc (message-fetch-field "Gcc")))
+		  (and (or fcc gcc)
+		       (setq dont-barf-on-no-method 
+			     (gnus-y-or-n-p
+			      (format "No receiver, perform %s anyway? "
+				      (cond ((and fcc gcc) "Fcc and Gcc")
+					    (fcc "Fcc")
+					    (t "Gcc"))))))))
       (error "No methods specified to send by"))
-    (when (and success sent)
+    (when (or dont-barf-on-no-method
+	      (and success sent))
       (message-do-fcc)
       (save-excursion
 	(run-hooks 'message-sent-hook))




  reply	other threads:[~2001-11-17 11:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-12 11:46 Harry Putnam
2001-11-12 22:22 ` Paul Jarc
2001-11-12 23:05   ` How to use UTF-8 for outgoing mail with XEmacs? Mike Fabian
2001-12-29  5:05     ` Lars Magne Ingebrigtsen
2001-12-29 11:46       ` Florian Weimer
2001-12-29 11:35         ` Lars Magne Ingebrigtsen
2001-12-29 16:15           ` Florian Weimer
2001-11-13 10:04   ` Semi-recent addition - mailto local groups Kai Großjohann
2001-11-13 16:44     ` Paul Jarc
2001-11-17 11:19       ` Simon Josefsson [this message]
2001-11-18 18:15         ` Amos Gouaux
2001-11-20  2:12         ` Paul Jarc
2001-11-20 19:04           ` Simon Josefsson
2001-11-24  5:46             ` Paul Jarc
2001-11-24 10:57               ` Simon Josefsson
2001-11-24 20:30                 ` Kai Großjohann
2001-11-25  1:01                 ` Paul Jarc
2001-11-25 11:36                   ` Simon Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluy9l5mypc.fsf@dhcp128.extundo.com \
    --to=jas@extundo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).