From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: Semi-recent addition - mailto local groups
Date: Mon, 19 Nov 2001 21:12:12 -0500 [thread overview]
Message-ID: <m3r8qu6vhp.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <iluy9l5mypc.fsf@dhcp128.extundo.com> (Simon Josefsson's message of "Sat, 17 Nov 2001 12:19:43 +0100")
Simon Josefsson <jas@extundo.com> wrote:
> Does this work? (I've committed it.)
Whee! Thanks.
> + (let ((fcc (message-fetch-field "Fcc"))
> + (gcc (message-fetch-field "Gcc")))
Should there be some kind of check here to see whether Gnus is
running? Or maybe the patch below is enough.
> + (gnus-y-or-n-p
> + (format "No receiver, perform %s anyway? "
How about this:
* message.el (message-send): Customize the prompting when
posting to Gcc/Fcc alone.
Index: lisp/message.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/message.el,v
retrieving revision 6.161
diff -u -r6.161 message.el
--- lisp/message.el 2001/11/19 09:56:48 6.161
+++ lisp/message.el 2001/11/20 02:15:14
@@ -452,6 +452,16 @@
:group 'message-interface
:type '(repeat regexp))
+(defcustom message-allow-gcc-fcc-alone 'ask
+ "*Specifies what to do when a message has no recipients other than
+Gcc or Fcc. If it is the symbol `always', the posting is allowed. If
+it is the symbol `never', the posting is not allowed. If it is the
+symbol `ask', you are prompted."
+ :group 'message-interface
+ :type '(choice (const always)
+ (const never)
+ (const ask)))
+
(defcustom message-sendmail-f-is-evil nil
"*Non-nil means don't add \"-f username\" to the sendmail command line.
Doing so would be even more evil than leaving it out."
@@ -2520,12 +2530,14 @@
(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"))))))))
+ (or (eq message-allow-gcc-fcc-alone 'always)
+ (and (not (eq message-allow-gcc-fcc-alone 'never))
+ (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 (or dont-barf-on-no-method
(and success sent))
paul
next prev parent reply other threads:[~2001-11-20 2:12 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
2001-11-18 18:15 ` Amos Gouaux
2001-11-20 2:12 ` Paul Jarc [this message]
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=m3r8qu6vhp.fsf@multivac.cwru.edu \
--to=prj@po.cwru.edu \
/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).