1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00
Commit Graph

40 Commits

Author SHA1 Message Date
Richard M. Stallman
125d2ddf70 (pmail-variables): Don't set save-buffer-coding-system. 2008-12-23 03:56:10 +00:00
Richard M. Stallman
4d1388b457 (pmail-display-labels): Doc fix.
(pmail-set-attribute): Deleted unused vars.
Bind inhibit-read-only, not buffer-read-only.
(pmail-message-attr-p): Doc fix.
(pmail-message-labels-p, pmail-message-recipients-p)
(pmail-message-regexp-p): Mark as broken.
2008-12-23 03:47:32 +00:00
Richard M. Stallman
273f29683f (pmail-retried-attr-index, pmail-forwarded-attr-index):
Renamed from pmail-resent-attr-index and pmail-stored-attr-index.
(pmail-attr-array): Change names to `retried' and `forwarded'

(pmail-get-header): Don't unswap, just look at the data where it is.
(pmail-set-attribute): Don't unswap, just set the data where it is.
(pmail-reply): Use pmail-answered-attr-index.
(pmail-forward): Use pmail-forwarded-attr-index.
(pmail-retry-failure): Use pmail-retried-attr-index.

(pmail-show-message): Call pmail-swap-buffers-maybe before reswapping.

(pmail-get-attr-names): Doc fix.
(pmail-is-text-p): Doc fix.
2008-12-22 21:16:43 +00:00
Richard M. Stallman
dc8e167ff7 (pmail-swap-buffers-maybe): Variable deleted.
All uses call the function instead.

(pmail-save): Function deleted.
(pmail-mode-map): Don't bind C-x C-s.
(pmail-mode-1): Don't set up write-region-annotate-functions.
(pmail-write-region-annotate): Function deleted.
(pmail-change-major-mode-hook): Set buffer-swapped-with.
(pmail-use-collection-buffer): Likewise.
(pmail-show-message): Likewise.

