diff options
| author | Richard M. Stallman | 1996-12-17 20:53:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-12-17 20:53:28 +0000 |
| commit | 5958eef64ff051cdc49400369475759e56c654ea (patch) | |
| tree | 283d1da4870538521d9c23dc75fd9a3d95a9fa9e | |
| parent | 2ff20b7e81e97ba3c9b07bb50d2d978c950cadd5 (diff) | |
| download | emacs-5958eef64ff051cdc49400369475759e56c654ea.tar.gz emacs-5958eef64ff051cdc49400369475759e56c654ea.zip | |
(news-mail-reply, news-reply): Include the message
ID in the In-reply-to line.
| -rw-r--r-- | lisp/mail/rnewspost.el | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/mail/rnewspost.el b/lisp/mail/rnewspost.el index 46becf890b5..3d6be2505f0 100644 --- a/lisp/mail/rnewspost.el +++ b/lisp/mail/rnewspost.el | |||
| @@ -290,7 +290,7 @@ summary (abstract) of the message." | |||
| 290 | While composing the reply, use \\[news-reply-yank-original] to yank the | 290 | While composing the reply, use \\[news-reply-yank-original] to yank the |
| 291 | original message into it." | 291 | original message into it." |
| 292 | (interactive) | 292 | (interactive) |
| 293 | (let (from cc subject date to reply-to | 293 | (let (from cc subject date to reply-to message-id |
| 294 | (buffer (current-buffer))) | 294 | (buffer (current-buffer))) |
| 295 | (save-restriction | 295 | (save-restriction |
| 296 | (narrow-to-region (point-min) (progn (goto-line (point-min)) | 296 | (narrow-to-region (point-min) (progn (goto-line (point-min)) |
| @@ -299,7 +299,8 @@ original message into it." | |||
| 299 | (setq from (mail-fetch-field "from") | 299 | (setq from (mail-fetch-field "from") |
| 300 | subject (mail-fetch-field "subject") | 300 | subject (mail-fetch-field "subject") |
| 301 | reply-to (mail-fetch-field "reply-to") | 301 | reply-to (mail-fetch-field "reply-to") |
| 302 | date (mail-fetch-field "date"))) | 302 | date (mail-fetch-field "date") |
| 303 | message-id (mail-fetch-field "message-id"))) | ||
| 303 | (setq to from) | 304 | (setq to from) |
| 304 | (pop-to-buffer "*mail*") | 305 | (pop-to-buffer "*mail*") |
| 305 | (mail nil | 306 | (mail nil |
| @@ -307,7 +308,10 @@ original message into it." | |||
| 307 | subject | 308 | subject |
| 308 | (let ((stop-pos (string-match " *at \\| *@ \\| *(\\| *<" from))) | 309 | (let ((stop-pos (string-match " *at \\| *@ \\| *(\\| *<" from))) |
| 309 | (concat (if stop-pos (substring from 0 stop-pos) from) | 310 | (concat (if stop-pos (substring from 0 stop-pos) from) |
| 310 | "'s message of " | 311 | "'s message " |
| 312 | (if message-id | ||
| 313 | (concat message-id " of ") | ||
| 314 | "of ") | ||
| 311 | date)) | 315 | date)) |
| 312 | nil | 316 | nil |
| 313 | buffer))) | 317 | buffer))) |
| @@ -366,7 +370,10 @@ original message into it." | |||
| 366 | (setq message-of | 370 | (setq message-of |
| 367 | (concat | 371 | (concat |
| 368 | (if stop-pos (substring from 0 stop-pos) from) | 372 | (if stop-pos (substring from 0 stop-pos) from) |
| 369 | "'s message of " | 373 | "'s message " |
| 374 | (if message-id | ||
| 375 | (concat message-id " of ") | ||
| 376 | "of ") | ||
| 370 | date))))) | 377 | date))))) |
| 371 | (news-setup | 378 | (news-setup |
| 372 | nil | 379 | nil |