From f094766de2b4292c104e3476fa9beaa2cd017f9b Mon Sep 17 00:00:00 2001 From: ueno Date: Wed, 16 Aug 2000 08:42:39 +0000 Subject: [PATCH] * smtp.el (smtp-mailfrom): Don't send message size. --- smtp.el | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/smtp.el b/smtp.el index 87cef5f..45e6a03 100644 --- a/smtp.el +++ b/smtp.el @@ -136,27 +136,27 @@ don't define this value." (net-transaction-error trans 'helo)) trans)) -(defun smtp-mailfrom (sender buffer trans) +(defun smtp-mailfrom (sender trans) (smtp-send-command (smtp-transaction-process-internal trans) - (format "MAIL FROM:<%s>%s%s" + (format "MAIL FROM:<%s>%s" sender ;; SIZE --- Message Size Declaration (RFC1870) - (if (memq 'size - (smtp-transaction-extensions-internal trans)) - (format " SIZE=%d" - (save-excursion - (set-buffer buffer) - (+ (- (point-max) (point-min)) - ;; Add one byte for each change-of-line - ;; because or CR-LF representation: - (count-lines (point-min) (point-max)) - ;; For some reason, an empty line is - ;; added to the message. Maybe this - ;; is a bug, but it can't hurt to add - ;; those two bytes anyway: - 2))) - "") +;;; (if (memq 'size +;;; (smtp-transaction-extensions-internal trans)) +;;; (format " SIZE=%d" +;;; (save-excursion +;;; (set-buffer buffer) +;;; (+ (- (point-max) (point-min)) +;;; ;; Add one byte for each change-of-line +;;; ;; because or CR-LF representation: +;;; (count-lines (point-min) (point-max)) +;;; ;; For some reason, an empty line is +;;; ;; added to the message. Maybe this +;;; ;; is a bug, but it can't hurt to add +;;; ;; those two bytes anyway: +;;; 2))) +;;; "") ;; 8BITMIME --- 8bit-MIMEtransport (RFC1652) (if (and (memq '8bitmime (smtp-transaction-extensions-internal trans)) @@ -221,7 +221,7 @@ don't define this value." (net-transaction-compose-&& #'smtp-greeting (net-transaction-compose-|| #'smtp-ehlo #'smtp-helo)) - (smtp-closure-partial-apply #'smtp-mailfrom sender buffer)) + (smtp-closure-partial-apply #'smtp-mailfrom sender)) (net-transaction-fold-left (lambda (accu recipient) (net-transaction-compose-&& -- 1.7.10.4