diff options
| author | Eli Zaretskii | 2006-01-21 13:16:05 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-01-21 13:16:05 +0000 |
| commit | 5ef9bccd0682263c463edb41a73f352b584ef5a3 (patch) | |
| tree | c189edc612dc5827910bf829b72305d5c8de8113 | |
| parent | f60117ac2980966dc0de0fd1fd5447eb17589a3f (diff) | |
| download | emacs-5ef9bccd0682263c463edb41a73f352b584ef5a3.tar.gz emacs-5ef9bccd0682263c463edb41a73f352b584ef5a3.zip | |
(rmail-output): Don't use content-type if it is nil.
| -rw-r--r-- | lisp/mail/rmailout.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 97654ae92c5..bd37a41aef8 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -349,9 +349,11 @@ The optional fourth argument FROM-GNUS is set when called from GNUS." | |||
| 349 | (mail-fetch-field "sender") | 349 | (mail-fetch-field "sender") |
| 350 | "unknown")) | 350 | "unknown")) |
| 351 | " " (current-time-string) "\n")) | 351 | " " (current-time-string) "\n")) |
| 352 | (if mime-version | 352 | (when mime-version |
| 353 | (insert "MIME-Version: " mime-version | 353 | (insert "MIME-Version: " mime-version) |
| 354 | "\nContent-type: " content-type "\n")) | 354 | ;; Some malformed MIME messages set content-type to nil. |
| 355 | (when content-type | ||
| 356 | (insert "\nContent-type: " content-type "\n"))) | ||
| 355 | ;; ``Quote'' "\nFrom " as "\n>From " | 357 | ;; ``Quote'' "\nFrom " as "\n>From " |
| 356 | ;; (note that this isn't really quoting, as there is no requirement | 358 | ;; (note that this isn't really quoting, as there is no requirement |
| 357 | ;; that "\n[>]+From " be quoted in the same transparent way.) | 359 | ;; that "\n[>]+From " be quoted in the same transparent way.) |