(pmail-swap-buffers-maybe): Go to pmail-buffer before
testing anything.
(pmail): Call pmail-swap-buffers-maybe only if already in Pmail mode.
2008-12-22 19:54:59 +00:00
Chong Yidong
ea9c64a81a (pmail-save): New function. 2008-12-22 00:05:51 +00:00
Chong Yidong
5e1b5cde6f (pmail): Ensure that pmail-mode-hook is run. 2008-12-20 21:40:38 +00:00
Chong Yidong
07be10d88f (pmail-add-header): Function deleted.
(pmail-add-mbox-headers): Insert header directly instead of
calling pmail-add-header.
(pmail-display-labels): Add leading space to attribute string.
(pmail-set-attribute): Call pmail-swap-buffers-maybe.  Insert
header directly instead of calling pmail-add-header.
2008-12-20 07:03:06 +00:00
Chong Yidong
a8eed59f9a (pmail-expunge-and-save): Call pmail-swap-buffers-maybe before
saving.
(pmail-quit): Handling expunging manually, instead of calling
pmail-expunge-and-save.
(pmail-next-undeleted-message): If no other message can be shown,
show the current one.
2008-12-20 04:29:26 +00:00
Chong Yidong
2b8e6500ca (pmail-get-new-mail): Call pmail-swap-buffers-maybe.
(pmail-get-new-mail-1): Adjust restriction after calling
pmail-insert-inbox-text.
(pmail-add-mbox-headers): Use save-restriction.
2008-12-20 04:07:07 +00:00
Juanma Barranquero
6d49b2d88f * pmail.el (pmail-require-mime-maybe): Fix arguments of `display-warning'. 2008-12-15 15:40:53 +00:00
Chong Yidong
97a424b858 (pmail-search): Call pmail-swap-buffers-maybe. 2008-12-15 15:06:50 +00:00
Chong Yidong
5136e31587 (pmail): Call pmail-swap-buffers-maybe.
(pmail-search): Call pmail-swap-buffers-maybe.
2008-12-15 14:56:06 +00:00
Chong Yidong
2c6ee63db5 All callers to pmail-output-to-pmail-file changed to
pmail-output-to-babyl-file.
2008-12-12 15:26:46 +00:00
Chong Yidong
ecc69b6579 (pmail-perm-variables): Don't call pmail-parse-file-inboxes.
(pmail-parse-file-inboxes): Function deleted.
(pmail-get-new-mail-1): Function merged into pmail-get-new-mail.
(pmail-get-new-mail-2): Renamed to pmail-get-new-mail-1.
(pmail-get-new-mail-filter-spam): Call rmail-spam-filter, not
pmail-spam-filter.
(pmail-convert-to-babyl-format): Function deleted.
(pmail-nuke-pinhead-header): Function deleted.
(pmail-reply): Parsing headers in mbox format.  Call
rmail-dont-reply-to instead of pmail-dont-reply-to.
2008-12-10 21:50:23 +00:00
Chong Yidong
adc3b85d06 (pmail-insert-pmail-file-header): Function deleted.
(pmail-decode-babyl-format): Function deleted.
2008-12-10 20:56:39 +00:00
Chong Yidong
0fa15b2d02 Remove debugging code. 2008-12-10 20:36:47 +00:00
Chong Yidong
89f4fb7c0f (pmail-expunge): Pass new optional arg to pmail-only-expunge.
(pmail-expunge-and-save): Don't reset view buffer.
2008-12-09 23:23:05 +00:00
Chong Yidong
397b4cd0fd (pmail-only-expunge): Swap buffers at the beginning. 2008-12-09 19:35:06 +00:00
Chong Yidong
c786a92921 (pmail-convert-babyl-to-mbox): Reinitialize pmail-mode variables after
conversion.
2008-12-05 20:43:18 +00:00
Chong Yidong
faa2c8ba6a (pmail-retry-failure): Remove call to non-existent function
pmail-clear-headers.
(pmail-message-labels-p): New function.
2008-12-04 22:50:50 +00:00
Chong Yidong
1cc54663d7 (pmail-get-header): Call pmail-swap-buffers-maybe. 2008-12-04 13:41:10 +00:00
Chong Yidong
404271997e (pmail-only-expunge): Pass correct arg to pmail-show-message-maybe. 2008-12-02 14:03:19 +00:00
Paul Reilly
c68997cf65 Add support for save-buffer. 2008-11-13 08:01:29 +00:00
Paul Reilly
8e4487de7b (pmail): Remove a redundant message counter reset call; try to
minimize the attempts to show a message (ideally it should be done
once and only once).

(pmail-convert-babyl-to-mbox): Set up the global message variables
after inserting the converted mbox file into the Pmail buffer; avoid
an unecessary message display function call.

(pmail-show-message-maybe): Use the current message number when the
optional argument is not passed.
2008-10-17 02:43:35 +00:00
Paul Reilly
4d7404bb76 (pmail): Check for babyl conversion early; ignore multibyte. 2008-10-14 12:08:21 +00:00
Chong Yidong
675ccaf017 * pmail.el (pmail-tool-bar-map): Initialize it unconditionally. 2008-10-11 19:56:32 +00:00
Paul Reilly
fca0b79bef Next step in the Rmail/mbox support: getting basic summary support working. 2008-10-05 14:08:21 +00:00
Paul Reilly
e93edd3fca First pass at handling decoding the mbox message into the view buffer. 2008-09-23 11:30:17 +00:00
Paul Reilly
61dcccff80 The Rmail/mbox merge has been abandoned in favor of a restart using
the current rmail.el file.  A comprehensive list of changes will be
supplied when pmail.el is morphed back into rmail.el

The current status is that pmail.el supports basic Rmail navigation
(no summary support) and shows the current message in a special
buffer using buffer-swap-text.  No decoding is done yet.  That is the
next step.
2008-09-15 20:56:53 +00:00
Glenn Morris
3e5013c35c (rmail-spam-filter): Autoload it. 2008-09-06 18:56:50 +00:00
Glenn Morris
0a25d0ecda (pmail-use-spam-filter): Remove un-needed variable declaration.
Doc fix for actual definition.
(pmail-get-new-mail): Call rmail-spam-filter rather than non-existent
pmail-spam-filter.
2008-09-06 18:37:43 +00:00
Glenn Morris
51a5d09565 Add local variable setting for change-log-default-name. 2008-09-06 02:55:23 +00:00
Glenn Morris
e6eddb0dca (pmail-spam-filter): Remove declaration of undefined function. 2008-09-06 02:46:37 +00:00
Paul Reilly
d444063ebc * pmail.el (pmail-get-new-mail): When there are no new messages,
invoke a redisplay of the current message.
2008-09-05 19:28:36 +00:00
Paul Reilly
73ead349fc Fix the expunge command so that the current message index is correct.
* pmail.el (pmail-expunge-counter): New variable
  (pmail-set-attribute): Canonicalize the calling sequence to index, attribute, state.
  (pmail-show-message, pmail-delete-message, pmail-undelete-previous-message,
   pmail-delete-forward, pmail-mark-message): Use the new canonical calling sequence.
  (pmail-only-expunge): Use the expunge counter to update the current message index.
  (pmail-expunge-callback): Simplify.  Just count the expunged messages with a lower
   index than the current message index.

* pmaildesc.el (pmail-desc-get-previous): Fix an "off by one" issue.
  (pmail-desc-set-attribute): Canonicalize the calling sequence to index, attribute, state.

* pmailout.el (pmail-output-body-to-file): Use the canonical calling sequence.
2008-09-03 15:33:38 +00:00
Paul Reilly
ab3777910c (pmail-reply-callback): Call pmail-show-message to repaint the
message, insuring that new headers, like X-BABYL-V6... are correctly
hidden.
2008-09-01 10:56:37 +00:00
Paul Reilly
e87ae05bed Fix the expunge operation.
pmail.el (pmail-only-expunge): Manage pmail-total-messages in the
callback handler; remove the extra show message call.
(pmail-expunge-callback): Rewrite to handle all possible conditions.

pmaildesc.el (pmail-desc-get-previous, pmail-desc-get-match-index):
New functions.
2008-09-01 08:35:24 +00:00
Paul Reilly
acdc20068b Resolve all byte compiler warnings and enable IMAP/movemail support. 2008-08-29 04:27:46 +00:00
Miles Bader
0faeefbb78 Add arch tagline 2008-08-18 05:32:57 +00:00
Paul Reilly
e131541f81 mail/: Add new (temporary) libaries for which to test Rmail/mbox such
that Rmail/babyl is not affected.  This creates a facility/feature
called "pmail" (analagous to "rmail") that can be used independently
from Rmail for testing purposes.  The plan is to replace the "rmail"
files eventually and remove "pmail" entirely at that point.  In the
interim, interested developers can use either Rmail or Pmail or both
(which is not recommended for the casual User or the faint of heart).
2008-08-18 04:51:28 +00:00