aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2001-01-08 19:25:35 +0000
committerDave Love2001-01-08 19:25:35 +0000
commit2453b2e8f83ea4cf10df35f04b5789ab3c52c4e9 (patch)
tree942e67e68588b3cbb9c5a2de71a93e3352094a44
parentf36782bc24702882d9667e89ac66d1729eb0127c (diff)
downloademacs-2453b2e8f83ea4cf10df35f04b5789ab3c52c4e9.tar.gz
emacs-2453b2e8f83ea4cf10df35f04b5789ab3c52c4e9.zip
(mml-parse-1): Frob mml-confirmation-set when proceeding
after warnings. Amend multipart warning message.
-rw-r--r--lisp/gnus/mml.el18
1 files changed, 12 insertions, 6 deletions
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 8bdbe289bd9..83b16f135f9 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -132,8 +132,11 @@ The function is called with one parameter, which is the generated part.")
132 (mm-find-mime-charset-region point (point)))) 132 (mm-find-mime-charset-region point (point))))
133 (when (and (not raw) (memq nil charsets)) 133 (when (and (not raw) (memq nil charsets))
134 (if (or (memq 'unknown-encoding mml-confirmation-set) 134 (if (or (memq 'unknown-encoding mml-confirmation-set)
135 (y-or-n-p 135 (prog1 (y-or-n-p
136 "Message contains characters with unknown encoding. Really send?")) 136 "\
137Message contains characters with unknown encoding. Really send?")
138 (set (make-local-variable 'mml-confirmation-set)
139 (push 'unknown-encoding mml-confirmation-set))))
137 (if (setq use-ascii 140 (if (setq use-ascii
138 (or (memq 'use-ascii mml-confirmation-set) 141 (or (memq 'use-ascii mml-confirmation-set)
139 (y-or-n-p "Use ASCII as charset?"))) 142 (y-or-n-p "Use ASCII as charset?")))
@@ -153,10 +156,13 @@ The function is called with one parameter, which is the generated part.")
153 (when (and warn 156 (when (and warn
154 (not (memq 'multipart mml-confirmation-set)) 157 (not (memq 'multipart mml-confirmation-set))
155 (not 158 (not
156 (y-or-n-p 159 (prog1 (y-or-n-p
157 (format 160 (format
158 "Warning: Your message contains more than %d parts. Really send? " 161 "\
159 (length nstruct))))) 162A message part needs to be split into %d charset parts. Really send? "
163 (length nstruct)))
164 (set (make-local-variable 'mml-confirmation-set)
165 (push 'multipart mml-confirmation-set)))))
160 (error "Edit your message to use only one charset")) 166 (error "Edit your message to use only one charset"))
161 (setq struct (nconc nstruct struct))))))) 167 (setq struct (nconc nstruct struct)))))))
162 (unless (eobp) 168 (unless (eobp)