Mercurial > emacs
comparison lisp/gnus/message.el @ 99777:b1be79c8e945
(message-send-mail): Just set the buffer to unibyte
rather than use mm-with-unibyte-current-buffer which does a lot more.
(message-send-mail-partially): Don't bother with
mm-with-unibyte-current-buffer since it's already been made unibyte by
message-send-mail.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 21 Nov 2008 22:26:54 +0000 |
parents | 39408ed11da9 |
children | f3e7e60dc941 |
comparison
equal
deleted
inserted
replaced
99776:46cd7381c2ff | 99777:b1be79c8e945 |
---|---|
4323 (insert "Lines: " (message-make-lines) "\n")) | 4323 (insert "Lines: " (message-make-lines) "\n")) |
4324 (message-goto-subject) | 4324 (message-goto-subject) |
4325 (end-of-line) | 4325 (end-of-line) |
4326 (insert (format " (%d/%d)" n total)) | 4326 (insert (format " (%d/%d)" n total)) |
4327 (widen) | 4327 (widen) |
4328 (mm-with-unibyte-current-buffer | 4328 (funcall (or message-send-mail-real-function |
4329 (funcall (or message-send-mail-real-function | 4329 message-send-mail-function))) |
4330 message-send-mail-function)))) | |
4331 (setq n (+ n 1)) | 4330 (setq n (+ n 1)) |
4332 (setq p (pop plist)) | 4331 (setq p (pop plist)) |
4333 (erase-buffer))) | 4332 (erase-buffer))) |
4334 (kill-buffer tembuf)))) | 4333 (kill-buffer tembuf)))) |
4335 | 4334 |
4427 (not | 4426 (not |
4428 (string= "base64" | 4427 (string= "base64" |
4429 (message-fetch-field | 4428 (message-fetch-field |
4430 "content-transfer-encoding"))))))) | 4429 "content-transfer-encoding"))))))) |
4431 (message-insert-courtesy-copy)) | 4430 (message-insert-courtesy-copy)) |
4431 ;; Let's make sure we encoded all the body. | |
4432 (assert (save-excursion | |
4433 (goto-char (point-min)) | |
4434 (not (re-search-forward "[^\000-\377]" nil t)))) | |
4435 (mm-disable-multibyte) | |
4432 (if (or (not message-send-mail-partially-limit) | 4436 (if (or (not message-send-mail-partially-limit) |
4433 (< (buffer-size) message-send-mail-partially-limit) | 4437 (< (buffer-size) message-send-mail-partially-limit) |
4434 (not (message-y-or-n-p | 4438 (not (message-y-or-n-p |
4435 "The message size is too large, split? " | 4439 "The message size is too large, split? " |
4436 t | 4440 t |
4451 | 4455 |
4452 The size limit is controlled by `message-send-mail-partially-limit'. | 4456 The size limit is controlled by `message-send-mail-partially-limit'. |
4453 If you always want Gnus to send messages in one piece, set | 4457 If you always want Gnus to send messages in one piece, set |
4454 `message-send-mail-partially-limit' to nil. | 4458 `message-send-mail-partially-limit' to nil. |
4455 "))) | 4459 "))) |
4456 (mm-with-unibyte-current-buffer | 4460 (progn |
4457 (message "Sending via mail...") | 4461 (message "Sending via mail...") |
4458 (funcall (or message-send-mail-real-function | 4462 (funcall (or message-send-mail-real-function |
4459 message-send-mail-function))) | 4463 message-send-mail-function))) |
4460 (message-send-mail-partially))) | 4464 (message-send-mail-partially))) |
4461 (kill-buffer tembuf)) | 4465 (kill-buffer tembuf)) |