1 ;;; wl-mime.el --- SEMI implementations of MIME processing on Wanderlust.
3 ;; Copyright (C) 1998,1999,2000 Yuuichi Teranishi <teranisi@gohome.org>
5 ;; Author: Yuuichi Teranishi <teranisi@gohome.org>
6 ;; Keywords: mail, net news
8 ;; This file is part of Wanderlust (Yet Another Message Interface on Emacsen).
10 ;; This program is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; This program is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
38 (defalias-maybe 'pgg-decrypt-region 'ignore)
39 (defalias-maybe 'pgg-display-output-buffer 'ignore)
40 (defalias-maybe 'pgg-verify-region 'ignore))
44 (defalias 'wl-draft-editor-mode 'mime-edit-mode)
46 (defalias 'wl-draft-decode-message-in-buffer
47 'mime-edit-decode-message-in-buffer)
49 (defun wl-draft-yank-current-message-entity ()
50 "Yank currently displayed message entity.
51 By setting following-method as yank-content.
53 If region is active, yank region contents instead. \(this feature is available
54 if and only if `transient-mark-mode' \(GNU Emacs\) or `zmacs-regions' \(XEmacs\)
56 (let ((wl-draft-buffer (current-buffer))
57 (mime-view-following-method-alist
58 (list (cons 'wl-original-message-mode
59 (function wl-draft-yank-to-draft-buffer))))
60 (mime-preview-following-method-alist
61 (list (cons 'wl-original-message-mode
62 (function wl-draft-yank-to-draft-buffer))))
63 (message-buffer (wl-current-message-buffer)))
64 (unless message-buffer
65 (error "No message."))
66 (if (get-buffer message-buffer)
68 (set-buffer (wl-current-message-buffer))
71 (if (wl-region-exists-p)
72 (wl-mime-preview-follow-current-region)
73 (mime-preview-follow-current-entity)))))))
75 ;; modified mime-preview-follow-current-entity from mime-view.el
76 (defun wl-mime-preview-follow-current-region ()
77 "Write follow message to current region.
78 It calls following-method selected from variable
79 `mime-preview-following-method-alist'."
81 (let ((r-beg (region-beginning))
83 (entity (get-text-property (point-min)
85 (let* ((mode (mime-preview-original-major-mode 'recursive))
87 (format "%s-active-region" (buffer-name)))
89 (the-buf (current-buffer))
92 (set-buffer (setq new-buf (get-buffer-create new-name)))
95 (insert-buffer-substring the-buf r-beg r-end)
96 (goto-char (point-min))
98 (if (and (eq (mime-entity-media-type entity) 'message)
99 (eq (mime-entity-media-subtype entity) 'rfc822))
100 (car (mime-entity-children entity))
102 (while (and current-entity
103 (if (and (eq (mime-entity-media-type
104 current-entity) 'message)
105 (eq (mime-entity-media-subtype
106 current-entity) 'rfc822))
108 (mime-insert-header current-entity fields)
110 (setq fields (std11-collect-field-names)
111 current-entity (mime-entity-parent current-entity))
113 (let ((rest mime-view-following-required-fields-list)
116 (setq field-name (car rest))
117 (or (std11-field-body field-name)
121 (let ((entity (when mime-mother-buffer
122 (set-buffer mime-mother-buffer)
123 (get-text-property (point)
124 'mime-view-entity))))
126 (null (setq ret (mime-entity-fetch-field
127 entity field-name))))
128 (setq entity (mime-entity-parent entity)))))
130 (insert (concat field-name ": " ret "\n"))
132 (setq rest (cdr rest))
135 (let ((f (cdr (assq mode mime-preview-following-method-alist))))
139 "Sorry, following method for %s is not implemented yet."
144 (defalias 'wl-draft-enclose-digest-region 'mime-edit-enclose-digest-region)
146 (defun wl-draft-attribute-recipients ()
149 (wl-draft-deduce-address-list
153 (goto-char (point-min))
157 (regexp-quote mail-header-separator)
163 (defun wl-draft-attribute-envelope-from ()
165 (wl-address-header-extract-address wl-from)))
167 (defun wl-draft-attribute-smtp-posting-server ()
168 (or wl-smtp-posting-server
169 (progn (require 'smtp) smtp-server)
172 (defun wl-draft-attribute-smtp-posting-port ()
173 (or wl-smtp-posting-port
174 (progn (require 'smtp) smtp-service)))
176 (defun wl-draft-attribute-value (attr)
177 (let ((name (symbol-name attr))
179 (cond ((and (setq fsymbol (intern-soft
180 (format "wl-draft-attribute-%s" name)))
183 ((and (setq symbol (intern-soft (format "wl-%s" name)))
185 (symbol-value symbol))
189 (defun wl-draft-preview-message ()
190 "Preview editing message."
192 (let* (attribute-list
193 (orig-buffer (current-buffer))
194 (current-point (point))
195 (config-exec-flag wl-draft-config-exec-flag)
196 (parent-folder wl-draft-parent-folder)
197 (mime-display-header-hook 'wl-highlight-headers)
198 (mime-header-encode-method-alist
200 '((wl-draft-eword-encode-address-list
201 . (To Cc Bcc Resent-To Resent-Cc Resent-Bcc From)))
202 (if (boundp 'mime-header-encode-method-alist)
203 (symbol-value 'mime-header-encode-method-alist))))
204 mime-view-ignored-field-list ; all header.
205 (mime-edit-translate-buffer-hook
209 (let ((wl-draft-config-exec-flag config-exec-flag)
210 (wl-draft-parent-folder parent-folder)
211 (copy-buffer (current-buffer)))
212 (with-current-buffer orig-buffer
213 (wl-copy-local-variables
216 (append wl-draft-config-variables
217 (wl-draft-clone-local-variables))))
218 (goto-char current-point)
219 (run-hooks 'wl-draft-send-hook)
224 (cons attr (wl-draft-attribute-value attr)))
225 wl-draft-preview-attributes-list))
227 (kill-buffer (current-buffer))
228 (signal (car err) (cdr err)))))))
229 mime-edit-translate-buffer-hook)))
230 (mime-edit-preview-message)
231 (let ((buffer-read-only nil))
232 (when wl-highlight-body-too
234 (run-hooks 'wl-draft-preview-message-hook))
235 (make-local-variable 'kill-buffer-hook)
236 (add-hook 'kill-buffer-hook
238 (when (get-buffer-window
239 wl-draft-preview-attributes-buffer-name)
240 (select-window (get-buffer-window
241 wl-draft-preview-attributes-buffer-name))
243 (when (get-buffer wl-draft-preview-attributes-buffer-name)
244 (kill-buffer (get-buffer
245 wl-draft-preview-attributes-buffer-name)))))
246 (if (not wl-draft-preview-attributes)
247 (message (concat "Recipients: "
248 (cdr (assq 'reciepient attribute-list))))
249 (ignore-errors ; in case when the window is too small
250 (let* ((cur-win (selected-window))
252 (- (window-height cur-win)
254 (- (window-height cur-win)
257 (1+ wl-draft-preview-attributes-buffer-lines))))))
258 (split-window cur-win (if (> size 0) size window-min-height))
259 (select-window (next-window))
260 (let ((pop-up-windows nil))
261 (switch-to-buffer (get-buffer-create
262 wl-draft-preview-attributes-buffer-name)))
264 (get-buffer wl-draft-preview-attributes-buffer-name)
265 (setq buffer-read-only t)
266 (let (buffer-read-only)
268 (dolist (pair attribute-list)
269 (insert (capitalize (symbol-name (car pair))) ": "
272 (goto-char (point-min))
273 (wl-highlight-headers)))
274 (select-window cur-win))))))
276 (defalias 'wl-draft-caesar-region 'mule-caesar-region)
278 (defalias 'wl-draft-insert-message 'mime-edit-insert-message)
280 (defalias 'wl-draft-insert-mail 'mime-edit-insert-mail)
284 (defun wl-message-decode-mode (outbuf inbuf)
285 (let ((mime-view-content-header-filter-hook 'wl-highlight-headers)
286 (mime-display-header-hook 'wl-highlight-headers))
287 (mime-view-mode nil nil nil inbuf outbuf)))
289 (defun wl-message-decode-with-all-header (outbuf inbuf)
290 (let ((mime-view-ignored-field-regexp "^:$")
291 (mime-view-content-header-filter-hook 'wl-highlight-headers)
292 (mime-display-header-hook 'wl-highlight-headers)
293 mime-view-ignored-field-list)
294 (mime-view-mode nil nil nil inbuf outbuf)))
296 (defun wl-message-delete-mime-out-buf ()
297 (let (mime-out-buf mime-out-win)
298 (if (setq mime-out-buf (get-buffer mime-echo-buffer-name))
299 (if (setq mime-out-win (get-buffer-window mime-out-buf))
300 (delete-window mime-out-win)))))
302 (defun wl-message-request-partial (folder number)
304 (elmo-message-fetch (wl-folder-get-elmo-folder folder)
306 (elmo-make-fetch-strategy 'entire)
310 (mime-parse-buffer nil)))
312 (defalias 'wl-message-read 'mime-preview-scroll-up-entity)
313 (defalias 'wl-message-next-content 'mime-preview-move-to-next)
314 (defalias 'wl-message-prev-content 'mime-preview-move-to-previous)
315 (defalias 'wl-message-play-content 'mime-preview-play-current-entity)
316 (defalias 'wl-message-extract-content 'mime-preview-extract-current-entity)
317 (defalias 'wl-message-quit 'mime-preview-quit)
318 (defalias 'wl-message-button-dispatcher-internal
319 'mime-button-dispatcher)
321 (defsubst wl-mime-node-id-to-string (node-id)
323 (mapconcat (function (lambda (num) (format "%s" (1+ num))))
328 (defun wl-message-delete-current-part ()
329 "Delete a part under the cursor from the multipart message."
333 (let* ((entity (get-text-property (point) 'mime-view-entity))
334 (node-id (mime-entity-node-id entity))
335 (header-start (mime-buffer-entity-header-start-internal entity))
336 (body-end (mime-buffer-entity-body-end-internal entity))
337 (folder (wl-folder-get-elmo-folder wl-message-buffer-cur-folder))
338 (number wl-message-buffer-cur-number)
339 (msgid (elmo-message-field folder number 'message-id))
340 (orig-buf wl-message-buffer-original-buffer))
341 (if (eq (luna-class-name entity) 'mime-elmo-imap-entity)
342 (error "Please fetch the entire message (by typing 'C-u .') and try again"))
343 (with-current-buffer orig-buf
344 (unless (string-equal
346 (elmo-message-fetch folder number
347 (elmo-make-fetch-strategy 'entire)))
348 (error "Buffer content differs from actual message")))
349 (when (and (elmo-folder-writable-p folder)
350 (buffer-live-p orig-buf)
353 (format "Do you really want to delete part %s? "
354 (wl-mime-node-id-to-string node-id))))
355 (when (with-temp-buffer
356 (insert-buffer orig-buf)
357 (delete-region header-start body-end)
358 (goto-char header-start)
359 (insert "Content-Type: text/plain; charset=US-ASCII\n\n")
360 (insert "** This part has been removed by Wanderlust **\n\n")
361 (elmo-folder-append-buffer folder))
363 (elmo-folder-move-messages
365 (wl-folder-get-elmo-folder wl-trash-folder))
366 (when (and (elmo-cache-get-path msgid)
367 (file-exists-p (elmo-cache-get-path msgid)))
368 (delete-file (elmo-cache-get-path msgid)))
371 (wl-summary-delete-messages-on-buffer (list number))
372 (wl-summary-toggle-disp-msg 'off)
373 (setq wl-message-buffer nil)
374 (wl-summary-sync nil "update"))))))
376 (defun wl-message-decrypt-pgp-nonmime ()
377 "Decrypt PGP encrypted region"
382 (if (or (re-search-forward "^-+END PGP MESSAGE-+$" nil t)
383 (re-search-backward "^-+END PGP MESSAGE-+$" nil t))
384 (let (beg end status)
385 (setq end (match-end 0))
386 (if (setq beg (re-search-backward "^-+BEGIN PGP MESSAGE-+$" nil t))
387 (let ((inhibit-read-only t)
388 (buffer-file-coding-system wl-cs-autoconv))
389 (setq status (pgg-decrypt-region beg end))
390 (pgg-display-output-buffer beg end status))
391 (message "Cannot find pgp encrypted region")))
392 (message "Cannot find pgp encrypted region"))))
394 (defun wl-message-verify-pgp-nonmime ()
395 "Verify PGP signed region"
400 (if (and (or (re-search-forward "^-+END PGP SIGNATURE-+$" nil t)
401 (re-search-backward "^-+END PGP SIGNATURE-+$" nil t))
402 (re-search-backward "^-+BEGIN PGP SIGNED MESSAGE-+$" nil t))
405 (situation (mime-preview-find-boundary-info))
406 (p-end (aref situation 1))
407 (entity (aref situation 2))
410 (while (< beg (point))
411 (if (re-search-backward "^-+BEGIN PGP SIGNED MESSAGE-+$" nil t)
412 (setq count (+ count 1))
415 (set-buffer-multibyte nil)
416 (insert (mime-entity-body entity))
417 (goto-char (point-max))
419 (if (re-search-backward "^-+BEGIN PGP SIGNED MESSAGE-+$" nil t)
420 (setq count (- count 1))
422 (let ((r-beg (point))
423 (r-end (re-search-forward "^-+END PGP SIGNATURE-+$" nil t)))
425 (setq status (pgg-verify-region r-beg r-end nil 'fetch))
427 (mime-show-echo-buffer)
428 (set-buffer mime-echo-buffer-name)
430 (get-buffer-window mime-echo-buffer-name)
433 (insert-buffer-substring
434 (if status pgg-output-buffer pgg-errors-buffer))
435 (decode-coding-region m-beg (point) wl-cs-autoconv))
436 (message "Cannot find pgp signed region"))))
438 ;; XXX: encrypted multipart isn't represented as multipart
439 (defun wl-mime-preview-application/pgp (parent-entity entity situation)
441 (goto-char (point-max))
443 raw-buf to-buf representation-type child-entity)
446 (narrow-to-region p p)
447 (setq to-buf (current-buffer))
449 (setq raw-buf (current-buffer))
450 (mime-insert-entity entity)
452 (goto-char (point-min))
453 (re-search-forward "^-+BEGIN PGP MESSAGE-+$" nil t))
454 (pgg-decrypt-region (point-min)(point-max))
455 (delete-region (point-min) (point-max))
456 (insert-buffer pgg-output-buffer)
457 (setq representation-type 'elmo-buffer))
458 (setq child-entity (mime-parse-message
459 (mm-expand-class-name representation-type)
462 (mime-entity-node-id-internal parent-entity)))
468 (entity-button . invisible))
471 (defun wl-mime-preview-application/pgp-encrypted (entity situation)
472 (let* ((entity-node-id (mime-entity-node-id entity))
473 (mother (mime-entity-parent entity))
474 (knum (car entity-node-id))
478 (orig-entity (nth onum (mime-entity-children mother))))
479 (wl-mime-preview-application/pgp entity orig-entity situation)))
482 (defun wl-summary-burst-subr (message-entity target number)
483 ;; returns new number.
484 (let (content-type entity)
485 (setq content-type (mime-entity-content-type message-entity))
486 (cond ((eq (cdr (assq 'type content-type)) 'multipart)
487 (dolist (entity (mime-entity-children message-entity))
488 (setq number (wl-summary-burst-subr
492 ((and (eq (cdr (assq 'type content-type)) 'message)
493 (eq (cdr (assq 'subtype content-type)) 'rfc822))
494 (message "Bursting...%s" (setq number (+ 1 number)))
496 (car (mime-entity-children message-entity)))
498 (insert (mime-entity-body message-entity))
499 (elmo-folder-append-buffer target))))
502 (defun wl-summary-burst (&optional arg)
503 "De-capsulate embedded messages in MIME format.
504 With ARG, ask destination folder."
506 (let ((raw-buf (wl-summary-get-original-buffer))
507 (view-buf wl-message-buffer)
508 children message-entity content-type target-name target)
510 (setq target wl-summary-buffer-elmo-folder)
511 (when (or arg (not (elmo-folder-writable-p target)))
512 (setq target-name (wl-summary-read-folder wl-default-folder "to extract to"))
513 (setq target (wl-folder-get-elmo-folder target-name)))
514 (wl-summary-set-message-buffer-or-redisplay)
515 (with-current-buffer view-buf
516 (setq message-entity (get-text-property (point-min) 'mime-view-entity)))
518 (message "Bursting...")
519 (with-current-buffer raw-buf
520 (wl-summary-burst-subr message-entity target 0))
521 (message "Bursting...done"))
522 (if (elmo-folder-plugged-p target)
523 (elmo-folder-check target)))
524 (when (or (not target-name)
525 (string= wl-summary-buffer-folder-name target-name))
526 (save-excursion (wl-summary-sync-update)))))
528 ;; internal variable.
529 (defvar wl-mime-save-directory nil "Last saved directory.")
530 ;;; Yet another save method.
531 (defun wl-mime-save-content (entity situation)
532 (let ((filename (read-file-name "Save to file: "
534 (or (mime-entity-safe-filename entity)
536 (or wl-mime-save-directory
537 wl-temporary-file-directory)))))
538 (while (file-directory-p filename)
539 (setq filename (read-file-name "Please set filename (not directory): "
541 (if (and (file-exists-p filename)
542 (not (yes-or-no-p (format "File %s exists. Save anyway? "
544 (message "Not saved")
545 (setq wl-mime-save-directory (file-name-directory filename))
546 (mime-write-entity-content entity filename))))
548 ;;; Yet another combine method.
549 (defun wl-mime-combine-message/partial-pieces (entity situation)
550 "Internal method for wl to combine message/partial messages automatically."
552 (let* ((folder (save-excursion
553 (set-buffer wl-message-buffer-cur-summary-buffer)
554 wl-summary-buffer-elmo-folder))
555 (mime-display-header-hook 'wl-highlight-headers)
556 (folder wl-message-buffer-cur-folder)
557 (id (or (cdr (assoc "id" situation)) ""))
558 (mother (current-buffer))
559 (summary-buf wl-message-buffer-cur-summary-buffer)
561 (root-dir (expand-file-name
562 (concat "m-prts-" (user-login-name))
563 temporary-file-directory))
565 (setq root-dir (concat root-dir "/" (replace-as-filename id)))
566 (setq full-file (concat root-dir "/FULL"))
567 (if (or (file-exists-p full-file)
568 (not (y-or-n-p "Merge partials? ")))
569 (with-current-buffer mother
570 (mime-store-message/partial-piece entity situation)
571 (setq wl-message-buffer-cur-summary-buffer summary-buf)
572 (make-variable-buffer-local 'mime-preview-over-to-next-method-alist)
573 (setq mime-preview-over-to-next-method-alist
574 (cons (cons 'mime-show-message-mode 'wl-message-exit)
575 mime-preview-over-to-next-method-alist))
576 (make-variable-buffer-local 'mime-preview-over-to-previous-method-alist)
577 (setq mime-preview-over-to-previous-method-alist
578 (cons (cons 'mime-show-message-mode 'wl-message-exit)
579 mime-preview-over-to-previous-method-alist)))
582 (decode-mime-charset-string
583 (mime-entity-read-field entity 'Subject)
584 wl-summary-buffer-mime-charset)))
585 (if (string-match "[0-9\n]+" subject-id)
586 (setq subject-id (substring subject-id 0 (match-beginning 0))))
588 (elmo-folder-do-each-message-entity (entity folder)
590 (regexp-quote subject-id)
591 (elmo-message-entity-field entity 'subject))
593 ;; request message at the cursor in Subject buffer.
594 (wl-message-request-partial
596 (elmo-message-entity-number entity)))
597 (situation (mime-entity-situation message))
598 (the-id (or (cdr (assoc "id" situation)) "")))
599 (when (string= (downcase the-id)
601 (with-current-buffer mother
602 (mime-store-message/partial-piece message situation))
603 (if (file-exists-p full-file)
604 (throw 'tag nil))))))
605 (message "Not all partials found.")))))
607 (defun wl-mime-display-text/plain (entity situation)
609 (mime-display-text/plain entity situation)
610 (wl-highlight-message beg (point-max) t t)))
612 (defun wl-mime-display-header (entity situation)
613 (let ((elmo-message-ignored-field-list
614 (if wl-message-buffer-all-header-flag
616 wl-message-ignored-field-list))
617 (elmo-message-visible-field-list wl-message-visible-field-list)
618 (elmo-message-sorted-field-list wl-message-sort-field-list))
619 (elmo-mime-insert-header entity situation)
620 (wl-highlight-headers)))
622 (defun wl-mime-decrypt-application/pgp-encrypted (entity situation)
623 (let ((summary-buffer wl-message-buffer-cur-summary-buffer)
624 (original-buffer wl-message-buffer-original-buffer))
625 (mime-decrypt-application/pgp-encrypted entity situation)
626 (setq wl-message-buffer-cur-summary-buffer summary-buffer)
627 (setq wl-message-buffer-original-buffer original-buffer)))
631 (defun wl-mime-setup ()
632 (set-alist 'mime-preview-quitting-method-alist
633 'wl-original-message-mode 'wl-message-exit)
634 (set-alist 'mime-view-over-to-previous-method-alist
635 'wl-original-message-mode 'wl-message-exit)
636 (set-alist 'mime-view-over-to-next-method-alist
637 'wl-original-message-mode 'wl-message-exit)
638 (set-alist 'mime-preview-over-to-previous-method-alist
639 'wl-original-message-mode 'wl-message-exit)
640 (set-alist 'mime-preview-over-to-next-method-alist
641 'wl-original-message-mode 'wl-message-exit)
642 (add-hook 'wl-summary-redisplay-hook 'wl-message-delete-mime-out-buf)
643 (add-hook 'wl-message-exit-hook 'wl-message-delete-mime-out-buf)
645 (ctree-set-calist-strictly
646 'mime-preview-condition
647 '((type . text) (subtype . plain)
649 (body-presentation-method . wl-mime-display-text/plain)
650 (major-mode . wl-original-message-mode)))
652 (ctree-set-calist-strictly
653 'mime-preview-condition
654 '((type . application)(subtype . pgp-encrypted)
657 (body-presentation-method . wl-mime-preview-application/pgp-encrypted)
658 (major-mode . wl-original-message-mode)))
660 (ctree-set-calist-strictly
661 'mime-acting-condition
662 '((type . message) (subtype . partial)
663 (method . wl-mime-combine-message/partial-pieces)
664 (request-partial-message-method . wl-message-request-partial)
665 (major-mode . wl-original-message-mode)))
667 (ctree-set-calist-strictly
668 'mime-acting-condition
669 '((type . application) (subtype . pgp-encrypted)
670 (method . wl-mime-decrypt-application/pgp-encrypted)
671 (major-mode . wl-original-message-mode)))
673 (ctree-set-calist-strictly
674 'mime-acting-condition
676 (major-mode . wl-original-message-mode)
677 (method . wl-mime-save-content)))
678 (set-alist 'mime-preview-following-method-alist
679 'wl-original-message-mode
680 (function wl-message-follow-current-entity))
681 (set-alist 'mime-view-following-method-alist
682 'wl-original-message-mode
683 (function wl-message-follow-current-entity))
684 (set-alist 'mime-edit-message-inserter-alist
685 'wl-draft-mode (function wl-draft-insert-current-message))
686 (set-alist 'mime-edit-mail-inserter-alist
687 'wl-draft-mode (function wl-draft-insert-get-message))
688 (set-alist 'mime-edit-split-message-sender-alist
690 (cdr (assq 'mail-mode mime-edit-split-message-sender-alist)))
691 (set-alist 'mime-raw-representation-type-alist
692 'wl-original-message-mode 'binary)
693 ;; Sort and highlight header fields.
694 (or wl-message-ignored-field-list
695 (setq wl-message-ignored-field-list
696 mime-view-ignored-field-list))
697 (or wl-message-visible-field-list
698 (setq wl-message-visible-field-list
699 mime-view-visible-field-list))
700 (set-alist 'mime-header-presentation-method-alist
701 'wl-original-message-mode
702 'wl-mime-display-header)
703 ;; To avoid overriding wl-draft-mode-map.
704 (when (boundp 'mime-setup-signature-key-alist)
705 (unless (assq 'wl-draft-mode mime-setup-signature-key-alist)
706 (setq mime-setup-signature-key-alist
707 (cons '(wl-draft-mode . "\C-c\C-w")
708 mime-setup-signature-key-alist)))))
711 (product-provide (provide 'wl-mime) (require 'wl-version))
713 ;;; wl-mime.el ends here