1 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
3 * mail/rmailsum.el (rmail-summary-expunge-and-save): Use
4 rmail-expunge-and-save.
6 * mail/rmail.el (buffer-swapped-with): Var removed.
7 (rmail-buffer-swapped): New var.
8 (rmail-write-region-annotate): New function.
9 (rmail-save-buffer): New function.
11 * mail/rmailedit.el (rmail-cease-edit, rmail-edit-mode): Use
14 2009-01-22 Glenn Morris <rgm@gnu.org>
16 * mail/rmailkwd.el (rmail-last-label, rmail-last-multi-labels):
17 Move back to rmail.el.
18 * mail/rmail.el (rmail-last-label, rmail-last-multi-labels):
19 Move back here from rmailkwd.el.
21 * mail/rmailsum.el (rmail-message-labels-p): Move back to rmail.el.
22 * mail/rmail.el (rmail-message-labels-p): Move back here from
25 2009-01-22 Glenn Morris <rgm@gnu.org>
27 * mail/rmailout.el (rmail-update-summary): Declare.
29 * mail/rmailsum.el (rmail-summary-mode-map)
30 (rmail-summary-output-to-rmail-file): Use rmail-summary-output
31 rather than rmail-summary-output-to-babyl-file (renamed 2009-01-05).
32 (rmail-output-as-seen): Declare.
33 (rmail-summary-output): Also require rmailout non-interactively.
35 2009-01-22 Richard M Stallman <rms@gnu.org>
37 * mail/rmailout.el (rmail-output-to-r-mail-buffer): New function.
38 (rmail-output-as-babyl): Use it.
39 (rmail-output-to-rmail-buffer): New function.
40 (rmail-output-as-mbox): Use it.
41 (rmail-output-as-seen): Pass t to rmail-output-as-mbox.
42 (rmail-output): Call set-buffer later.
44 * mail/rmail.el (rmail-count-screen-lines, rmail-use-collection-buffer)
45 (rmail-use-viewer-buffer): Fns deleted.
46 Other functions reordered but not changed.
48 * mail/rmailsort.el (rmail-fetch-field): Function deleted.
49 Callers use rmail-get-header.
50 (rmail-sort-messages): Replace point-offset with
51 return-to-point, which can be nil.
52 Call rmail-swap-buffers-maybe after that.
53 Don't bind buffer-read-only. Bind inhibit-read-only.
54 Be more careful in making blank line at end of msg.
55 Don't enable undo at end.
57 * mail/rmail.el (rmail-ignored-headers): Hide more fields.
58 (rmail-next-undeleted-message): If we stay on same message,
59 don't change anything.
61 2009-01-22 Glenn Morris <rgm@gnu.org>
63 * mail/rmailmsc.el (rmail-show-message): Fix declaration.
65 * mail/rmailsum.el (rmail-output-read-rmail-file-name):
68 2009-01-22 Richard M Stallman <rms@gnu.org>
70 * mail/rmailkwd.el: Require rmail; delete compiler defvars.
71 Delete most declare-function calls.
72 (rmail-keywords, rmail-deleted-label, rmail-attributes): Vars deleted.
73 (rmail-attribute-p, rmail-keyword-p): Fns deleted.
74 (rmail-keywords, rmail-parse-file-keywords, rmail-install-keyword):
75 (rmail-force-make-label, rmail-quote-label-name): Fns deleted.
76 (rmail-last-label, rmail-last-multi-labels): Vars moved from rmail.el.
77 (rmail-read-label): Don't switch buffers, don't parse file keywords.
78 (rmail-set-label): Major rewrite.
79 (rmail-next-labeled-message): Call rmail-get-labels and match it.
81 * mail/rmailsum.el (rmail-message-labels-p): Function moved from
82 rmail.el and rewritten.
83 (rmail-message-recipients-p): Likewise.
84 (rmail-message-regexp-p): Likewise.
85 (rmail-message-recipients-p-1): New subroutine.
86 (rmail-message-regexp-p-1): Likewise.
87 (rmail-summary-by-topic): Use rmail-simplified-subject.
88 Delete subject-re variable.
89 (rmail-message-subject-p): Total rewrite.
90 (rmail-message-senders-p): Total rewrite.
91 (rmail-new-summary-1): Call FUNCTION in the main Rmail buffer.
92 (rmail-get-summary): Doc fix.
93 (rmail-create-summary-line): Renamed from
94 rmail-get-create-summary-line, and major rewrite.
95 (rmail-get-summary-labels): Doc fix.
96 (rmail-create-summary): Major rewrite. Construct line counts here.
97 (rmail-header-summary): Renamed from rmail-make-basic-summary-line.
98 Return list of two strings.
99 (rmail-summary-next-same-subject): Extract subjects and compare.
100 (rmail-summary-output): Renamed from rmail-summary-output-to-babyl-file.
102 (rmail-summary-output-as-seen): Renamed from rmail-summary-output.
103 Use rmail-output-as-seen.
104 (rmail-summary-construct-io-menu): Use rmail-summary-output.
106 * mail/rmail.el (basic-save-buffer): Protect buffer-modified flag
108 (rmail-show-message): Protect buffer-modified flag around swap.
109 (rmail-change-major-mode-hook): Likewise.
110 (rmail-use-collection-buffer, rmail-swap-buffers-maybe): Likewise.
112 * mail/rmail.el (rmail-error-bad-format): Always phrase the error as
113 about an invalid message.
114 (rmail-convert-file-maybe): Don't use rmail-error-bad-format.
115 (rmail-mode-map): Move rmail-widen to C-c C-w.
116 (rmail-mode-1): Don't alter mode-line-modified.
117 (rmail-perm-variables): Turn off undo in view buffer.
118 (rmail-variables): Turn off undo.
119 (rmail-show-message): Delete useless calls to `widen'.
120 Avoid passing thru temp buffer if we don't need
121 base64 or quoted printable decoding for whole message.
123 * mail/rmail.el (rmail-keywords): Variable deleted.
124 (rmail-last-label, rmail-last-multi-labels): Moved to rmailkwd.el.
125 (rmail-perm-variables): Don't mess with rmail-last-label.
126 Don't mess with rmail-keywords.
127 (rmail-copy-headers): Doc fix.
128 (rmail-set-header): New function.
129 (rmail-get-keywords): Doc fix.
130 (rmail-get-labels): New function.
131 (rmail-display-labels): Use rmail-get-labels.
132 (rmail-set-attribute): Mark rmail-buffer modified
133 if we change an attribute.
135 * mail/rmail.el (rmail-apply-in-message): New function.
136 (rmail-message-labels-p): Function moved to rmailsum.el.
137 (rmail-message-recipients-p, rmail-message-regexp-p): Likewise.
138 (rmail-current-subject, rmail-current-subject-regexp): Fns deleted.
139 (rmail-simplified-subject, rmail-simplified-subject-regexp): New fns.
140 (rmail-next-same-subject): Fetch each msg's subject and compare.
142 * mail/rmail.el (rmail-speedbar-move-message): Use rmail-output.
143 (rmail-construct-io-menu): Use rmail-output.
144 (rmail-default-rmail-file): Variable deleted.
145 (rmail-auto-file): Use rmail-output.
146 (rmail-mode-map): Remove rmail-output-to-babyl-file.
147 Add rmail-output-as-seen.
148 (rmail-mode): Update output commands in doc string.
150 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
152 * mail/rmail.el (buffer-swapped-with): New var, moved from files.el.
153 Add advice to basic-save-buffer to use it.
155 2009-01-22 Richard M Stallman <rms@gnu.org>
157 * mail/rmailedit.el (rmail-edit-mode): Bind buffer-swwapped-with to nil.
158 (rmail-edit-current-message): Save all of buffer as old text.
160 (rmail-cease-edit): Widen first.
161 Operate in the view buffer; copy edited text back to mbox buffer
162 and re-encode what was decoded to display the message.
163 (rmail-abort-edit): Widen first.
165 * mail/rmail.el (rmail-forwarded-attr-index): Doc fix.
166 (rmail-resent-attr-index): New variable.
167 (rmail-attr-array): Add r for resent.
168 (rmail-add-mbox-headers): Make 8 attributes.
169 (rmail-set-attribute): Extend attribute line if necessary.
171 * mail/rmail.el (rmail-widen): New command.
172 (rmail-mode-map): o is rmail-output, C-o is rmail-output-as-seen,
173 (rmail-mode-map): c-w is rmail-widen.
174 (rmail-change-major-mode-hook): Do nothing unless buffer-swapped-with.
175 (rmail-show-message): Downcase character-coding.
177 * mail/rmailout.el (rmail-output-decode-coding): New variable.
178 (rmail-delete-unwanted-fields): Greatly simplified.
179 (rmail-output-as-babyl): New function.
180 (rmail-convert-to-babyl-format): Considerably simplified:
181 assume just one message and don't worry about Content-Type.
182 (rmail-output-as-mbox): New function.
183 (rmail-output): Total rewrite.
184 (rmail-output-as-seen): New command.
185 (rmail-output-read-rmail-file-name): Function deleted.
186 (rmail-output-to-babyl-file): Function deleted.
187 (rmail-output-body-to-file): Don't set an attribute.
189 2009-01-22 Richard M Stallman <rms@gnu.org>
191 * mail/rmailedit.el (rmail-edit-saved-coding-system): Var deleted.
192 (rmail-edit-current-message, rmail-cease-edit):
193 Don't set it, or save-buffer-coding-system.
194 (rmail-edit-current-message): Change error message.
195 (rmail-cease-edit): Put `>' before `From ' lines in message.
197 * mail/rmail.el (rmail-variables): Don't set save-buffer-coding-system.
199 * mail/rmailsum.el (rmail-message-subject-p): Mark as broken.
200 (rmail-message-senders-p): Likewise.
201 (rmail-new-summary-1): Don't unswap -- search messages where they are.
203 * mail/rmail.el (rmail-display-labels): Doc fix.
204 (rmail-set-attribute): Deleted unused vars.
205 Bind inhibit-read-only, not buffer-read-only.
206 (rmail-message-attr-p): Doc fix.
207 (rmail-message-labels-p, rmail-message-recipients-p)
208 (rmail-message-regexp-p): Mark as broken.
210 * mail/rmailedit.el (rmail-edit-current-message): Don't call
211 rmail-header-show-headers.
212 (rmail-cease-edit): Force a blank line at end of edited message.
213 Call rmail-set-attribute properly.
214 Don't set buffer-read-only.
216 2009-01-22 Richard M Stallman <rms@gnu.org>
218 * mail/rmail.el (rmail-retried-attr-index, rmail-forwarded-attr-index):
219 Renamed from rmail-resent-attr-index and rmail-stored-attr-index.
220 (rmail-attr-array): Change names to `retried' and `forwarded'
221 (rmail-reply): Use rmail-answered-attr-index.
222 (rmail-forward): Use rmail-forwarded-attr-index.
223 (rmail-retry-failure): Use rmail-retried-attr-index.
225 * mail/rmail.el (rmail-get-header): Don't unswap,
226 just see data where it is.
227 (rmail-set-attribute): Don't unswap, just set the data where it is.
228 (rmail-show-message): Call rmail-swap-buffers-maybe before reswapping.
230 * mail/rmail.el (rmail-get-attr-names): Doc fix.
231 (rmail-is-text-p): Doc fix.
233 * mail/rmailout.el (rmail-output): Use rmail-buffers-swapped-p as
236 * mail/rmail.el (rmail-swap-buffers-maybe): Variable deleted.
237 All uses call the function instead.
239 * mail/rmail.el (rmail-save): Function deleted.
240 (rmail-mode-map): Don't bind C-x C-s.
241 (rmail-mode-1): Don't set up write-region-annotate-functions.
242 (rmail-write-region-annotate): Function deleted.
243 (rmail-change-major-mode-hook): Set buffer-swapped-with.
244 (rmail-use-collection-buffer): Likewise.
245 (rmail-show-message): Likewise.
247 * mail/rmail.el (rmail-swap-buffers-maybe): Go to rmail-buffer before
249 (rmail): Call rmail-swap-buffers-maybe only if already in Rmail mode.
251 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
253 * mail/rmail.el (rmail-save): New function.
255 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
257 * mail/rmail.el (rmail-get-new-mail): Call rmail-swap-buffers-maybe.
258 (rmail-get-new-mail-1): Adjust restriction after calling
259 rmail-insert-inbox-text.
260 (rmail-add-mbox-headers): Use save-restriction.
261 (rmail-expunge-and-save): Call rmail-swap-buffers-maybe before
263 (rmail-quit): Handling expunging manually, instead of calling
264 rmail-expunge-and-save.
265 (rmail-next-undeleted-message): If no other message can be shown,
266 show the current one.
267 (rmail-attr-array): Doc fix.
268 (rmail-add-header): Function deleted.
269 (rmail-add-mbox-headers): Insert header directly instead of
270 calling rmail-add-header.
271 (rmail-display-labels): Add leading space to attribute string.
272 (rmail-set-attribute): Call rmail-swap-buffers-maybe. Insert
273 header directly instead of calling rmail-add-header.
274 (rmail): Ensure that rmail-mode-hook is run.
276 2009-01-22 Juanma Barranquero <lekktu@gmail.com>
278 * mail/rmail.el (rmail-require-mime-maybe): Fix arguments of
281 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
283 * mail/rmail.el (rmail): Call rmail-swap-buffers-maybe.
284 (rmail-search): Call rmail-swap-buffers-maybe.
285 (rmail-expunge): Save point if no expunging was done.
287 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
289 * mail/rmailout.el (rmail-output-to-babyl-file): Rewrite, assuming mbox
291 (rmail-convert-to-babyl-format, rmail-nuke-pinhead-header): New
292 functions, moved from rmail.el.
294 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
296 * mail/rmailout.el (rmail-output): Rewrite to handle mbox format.
297 (rmail-output-to-babyl-file): Renamed from
298 rmail-output-to-rmail-file.
300 * mail/rmail.el: All callers to rmail-output-to-rmail-file changed to
301 rmail-output-to-babyl-file.
303 * mail/rmail.el: All callers to rmail-output-to-rmail-file changed to
304 rmail-output-to-babyl-file.
306 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
308 * mail/rmailout.el (rmail-output-to-rmail-file): Don't call
309 rmail-insert-rmail-file-header.
311 * mail/rmail.el (rmail-insert-rmail-file-header): Function deleted.
312 (rmail-decode-babyl-format): Function deleted.
313 (rmail-perm-variables): Don't call rmail-parse-file-inboxes.
314 (rmail-parse-file-inboxes): Function deleted.
315 (rmail-get-new-mail-1): Function merged into rmail-get-new-mail.
316 (rmail-get-new-mail-2): Renamed to rmail-get-new-mail-1.
317 (rmail-get-new-mail-filter-spam): Call rmail-spam-filter, not
319 (rmail-convert-to-babyl-format): Function deleted.
320 (rmail-nuke-pinhead-header): Function deleted.
321 (rmail-reply): Parsing headers in mbox format. Call
322 rmail-dont-reply-to instead of rmail-dont-reply-to.
324 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
326 * mail/rmail.el (rmail-only-expunge): Swap buffers at the beginning.
327 (rmail-expunge): Pass new optional arg to rmail-only-expunge.
328 (rmail-expunge-and-save): Don't reset view buffer.
330 * mail/rmailsum.el (rmail-summary-header): Deleted.
331 (rmail-get-create-summary-line): Don't insert a summary line into
334 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
336 * mail/rmail.el (rmail-convert-babyl-to-mbox): Reinitialize rmail-mode
337 variables after conversion.
339 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
341 * mail/rmailsort.el (rmail-sort-messages): Insert two newlines at the
342 end of the message if they do not exist.
344 * mail/rmailedit.el (rmail-edit-current-message): Remove deleted
345 function rmail-msg-is-pruned.
347 * mail/rmail.el (rmail-get-header): Call rmail-swap-buffers-maybe.
348 (rmail-retry-failure): Remove call to non-existent function
350 (rmail-message-labels-p): New function.
352 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
354 * mail/rmailsort.el (rmail-sort-messages): Don't call removed function
355 rmail-header-show-headers.
357 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
359 * mail/rmail.el (rmail-only-expunge): Pass correct arg to
360 rmail-show-message-maybe.
362 * mail/rmailsum.el (rmail-get-summary-labels): If no attribute headers
363 are found, use the empty string.
364 (rmail-summary): Call rmail-summary-beginning-of-message
365 (rmail-new-summary): Check for rmail-summary-mode in the current
366 buffer, not in the rmail buffer.
367 (rmail-summary-goto-msg): Use rmail-show-message-maybe.
369 2009-01-22 Paul Reilly <pmr@pajato.com>
371 * mail/rmail.el: Add support for save-buffer.
373 2009-01-22 Paul Reilly <pmr@pajato.com>
375 * mail/rmail.el (rmail):
376 Remove a redundant message counter reset call; try to
377 minimize the attempts to show a message (ideally it should be done
380 (rmail-convert-babyl-to-mbox): Set up the global message variables
381 after inserting the converted mbox file into the Rmail buffer; avoid
382 an unecessary message display function call.
384 (rmail-show-message-maybe): Use the current message number when the
385 optional argument is not passed.
387 2009-01-22 Paul Reilly <pmr@pajato.com>
389 * mail/rmail.el (rmail): Check for babyl conversion early; ignore
392 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
394 * mail/rmail.el (rmail-tool-bar-map): Initialize it unconditionally.
396 2009-01-22 Paul Reilly <pmr@pajato.com>
398 * mail/rmail.el, mail/rmailsum.el:
399 Next step in the Rmail/mbox support: getting basic summary support
402 2009-01-22 Paul Reilly <pmr@pajato.com>
405 First pass at handling decoding the mbox message into the view buffer.
407 2009-01-22 Paul Reilly <pmr@pajato.com>
410 The Rmail/mbox merge has been abandoned in favor of a restart using
411 the current rmail.el file. A comprehensive list of changes will be
412 supplied when rmail.el is morphed back into rmail.el
414 The current status is that rmail.el supports basic Rmail
415 navigation (no summary support) and shows the current message in a
416 special buffer using buffer-swap-text. No decoding is done yet. That
419 2009-01-22 Glenn Morris <rgm@gnu.org>
421 * mail/rmailsort.el (rmail-dont-reply-to, rmail-desc-get-marker-end)
422 (rmail-desc-get-marker-start): Remove declarations of undefined
424 (rmail-select-correspondent): Use rmail-dont-reply-to from mail-utils
425 rather than non-existent rmail-dont-reply-to.
426 (rmail-sort-messages): Use rmail-desc-get-start, rmail-desc-get-end
427 rather than non-existent `marker-' functions.
429 * mail/rmailkwd.el (rmail-maybe-set-message-counters)
430 (rmail-set-message-deleted-p):
431 * mail/rmailmsc.el (rmail-parse-file-inboxes):
432 * mail/rmailsum.el (rmail-output-read-rmail-file-name):
433 Remove unused declarations.
435 * mail/rmail.el (rmail-spam-filter): Remove declaration of undefined
437 (rmail-use-spam-filter): Remove un-needed variable declaration.
438 Doc fix for actual definition.
439 (rmail-get-new-mail): Call rmail-spam-filter rather than non-existent
441 (rmail-spam-filter): Autoload it.
443 2009-01-22 Paul Reilly <pmr@pajato.com>
445 * mail/rmail.el (rmail-get-new-mail): When there are no new messages,
446 invoke a redisplay of the current message.
448 2009-01-22 Paul Reilly <pmr@pajato.com>
450 * mail/rmail.el, mail/rmailout.el:
451 Fix the expunge command so that the current message index is correct.
453 * mail/rmail.el (rmail-expunge-counter): New variable.
454 (rmail-set-attribute): Canonicalize the calling sequence to index,
456 (rmail-show-message, rmail-delete-message)
457 (rmail-undelete-previous-message, rmail-delete-forward)
458 (rmail-mark-message): Use the new canonical calling sequence.
459 (rmail-only-expunge): Use the expunge counter to update the current
461 (rmail-expunge-callback): Simplify. Just count the expunged messages
462 with a lower index than the current message index.
464 * mail/rmailout.el (rmail-output-body-to-file): Use the canonical
467 2009-01-22 Paul Reilly <pmr@pajato.com>
469 * mail/rmail.el: Fix the expunge operation.
471 * mail/rmail.el (rmail-only-expunge): Manage rmail-total-messages in the
472 callback handler; remove the extra show message call.
473 (rmail-expunge-callback): Rewrite to handle all possible conditions.
475 2009-01-22 Paul Reilly <pmr@pajato.com>
477 * mail/rmail.el, mail/rmailkwd.el, mail/rmailmsc.el, mail/rmailsort.el:
478 * mail/rmailsum.el: Resolve all byte compiler warnings and enable
479 IMAP/movemail support.
481 2009-01-22 Henrik Enberg <enberg@printf.se>
483 * mail/rmailout.el (rmail-output): Bind buffer-file-coding-system even
484 when rmail-enable-mime is nil.
486 * mail/rmail.el (rmail-perm-variables): Make sure rmail-desc-vector is
488 (rmail): Don't bind coding-system-for-read.
489 (rmail-revert): Likewise.
490 (rmail-variables): Don't set buffer-file-coding-system.
491 (rmail-show-message): Likewise.
493 2009-01-22 Henrik Enberg <enberg@printf.se>
495 * mail/rmail.el (rmail-highlight): New face.
496 (rmail-highlight-face): Use it.
498 2009-01-22 Alex Schroeder <alex@gnu.org>
500 * mail/rmailsum.el (rmail-summary-kill-label): Call rmail-kill-label
501 with only one argument.
503 * mail/rmail.el (rmail-process-new-messages): Handle missing From
506 2009-01-22 Henrik Enberg <enberg@printf.se>
508 * mail/rmailedit.el (rmail-edit-map): Initialize at definition.
511 * mail/rmail.el (rmail-narrow-to-header): Don't end error message with
514 * mail/rmailedit.el (rmail-edit-current-message):
515 Use rmail-head-show-headers instead of rmail-toggle-header.
516 (rmail-cease-edit): Likewise. Simplify.
518 2009-01-22 Alex Schroeder <alex@gnu.org>
520 * mail/rmailkwd.el (rmail-read-label): Since rmail-keywords is a list
521 of symbols, we need to transform it into an alist for completion.
523 2009-01-22 Alex Schroeder <alex@gnu.org>
525 * mail/rmailsum.el (rmail-summary-kill-label): Use rmail-kill-label
526 instead of calling rmail-set-label, which will call rmail-make-label
529 2009-01-22 Alex Schroeder <alex@gnu.org>
531 * mail/rmailkwd.el (rmail-label-obarray): Delete.
532 (rmail-attributes): Use an ordinary list of symbols.
533 (rmail-deleted-label): Use an ordinary symbol.
534 (rmail-keywords): Doc, initial value nil.
535 (rmail-keywords, rmail-keyword-init): Delete defuns.
536 (rmail-attribute-p, rmail-keyword-p, rmail-make-label): Simplify.
537 (rmail-keyword-register-keywords, rmail-install-keyword):
539 (rmail-register-keywords, rmail-register-keyword): Replacements.
540 (rmail-add-label, rmail-kill-label): Call set-label with a symbol.
541 (rmail-read-label): Return a string.
542 (rmail-set-label): Rewrote. Call rmail-display-labels always.
544 * mail/rmail.el (qp): No longer required.
545 (rmail-convert-file): Don't rmail-enable-multibyte.
546 (rmail-decode-mbox-format): Delete.
547 (rmail-convert-mbox-format): No converting of qp headings, no
548 decoding of the message body.
550 (rmail-maybe-set-message-counters): Delete.
551 (rmail-next-undeleted-message): Store original message until the
552 end instead of relying on rmail-current-message.
554 (rmail-process-new-messages): Use rmail-register-keywords.
556 2009-01-22 Alex Schroeder <alex@gnu.org>
558 * mail/rmail.el (qp): No longer require it.
559 (rmail-convert-file): Doc. Remove useless test for coding system
560 header. Don't call rmail-decode-mbox-format. Just call
561 rmail-convert-mbox-format.
562 (rmail-decode-mbox-format): Delete.
563 (rmail-convert-mbox-format): Don't translate quoted printable
564 headers. Don't handle quoted-printable content-transfer-encoding.
565 No longer add x-coding-system header.
566 (rmail-maybe-set-message-counters): Delete.
567 (rmail-next-undeleted-message): Add caching of rmail-current-message
568 such that it doesn't break when rmail-show-message switches buffers.
570 2009-01-22 Alex Schroeder <alex@gnu.org>
572 * mail/rmail.el (rmail-convert-mbox-format): Handle mails without
575 2009-01-22 Henrik Enberg <enberg@printf.se>
577 * mail/rmail.el (rmail-first-unseen-message): Make sure to return the
578 last message if no unseen message was found. Doc fix.
579 (rmail): Call rmail-first-unseen-message properly.
580 Remove commented out code.
581 (rmail-show-message): Maybe call rmail-unknown-mail-followup-to.
582 (rmail-revert): Simplify.
584 2009-01-22 Alex Schroeder <alex@gnu.org>
586 * mail/rmailmm.el: New file, based on Alexander Pohoyda's code.
588 2009-01-22 Henrik Enberg <enberg@printf.se>
590 * mail/rmail.el (rmail-next-message):
591 Don't call rmail-maybe-set-message-counters. Use with-current-buffer.
593 * mail/rmailkwd.el (rmail-next-labeled-message):
594 Don't call rmail-maybe-set-message-counters. Use with-current-buffer.
596 2009-01-22 Henrik Enberg <enberg@printf.se>
598 * mail/rmailsum.el (rmail-summary-show-message): Reformat.
599 (rmail-summary-get-summary-line):
600 Rename from `rmail-summary-get-summary'. Update callers.
601 (rmail-summary-mode-map): Initialize at definition, Doc fix.
602 (rmail-summary-undelete-many): Simplify.
604 2009-01-22 Henrik Enberg <enberg@printf.se>
606 * mail/rmailsum.el (rmail-summary-deleted-p): Fix misplaced paren.
607 (rmail-summary-undelete): Simplify.
609 2009-01-22 Henrik Enberg <enberg@printf.se>
611 * mail/rmailsum.el (rmail-summary-get-sender): Handle a nil value of
612 rmail-user-mail-address-regexp.
614 * mail/rmail.el (rmail-unknown-mail-followup-to): Likewise.
616 * mail/rmailout.el (rmail-delete-unwanted-fields): Handle mbox format.
617 (rmail-output): Error when target is a BABYL file. Handle MIME
618 charset. Make sure headers are properly hidden after output.
619 Avoid pointless with-current-buffer call.
621 2009-01-22 Alex Schroeder <alex@gnu.org>
623 * mail/rmailsum.el (rmail-summary-edit-map): Rewrite.
625 2009-01-22 Alex Schroeder <alex@gnu.org>
627 * mail/rmail.el (rmail-narrow-to-non-pruned-header): Delete.
628 (rmail-unknown-mail-followup-to, rmail-retry-failure): No longer
629 call rmail-narrow-to-non-pruned-header and replace
630 mail-fetch-field with rmail-header-get-header because that one
631 ignores the intangible property when searching.
632 (rmail-show-message): Simplify x-coding-system handling.
633 (rmail-redecode-body): No longer call rmail-header-show-headers
634 because rmail-header-get-header handles the intanglible property.
635 (rmail-reply): Simplify code at the price of some efficiency when
636 setting up the variable bindings. No longer toggle visibility of
637 headers, because rmail-header-show-headers is no longer necessary.
639 * mail/rmailsum.el (rmail-user-mail-address-regexp): Compute a default
640 value instead of assuming nil. Doc.
641 (rmail-summary-get-sender): Compare with rmail-user-mail-address-regexp
642 instead of computing the default value.
644 * mail/rmail.el (rmail-convert-mbox-format): Decode messages with
645 content-transfer-encoding quoted-printable, because it's easy to do.
646 (rmail-unknown-mail-followup-to): Compare with
647 rmail-user-mail-address-regexp instead of computing the default value.
649 2009-01-22 Henrik Enberg <enberg@printf.se>
651 * mail/rmail.el (rmail-decode-mbox-format):
652 Rename from `rmail-decode-mail-file'.
653 (rmail-process-new-messages): Don't add missing headers here.
654 (rmail-convert-mbox-format): Rename from `rmail-decode-messages'.
655 Add missing headers here. Remove FROM and TO arguments.
656 (rmail-get-new-mail): Simplify.
657 (rmail-convert-file): New function.
658 (rmail-revert): Use it.
659 (rmail): Change logic for avoiding selecting new messages twice.
660 (rmail-display-labels): Avoid space in mode-line if there are no
663 2009-01-22 Henrik Enberg <enberg@printf.se>
665 * mail/rmail.el (rmail): Go back to using find-file for reading in the
666 mail file. This avoids gratuitous modification of the file.
667 (rmail-decode-region): Doc string, cleanup.
668 (rmail-decode-by-content-type): New function.
669 (rmail-decode-messages): Use it. Add FROM and TO args and only
670 process messages in that region.
671 (rmail-get-new-mail): Call `rmail-decode-region' before
672 `rmail-process-new-messages'.
673 (rmail-fontify-message): Reformat, Doc String.
674 (rmail-displayed-headers): Default value set to nil.
675 (rmail-inbox-alist): Add version tag.
676 (rmail-count-screen-lines): Doc string.
677 (rmail-process-new-messages): Use rmail-desc-default-attrs.
679 2009-01-22 Alex Schroeder <alex@gnu.org>
681 * mail/rmail.el (rmail-decode-messages): Decode encoded-words in
682 Subject and From header.
683 (rmail-process-new-messages): Don't decode encoded words here.
685 2009-01-22 Henrik Enberg <enberg@printf.se>
687 * mail/rmail.el (rmail-process-new-messages): Don't decode messages
688 here, don't lose on missing subject field.
689 (rmail-decode-messages): New function.
691 (rmail-get-new-mail): Likewise.
693 * mail/rmailsum.el (rmail-summary-get-sender): Narrow to current
694 message before extracting headers.
696 2009-01-22 Alex Schroeder <alex@gnu.org>
698 * mail/rmailedit.el (rmail-abort-edit): Don't call
699 rmail-highlight-headers anymore.
701 * mail/rmail.el (rmail-next-undeleted-message): Simplify.
702 (rmail-what-message): Delete since it was never called.
703 (rmail-narrow-to-header): Use the same error message as
704 rmail-header-get-limit.
705 (rmail-highlight-face): Doc.
706 (rmail-font-lock-keywords): Add the stuff necessary to make
707 rmail-highlight-headers obsolete.
708 (rmail-toggle-header, rmail-show-message): Don't call
709 rmail-highlight-headers anymore.
710 (rmail-highlight-headers): Delete.
712 * mail/rmail.el (rmail-msgbeg, rmail-msgend): Fix and make obsolete.
713 (rmail-process-new-messages): Use mail-decode-encoded-word-string
714 on the subject. Requires mail-parse from Gnus.
715 (rmail-highlight-headers): Doc.
717 2009-01-22 Henrik Enberg <enberg@printf.se>
719 * mail/rmailsum.el (rmail-message-senders-p): Fix typo.
721 * mail/rmail.el (rmail-process-new-messages): Simplify.
722 (rmail-decode-quoted-printable): Delete unused function.
723 (rmail-hex-string-to-integer): Likewise.
724 (rmail-hex-char-to-integer): Likewise.
725 (rmail-decode-mail-file): Rename from `rmail-decode-mbox-file'.
726 (rmail-delete-inbox-files): New function factored out of
727 `rmail-get-new-mail'.
728 (rmail-get-new-mail): Use it.
729 (rmail-get-inbox-files): Rename from `rmail-get-inbox-list'.
731 2009-01-22 Alex Schroeder <alex@gnu.org>
733 * mail/rmail.el (rmail-get-new-mail): Doc.
734 (rmail-get-inbox-list): Doc.
735 (rmail-require-mime-maybe): Simplify.
736 (rmail-mode-map): Rewrite using a local binding to agree
737 with "(elisp)Tips for Defining".
739 2009-01-22 Henrik Enberg <enberg@printf.se>
741 * mail/rmailsum.el (rmail-summary-get-sender): Doc fix.
743 * mail/rmail.el (rmail-redecode-body): Simplify.
744 (rmail-get-inbox-list): Stop on name conflict.
745 (rmail-show-message): Set `rmail-view-buffer' to `rmail-buffer` if
746 not using MIME. Make sure we go to `point-min' before setting
747 window point as searching for coding header might move point.
749 2009-01-22 Alex Schroeder <alex@gnu.org>
751 * mail/rmail.el (rmail-inbox-alist): Doc.
753 2009-01-22 Henrik Enberg <enberg@printf.se>
755 * mail/rmailsum.el (rmail-summary-get-sender): New function.
756 (rmail-summary-get-summary): Use it. Make sure sender is no
757 longer than 25 characters.
758 (rmail-summary-get-line-count): Doc fix.
759 (rmail-summary-get-summary-attributes): Likewise.
761 * mail/rmailmsc.el (set-rmail-inbox-list): Rewrite to only set inbox
762 list temporarily for a session.
764 2009-01-22 Alex Schroeder <alex@gnu.org>
766 * mail/rmail.el (rmail-show-message): Minor changes: comments.
768 * mail/rmailsum.el (rmail-summary-get-summary): Fix display of keywords.
769 (rmail-summary-rmail-update): Minor changes: If to when, comments,
772 2009-01-22 Henrik Enberg <enberg@printf.se>
774 * mail/rmail.el (rmail-inbox-alist): New variable.
775 (rmail-get-file-inbox-list): New function.
776 (rmail-perm-variables): Use it.
777 (rmail-parse-file-inboxes): Delete.
779 2009-01-22 Alex Schroeder <alex@gnu.org>
781 * mail/rmailsum.el (rmail-summary-mode): Fix typo in doc string and
783 (rmail-summary-update-attribute): Delete.
784 (rmail-summary-update): Simple defun regenerates the entire
786 (rmail-summary-by-topic): Don't use rmail-current-subject-regexp.
787 (rmail-message-subject-p): Use rmail-header-get-header instead of
789 (rmail-summary-by-senders): Default to current sender.
791 * mail/rmailkwd.el (rmail-set-label): Call rmail-summary-update at the
794 * mail/rmail.el (rmail-set-attribute): Call rmail-summary-update
795 instead of just updating the attributes.
797 2009-01-22 Henrik Enberg <enberg@printf.se>
799 * mail/rmail.el (rmail-process-new-messages):
800 Use rmail-header-get-header instead of mail-fetch-field.
802 * mail/rmailout.el (rmail-output-read-file-name): Simplify.
803 (rmail-output): Likewise.
805 2009-01-22 Alex Schroeder <alex@gnu.org>
807 * mail/rmailsum.el (rmail-make-summary-line-1)
808 (rmail-make-basic-summary-line): Delete.
809 (rmail-summary-kill-label): Only ask for existing labels.
811 * mail/rmailkwd.el (rmail-add-label): Doc fix.
812 (rmail-kill-label): Only read labels that the current message has.
813 (rmail-read-label): Possibly only ask for existing labels.
814 (rmail-set-label): Display labels at the end.
816 * mail/rmailedit.el (rmail-cease-edit): Bugfix.
818 * mail/rmail.el (rmail-set-attribute): Move comment into document.
820 2009-01-22 Henrik Enberg <enberg@printf.se>
822 * mail/rmail.el (rmail-get-inbox-list): New function.
823 (rmail-get-new-mail): Use it. Only call `rmail-show-message' on
824 file-error condition if no new messages are found.
825 (rmail-get-sender): Delete.
826 (rmail-process-new-messages): Use mail-fetch-field instead.
827 (rmail-show-message): Cleanup.
828 (rmail-decode-mbox-file): New function.
829 (rmail): Use it. Only call `rmail-show-message' if no new mail was
832 * mail/rmailsum.el (rmail-summary-get-new-mail): Only call
833 `rmail-summary-goto-msg' if no new mail was found.
835 2009-01-22 Alex Schroeder <alex@gnu.org>
837 * mail/rmail.el (rmail): Only insert the file if it actually exists.
838 (rmail-show-message): Do not display labels if there are no
839 messages. This corrects the mistake if visiting an empty file,
840 but it doesn't fix the situation where you delete the all messages
841 and expunge them. This may leave the labels of the last message
844 2009-01-22 Henrik Enberg <enberg@printf.se>
846 * mail/rmailkwd.el: Don't require rmail.
848 * mail/rmail.el (rmail-process-new-messages): Don't require rmailkwd
849 here, do it at toplevel instead.
850 (rmail-process-new-messages): Add an X-Coding-System
851 header if one doesn't exist.
853 2009-01-22 Alex Schroeder <alex@gnu.org>
855 * mail/rmailsum.el (rmail-summary-by-labels): No longer concatenate
856 regexp with commas because of recent change to
857 rmail-message-labels-p.
858 (rmail-summary-rmail-update): Replace rmail-message-labels-p test
859 with simple rmail-desc-get-keywords.
861 * mail/rmail.el (rmail-message-labels-p):
862 Rewrite using rmail-desc-get-keywords.
863 (rmail-auto-file): Rewrite test for "filed" using
864 rmail-desc-get-keywords.
866 * mail/rmailsum.el (rmail-summary-font-lock-keywords): Fix regular
867 expression for unread messages.
868 (rmail-summary-mode): Add documentation for the filtering commands.
869 (rmail-summary-mode-map): Add keybinding for rmail-summary-by-sender.
870 (rmail-summary-get-summary): Don't show attributes, only
871 user-defined keywords.
873 * mail/rmailedit.el (rmail-cease-edit): Do not adjust the marker of the
876 2009-01-22 Henrik Enberg <enberg@printf.se>
878 * mail/rmailout.el (rmail-output-read-file-name): Make sure search in
879 executed in `rmail-buffer'.
880 (rmail-output-to-rmail-file): Use `rmail-output-read-file-name'.
881 (rmail-output-read-rmail-file-name): Delete.
883 * mail/rmailsum.el (rmail-summary-output-to-rmail-file):
884 Use `rmail-output-read-file-name'.
885 (rmail-summary-get-message-at-point): Handle 5-digit message ids.
887 * mail/rmail.el (rmail-process-new-messages): Require rmailkwd.
888 (rmail-ignored-headers): Add "Original-Recipient".
890 2009-01-22 Alex Schroeder <alex@gnu.org>
892 * mail/rmail.el (rmail-display-labels): Use identity instead of lambda.
894 * mail/rmailsum.el (rmail-summary-font-lock-keywords):
896 (rmail-summary-get-summary): Add labels again.
898 2009-01-22 Alex Schroeder <alex@gnu.org>
900 * mail/rmail.el (rmail-nuke-pinhead-header, rmail-reformat-message)
901 (rmail-msg-restore-non-pruned-header, rmail-msg-prune-header):
903 (rmail-narrow-to-header): Fix typo, error if we cannot find the
906 * mail/rmailsum.el (rmail-message-subject-p, rmail-message-senders-p):
907 Use mail-fetch-field instead of mail-header-get-header.
908 (rmail-summary-next-same-subject): Simplify.
910 * mail/rmail.el (rmail): Create the buffer using file-name-nondirectory.
911 (rmail-mode-map): Bind j to rmail-show-message instead of rmail-message.
913 2009-01-22 Henrik Enberg <enberg@printf.se>
915 * mail/rmailsum.el (rmail-new-summary): Make sure summary buffer is
916 current when selecting message.
917 (rmail-summary-browse-body): Delete.
918 (rmail-summary-rmail-update, rmail-summary-get-message-at-point)
919 (rmail-summary-goto-msg): Use string-to-number.
920 (rmail-summary-toggle-header, rmail-summary-add-label)
921 (rmail-summary-kill-label): Use with-current-buffer.
922 (rmail-summary-previous-msg): Add docstring.
924 2009-01-22 Alex Schroeder <alex@gnu.org>
926 * mail/rmail.el (rmail-ignored-headers): Merge several terms using
927 grouping, add simple "from " (without a colon), and several
929 (rmail): Automatically convert BABYL files to mbox files.
930 (rmail-decode-babyl-format): Delete, since conversion is handled
933 * unrmail.el (unrmail): Use regular expression search to find
934 message separators such that the fake separators inserted by
935 rmime.el are not matched. The sections added by rmime.el are removed.
937 2009-01-22 Henrik Enberg <enberg@printf.se>
939 * mail/rmail.el: Don't require `rmailout' and `rmailsum'.
941 * mail/rmailsum.el (rmail-summary-get-line-count): Rightalign line
943 (rmail-summary-get-summary): Display 5-digit message ids.
944 (rmail-summary-goto-msg): Adjust for 5-digit ids.
945 (rmail-summary-font-lock-keywords): Likewise.
947 * mail/rmail.el (rmail-url-map, rmail-activate-urls)
948 (rmail-visit-url-at-mouse, rmail-visit-url-at-point, rmail-browse-body):
949 Delete, don't duplicate goto-address functionality.
951 2009-01-22 Richard M. Stallman <rms@gnu.org>
953 * mail/rmail.el (rmail): Convert Babyl files using decode-babyl-file.
954 (rmail-use-spam-filter): Add defvar.
956 * mail/unrmail.el: Mostly rewritten. Parses the file
957 directly without calling any functions in Rmail.
958 (batch-convert-babyl, convert-babyl-file, decode-babyl-file)
959 (decode-babyl): New functions.
960 (unrmail, batch-unrmail): Now aliases.
962 2009-01-22 Richard M. Stallman <rms@gnu.org>
964 * mail/rmail.el (rmail-message-vector, rmail-deleted-vector)
965 (rmail-msgref-vector, rmail-summary-vector): Delete vars, and
966 all code to initialize them too.
967 (rmail-forget-messages): Delete function. Change callers.
968 (rmail-set-message-counters): Delete function. Change callers.
969 (rmail-count-new-messages): Delete function. Change callers.
970 (rmail-set-message-counters-counter): Likewise.
971 (rmail-maybe-set-message-counters): Now no-op.
972 (rmail-message-deleted-p, rmail-set-message-deleted-p): Delete Fns.
973 (rmail-msg-number-after-expunge): Delete Fn.
974 (rmail): Delete excess closeparen.
975 (rmail-initialize-messages): Doc fix.
976 (rmail-expunge-confirmed): Update to use rmail-desc-deleted-p.
978 * mail/rmailsum.el (rmail-make-summary-line): Delete function.
979 (rmail-new-summary): Make it work once again as in old version.
980 (rmail-summary-get-summary): Call rmail-summary-line-decoder.
982 2009-01-22 Richard M. Stallman <rms@gnu.org>
984 * mail/rmail.el (rmail): Error if file is Babyl format.
985 (rmail-process-new-messages, rmail-reply-callback, rmail-mark-message)
986 (rmail-narrow-to-message): Doc fix.
987 (rmail-reply, rmail-forward, rmail-resend, rmail-retry-failure)
988 (rmail-browse-body): Immediate error if file is empty.
990 * mail/rmail.el (rmail-convert-file, rmail-insert-rmail-file-header)
991 (rmail-convert-to-babyl-format): Delete functions.
992 (rmail-mode): Don't call rmail-convert-file.
994 * net/browse-url.el (browse-url-activate-urls): Add autoload.
996 * mail/rmailedit.el (rmail-edit-current-message):
997 Immediate error if file is empty.
999 * mail/rmailkwd.el (rmail-read-label, rmail-set-label):
1000 Immediate error if file is empty.
1001 (rmail-parse-file-keywords): Delete function.
1004 ;; coding: iso-2022-7bit
1005 ;; add-log-time-zone-rule: t
1008 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1010 This file is part of GNU Emacs.
1012 GNU Emacs is free software: you can redistribute it and/or modify
1013 it under the terms of the GNU General Public License as published by
1014 the Free Software Foundation, either version 3 of the License, or
1015 (at your option) any later version.
1017 GNU Emacs is distributed in the hope that it will be useful,
1018 but WITHOUT ANY WARRANTY; without even the implied warranty of
1019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1020 GNU General Public License for more details.
1022 You should have received a copy of the GNU General Public License
1023 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
1025 ;; arch-tag: e3ca2b68-f400-4f0d-b95f-83a4b0f5d0c4