45ff40d8ea0c01831612a3cd9f285255e2b85683
[elisp/semi.git] / mime-play.el
1 ;;; mime-play.el --- Playback processing module for mime-view.el
2
3 ;; Copyright (C) 1994,1995,1996,1997,1998 Free Software Foundation, Inc.
4
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Created: 1995/9/26 (separated from tm-view.el)
7 ;;      Renamed: 1997/2/21 from tm-play.el
8 ;; Keywords: MIME, multimedia, mail, news
9
10 ;; This file is part of SEMI (Secretariat of Emacs MIME Interfaces).
11
12 ;; This program is free software; you can redistribute it and/or
13 ;; modify it under the terms of the GNU General Public License as
14 ;; published by the Free Software Foundation; either version 2, or (at
15 ;; your option) any later version.
16
17 ;; This program is distributed in the hope that it will be useful, but
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20 ;; General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
26
27 ;;; Code:
28
29 (require 'mime-view)
30 (require 'alist)
31 (require 'filename)
32
33 (eval-when-compile
34   (require 'mime-text)
35   (condition-case nil
36       (require 'bbdb)
37     (error (defvar bbdb-buffer-name nil))
38     ))
39
40 (defvar mime-acting-situation-examples nil)
41
42 (defun mime-save-acting-situation-examples ()
43   (let* ((file mime-acting-situation-examples-file)
44          (buffer (get-buffer-create " *mime-example*")))
45     (unwind-protect
46         (save-excursion
47           (set-buffer buffer)
48           (setq buffer-file-name file)
49           (erase-buffer)
50           (insert ";;; " (file-name-nondirectory file) "\n")
51           (insert "\n;; This file is generated automatically by "
52                   mime-view-version-string "\n\n")
53           (insert ";;; Code:\n\n")
54           (pp `(setq mime-acting-situation-examples
55                      ',mime-acting-situation-examples)
56               (current-buffer))
57           (insert "\n;;; "
58                   (file-name-nondirectory file)
59                   " ends here.\n")
60           (save-buffer))
61       (kill-buffer buffer))))
62
63 (add-hook 'kill-emacs-hook 'mime-save-acting-situation-examples)
64
65   
66 ;;; @ content decoder
67 ;;;
68
69 (defvar mime-preview-after-decoded-position nil)
70
71 (defun mime-preview-play-current-entity (&optional mode)
72   "Play current entity.
73 It decodes current entity to call internal or external method.  The
74 method is selected from variable `mime-acting-condition'.
75 If MODE is specified, play as it.  Default MODE is \"play\"."
76   (interactive)
77   (or mode
78       (setq mode "play"))
79   (let ((entity (get-text-property (point) 'mime-view-entity)))
80     (if entity
81         (let ((the-buf (current-buffer))
82               (raw-buffer (mime-entity-buffer entity)))
83           (setq mime-preview-after-decoded-position (point))
84           (set-buffer raw-buffer)
85           (mime-raw-play-entity entity mode)
86           (when (eq (current-buffer) raw-buffer)
87             (set-buffer the-buf)
88             (goto-char mime-preview-after-decoded-position)
89             )))))
90
91 (defun mime-sort-situation (situation)
92   (sort situation
93         #'(lambda (a b)
94             (let ((a-t (car a))
95                   (b-t (car b))
96                   (order '((type . 1)
97                            (subtype . 2)
98                            (mode . 3)
99                            (method . 4)
100                            (major-mode . 5)
101                            (disposition-type . 6)
102                            ))
103                   a-order b-order)
104               (if (symbolp a-t)
105                   (let ((ret (assq a-t order)))
106                     (if ret
107                         (setq a-order (cdr ret))
108                       (setq a-order 7)
109                       ))
110                 (setq a-order 8)
111                 )
112               (if (symbolp b-t)
113                   (let ((ret (assq b-t order)))
114                     (if ret
115                         (setq b-order (cdr ret))
116                       (setq b-order 7)
117                       ))
118                 (setq b-order 8)
119                 )
120               (if (= a-order b-order)
121                   (string< (format "%s" a-t)(format "%s" b-t))
122                 (< a-order b-order))
123               )))
124   )
125
126 (defsubst mime-delq-null-situation (situations field)
127   (let (dest)
128     (while situations
129       (let ((situation (car situations)))
130         (if (assq field situation)
131             (setq dest (cons situation dest))
132           ))
133       (setq situations (cdr situations)))
134     dest))
135
136 (defun mime-raw-play-entity (entity &optional mode situation)
137   "Play entity specified by ENTITY.
138 It decodes the entity to call internal or external method.  The method
139 is selected from variable `mime-acting-condition'.  If MODE is
140 specified, play as it.  Default MODE is \"play\"."
141   (let (method ret)
142     (or situation
143         (setq situation (mime-entity-situation entity)))
144     (if mode
145         (setq situation (cons (cons 'mode mode) situation))
146       )
147     (setq ret
148           (or (ctree-match-calist mime-acting-situation-examples situation)
149               (ctree-match-calist-partially mime-acting-situation-examples
150                                             situation)
151               situation))
152     (setq ret
153           (or (mime-delq-null-situation
154                (ctree-find-calist mime-acting-condition ret
155                                   mime-view-find-every-acting-situation)
156                'method)
157               (mime-delq-null-situation
158                (ctree-find-calist mime-acting-condition situation
159                                   mime-view-find-every-acting-situation)
160                'method)
161               ))
162     (cond ((cdr ret)
163            (setq ret (select-menu-alist
164                       "Methods"
165                       (mapcar (function
166                                (lambda (situation)
167                                  (cons
168                                   (format "%s"
169                                           (cdr (assq 'method situation)))
170                                   situation)))
171                               ret)))
172            (setq ret (mime-sort-situation ret))
173            (ctree-set-calist-strictly 'mime-acting-situation-examples ret)
174            )
175           (t
176            (setq ret (car ret))
177            ))
178     (setq method (cdr (assq 'method ret)))
179     (cond ((and (symbolp method)
180                 (fboundp method))
181            (funcall method entity ret)
182            )
183           ((stringp method)
184            (mime-activate-mailcap-method entity ret)
185            )
186           ;; ((and (listp method)(stringp (car method)))
187           ;;  (mime-activate-external-method entity ret)
188           ;;  )
189           (t
190            (mime-show-echo-buffer "No method are specified for %s\n"
191                                   (mime-entity-type/subtype entity))
192            ))
193     ))
194
195
196 ;;; @ external decoder
197 ;;;
198
199 (defvar mime-mailcap-method-filename-alist nil)
200
201 (defun mime-activate-mailcap-method (entity situation)
202   (save-excursion
203     (save-restriction
204       (let ((start (mime-entity-point-min entity))
205             (end (mime-entity-point-max entity)))
206         (narrow-to-region start end)
207         (goto-char start)
208         (let ((method (cdr (assoc 'method situation)))
209               (name (expand-file-name (mime-raw-get-filename situation)
210                                       mime-temp-directory)))
211           (mime-write-decoded-region (mime-entity-body-start entity) end
212                                      name (cdr (assq 'encoding situation)))
213           (message "External method is starting...")
214           (let ((process
215                  (let ((command
216                         (mailcap-format-command
217                          method
218                          (cons (cons 'filename name) situation))))
219                    (start-process command mime-echo-buffer-name
220                                   shell-file-name shell-command-switch command)
221                    )))
222             (set-alist 'mime-mailcap-method-filename-alist process name)
223             (set-process-sentinel process 'mime-mailcap-method-sentinel)
224             )
225           )))))
226
227 (defun mime-mailcap-method-sentinel (process event)
228   (let ((file (cdr (assq process mime-mailcap-method-filename-alist))))
229     (if (file-exists-p file)
230         (delete-file file)
231       ))
232   (remove-alist 'mime-mailcap-method-filename-alist process)
233   (message (format "%s %s" process event)))
234
235 ;; (defun mime-activate-external-method (entity cal)
236 ;;   (save-excursion
237 ;;     (save-restriction
238 ;;       (let ((beg (mime-entity-point-min entity))
239 ;;             (end (mime-entity-point-max entity)))
240 ;;         (narrow-to-region beg end)
241 ;;         (goto-char beg)
242 ;;         (let ((method (cdr (assoc 'method cal)))
243 ;;               (name (mime-raw-get-filename cal)))
244 ;;           (if method
245 ;;               (let ((file (make-temp-name
246 ;;                            (expand-file-name "TM" mime-temp-directory)))
247 ;;                     b args)
248 ;;                 (if (nth 1 method)
249 ;;                     (setq b beg)
250 ;;                   (setq b (mime-entity-body-start entity)))
251 ;;                 (goto-char b)
252 ;;                 (write-region b end file)
253 ;;                 (message "External method is starting...")
254 ;;                 (setq cal (put-alist
255 ;;                            'name (replace-as-filename name) cal))
256 ;;                 (setq cal (put-alist 'file file cal))
257 ;;                 (setq args (nconc
258 ;;                             (list (car method)
259 ;;                                   mime-echo-buffer-name (car method))
260 ;;                             (mime-make-external-method-args
261 ;;                              cal (cdr (cdr method)))
262 ;;                             ))
263 ;;                 (apply (function start-process) args)
264 ;;                 (mime-show-echo-buffer)
265 ;;                 ))
266 ;;           )))))
267
268 ;; (defun mime-make-external-method-args (cal format)
269 ;;   (mapcar (function
270 ;;            (lambda (arg)
271 ;;              (if (stringp arg)
272 ;;                  arg
273 ;;                (let* ((item (eval arg))
274 ;;                       (ret (cdr (assoc item cal))))
275 ;;                  (or ret
276 ;;                      (if (eq item 'encoding)
277 ;;                          "7bit"
278 ;;                        ""))
279 ;;                  ))))
280 ;;           format))
281
282 (defvar mime-echo-window-is-shared-with-bbdb t
283   "*If non-nil, mime-echo window is shared with BBDB window.")
284
285 (defvar mime-echo-window-height
286   (function
287    (lambda ()
288      (/ (window-height) 5)
289      ))
290   "*Size of mime-echo window.
291 It allows function or integer.  If it is function,
292 `mime-show-echo-buffer' calls it to get height of mime-echo window.
293 Otherwise `mime-show-echo-buffer' uses it as height of mime-echo
294 window.")
295
296 (defun mime-show-echo-buffer (&rest forms)
297   "Show mime-echo buffer to display MIME-playing information."
298   (get-buffer-create mime-echo-buffer-name)
299   (let ((the-win (selected-window))
300         (win (get-buffer-window mime-echo-buffer-name))
301         )
302     (or win
303         (if (and mime-echo-window-is-shared-with-bbdb
304                  (boundp 'bbdb-buffer-name)
305                  (setq win (get-buffer-window bbdb-buffer-name))
306                  )
307             (set-window-buffer win mime-echo-buffer-name)
308           (select-window (get-buffer-window mime-preview-buffer))
309           (setq win (split-window-vertically
310                      (- (window-height)
311                         (if (functionp mime-echo-window-height)
312                             (funcall mime-echo-window-height)
313                           mime-echo-window-height)
314                         )))
315           (set-window-buffer win mime-echo-buffer-name)
316           ))
317     (select-window win)
318     (goto-char (point-max))
319     (if forms
320         (insert (apply (function format) forms))
321       )
322     (select-window the-win)
323     ))
324
325
326 ;;; @ file name
327 ;;;
328
329 (defvar mime-view-file-name-char-regexp "[A-Za-z0-9+_-]")
330
331 (defvar mime-view-file-name-regexp-1
332   (concat mime-view-file-name-char-regexp "+\\."
333           mime-view-file-name-char-regexp "+"))
334
335 (defvar mime-view-file-name-regexp-2
336   (concat (regexp-* mime-view-file-name-char-regexp)
337           "\\(\\." mime-view-file-name-char-regexp "+\\)*"))
338
339 (defun mime-raw-get-original-filename (param)
340   (or (if (member (cdr (assq 'encoding param))
341                   mime-view-uuencode-encoding-name-list)
342           (mime-raw-get-uu-filename))
343       (let (ret)
344         (or (if (or (and (setq ret (mime-read-Content-Disposition))
345                          (setq ret
346                                (assoc
347                                 "filename"
348                                 (mime-content-disposition-parameters ret)))
349                          )
350                     (setq ret (assoc "name" param))
351                     (setq ret (assoc "x-name" param))
352                     )
353                 (std11-strip-quoted-string (cdr ret))
354               )
355             (if (setq ret
356                       (std11-find-field-body '("Content-Description"
357                                                "Subject")))
358                 (if (or (string-match mime-view-file-name-regexp-1 ret)
359                         (string-match mime-view-file-name-regexp-2 ret))
360                     (substring ret (match-beginning 0)(match-end 0))
361                   ))
362             ))
363       ))
364
365 (defun mime-raw-get-filename (param)
366   (replace-as-filename (mime-raw-get-original-filename param))
367   )
368
369
370 ;;; @ file extraction
371 ;;;
372
373 (defun mime-method-to-save (entity cal)
374   (let ((beg (mime-entity-point-min entity))
375         (end (mime-entity-point-max entity)))
376     (goto-char beg)
377     (let* ((name (save-restriction
378                    (narrow-to-region beg end)
379                    (mime-raw-get-filename cal)
380                    ))
381            (encoding (or (cdr (assq 'encoding cal)) "7bit"))
382            (filename (if (and name (not (string-equal name "")))
383                          (expand-file-name name
384                                            (save-window-excursion
385                                              (call-interactively
386                                               (function
387                                                (lambda (dir)
388                                                  (interactive "DDirectory: ")
389                                                  dir)))))
390                        (save-window-excursion
391                          (call-interactively
392                           (function
393                            (lambda (file)
394                              (interactive "FFilename: ")
395                              (expand-file-name file)))))))
396            )
397       (if (file-exists-p filename)
398           (or (yes-or-no-p (format "File %s exists. Save anyway? " filename))
399               (error "")))
400       (re-search-forward "\n\n")
401       (mime-write-decoded-region (match-end 0) end filename encoding)
402       )))
403
404
405 ;;; @ file detection
406 ;;;
407
408 (defvar mime-file-content-type-alist
409   '(("JPEG"     image jpeg)
410     ("GIF"      image gif)
411     )
412   "*Alist of \"file\" output patterns vs. corresponding media-types.
413 Each element looks like (REGEXP TYPE SUBTYPE).
414 REGEXP is pattern for \"file\" command output.
415 TYPE is symbol to indicate primary type of media-type.
416 SUBTYPE is symbol to indicate subtype of media-type.")
417
418 (defun mime-method-to-detect (entity situation)
419   (let ((beg (mime-entity-point-min entity))
420         (end (mime-entity-point-max entity)))
421     (goto-char beg)
422     (let* ((name (save-restriction
423                    (narrow-to-region beg end)
424                    (mime-raw-get-filename situation)
425                    ))
426            (encoding (or (cdr (assq 'encoding situation)) "7bit"))
427            (filename (if (and name (not (string-equal name "")))
428                          (expand-file-name name mime-temp-directory)
429                        (make-temp-name
430                         (expand-file-name "EMI" mime-temp-directory)))))
431       (mime-write-decoded-region (mime-entity-body-start entity) end
432                                  filename encoding)
433       (let (type subtype)
434         (with-temp-buffer
435           (call-process "file" nil t nil filename)
436           (goto-char (point-min))
437           (if (search-forward (concat filename ": ") nil t)
438               (let ((rest mime-file-content-type-alist))
439                 (while (not (let ((cell (car rest)))
440                               (if (looking-at (car cell))
441                                   (setq type (nth 1 cell)
442                                         subtype (nth 2 cell))
443                                 )))
444                   (setq rest (cdr rest))))))
445         (if type
446             (mime-raw-play-entity
447              entity "play"
448              (put-alist 'type type
449                         (put-alist 'subtype subtype
450                                    (mime-entity-situation entity))))
451           ))
452       )))
453
454
455 ;;; @ mail/news message
456 ;;;
457
458 (defun mime-preview-quitting-method-for-mime-show-message-mode ()
459   "Quitting method for mime-view.
460 It is registered to variable `mime-preview-quitting-method-alist'."
461   (let ((mother mime-mother-buffer)
462         (win-conf mime-preview-original-window-configuration)
463         )
464     (kill-buffer mime-raw-buffer)
465     (mime-preview-kill-buffer)
466     (set-window-configuration win-conf)
467     (pop-to-buffer mother)
468     ))
469
470 (defun mime-method-to-display-message/rfc822 (entity cal)
471   (let* ((beg (mime-entity-point-min entity))
472          (end (mime-entity-point-max entity))
473          (cnum (mime-raw-point-to-entity-number beg))
474          (new-name (format "%s-%s" (buffer-name) cnum))
475          (mother mime-preview-buffer)
476          (representation-type
477           (cdr (or (assq major-mode mime-raw-representation-type-alist)
478                    (assq t mime-raw-representation-type-alist))))
479          str)
480     (setq str (buffer-substring beg end))
481     (switch-to-buffer new-name)
482     (erase-buffer)
483     (insert str)
484     (goto-char (point-min))
485     (if (re-search-forward "^\n" nil t)
486         (delete-region (point-min) (match-end 0))
487       )
488     (setq major-mode 'mime-show-message-mode)
489     (setq mime-raw-representation-type representation-type)
490     (mime-view-mode mother)
491     ))
492
493
494 ;;; @ message/partial
495 ;;;
496
497 (defun mime-raw-write-region (start end filename)
498   "Write current region into specified file.
499 When called from a program, takes three arguments:
500 START, END and FILENAME.  START and END are buffer positions.
501 It refer `mime-raw-representation-type' or `major-mode
502 mime-raw-representation-type-alist'.  If it is `binary', region is
503 saved as binary.  Otherwise the region is saved by `write-region'."
504   (let ((presentation-type
505          (or mime-raw-representation-type
506              (cdr (or (assq major-mode mime-raw-representation-type-alist)
507                       (assq t mime-raw-representation-type-alist))))))
508     (if (eq presentation-type 'binary)
509         (write-region-as-binary start end filename)
510       (write-region start end filename)
511       )))
512
513 (defun mime-method-to-store-message/partial (entity cal)
514   (goto-char (mime-entity-point-min entity))
515   (let* ((root-dir
516           (expand-file-name
517            (concat "m-prts-" (user-login-name)) mime-temp-directory))
518          (id (cdr (assoc "id" cal)))
519          (number (cdr (assoc "number" cal)))
520          (total (cdr (assoc "total" cal)))
521          file
522          (mother mime-preview-buffer)
523          )
524     (or (file-exists-p root-dir)
525         (make-directory root-dir)
526         )
527     (setq id (replace-as-filename id))
528     (setq root-dir (concat root-dir "/" id))
529     (or (file-exists-p root-dir)
530         (make-directory root-dir)
531         )
532     (setq file (concat root-dir "/FULL"))
533     (if (file-exists-p file)
534         (let ((full-buf (get-buffer-create "FULL"))
535               (pwin (or (get-buffer-window mother)
536                         (get-largest-window)))
537               )
538           (save-window-excursion
539             (set-buffer full-buf)
540             (erase-buffer)
541             (as-binary-input-file (insert-file-contents file))
542             (setq major-mode 'mime-show-message-mode)
543             (mime-view-mode mother)
544             )
545           (set-window-buffer pwin
546                              (save-excursion
547                                (set-buffer full-buf)
548                                mime-preview-buffer))
549           (select-window pwin)
550           )
551       (re-search-forward "^$")
552       (goto-char (1+ (match-end 0)))
553       (setq file (concat root-dir "/" number))
554       (mime-raw-write-region (point) (mime-entity-point-max entity) file)
555       (let ((total-file (concat root-dir "/CT")))
556         (setq total
557               (if total
558                   (progn
559                     (or (file-exists-p total-file)
560                         (save-excursion
561                           (set-buffer
562                            (get-buffer-create mime-temp-buffer-name))
563                           (erase-buffer)
564                           (insert total)
565                           (write-region (point-min)(point-max) total-file)
566                           (kill-buffer (current-buffer))
567                           ))
568                     (string-to-number total)
569                     )
570                 (and (file-exists-p total-file)
571                      (save-excursion
572                        (set-buffer (find-file-noselect total-file))
573                        (prog1
574                            (and (re-search-forward "[0-9]+" nil t)
575                                 (string-to-number
576                                  (buffer-substring (match-beginning 0)
577                                                    (match-end 0)))
578                                 )
579                          (kill-buffer (current-buffer))
580                          )))
581                 )))
582       (if (and total (> total 0))
583           (catch 'tag
584             (save-excursion
585               (set-buffer (get-buffer-create mime-temp-buffer-name))
586               (let ((full-buf (current-buffer)))
587                 (erase-buffer)
588                 (let ((i 1))
589                   (while (<= i total)
590                     (setq file (concat root-dir "/" (int-to-string i)))
591                     (or (file-exists-p file)
592                         (throw 'tag nil)
593                         )
594                     (as-binary-input-file (insert-file-contents file))
595                     (goto-char (point-max))
596                     (setq i (1+ i))
597                     ))
598                 (as-binary-output-file
599                  (write-region (point-min)(point-max)
600                                (expand-file-name "FULL" root-dir)))
601                 (let ((i 1))
602                   (while (<= i total)
603                     (let ((file (format "%s/%d" root-dir i)))
604                       (and (file-exists-p file)
605                            (delete-file file)
606                            ))
607                     (setq i (1+ i))
608                     ))
609                 (let ((file (expand-file-name "CT" root-dir)))
610                   (and (file-exists-p file)
611                        (delete-file file)
612                        ))
613                 (save-window-excursion
614                   (setq major-mode 'mime-show-message-mode)
615                   (mime-view-mode mother)
616                   )
617                 (let ((pwin (or (get-buffer-window mother)
618                                 (get-largest-window)
619                                 ))
620                       (pbuf (save-excursion
621                               (set-buffer full-buf)
622                               mime-preview-buffer)))
623                   (set-window-buffer pwin pbuf)
624                   (select-window pwin)
625                   )))))
626       )))
627
628
629 ;;; @ message/external-body
630 ;;;
631
632 (defvar mime-raw-dired-function
633   (if (and (>= emacs-major-version 19) window-system)
634       (function dired-other-frame)
635     (function mime-raw-dired-function-for-one-frame)
636     ))
637
638 (defun mime-raw-dired-function-for-one-frame (dir)
639   (let ((win (or (get-buffer-window mime-preview-buffer)
640                  (get-largest-window))))
641     (select-window win)
642     (dired dir)
643     ))
644
645 (defun mime-method-to-display-message/external-ftp (entity cal)
646   (let* ((site (cdr (assoc "site" cal)))
647          (directory (cdr (assoc "directory" cal)))
648          (name (cdr (assoc "name" cal)))
649          (pathname (concat "/anonymous@" site ":" directory)))
650     (message (concat "Accessing " (expand-file-name name pathname) "..."))
651     (funcall mime-raw-dired-function pathname)
652     (goto-char (point-min))
653     (search-forward name)
654     ))
655
656
657 ;;; @ rot13-47
658 ;;;
659
660 (defun mime-method-to-display-caesar (entity situation)
661   "Internal method for mime-view to display ROT13-47-48 message."
662   (let* ((new-name (format "%s-%s" (buffer-name)
663                            (mime-entity-number entity)))
664          (mother mime-preview-buffer))
665     (let ((pwin (or (get-buffer-window mother)
666                     (get-largest-window)))
667           (buf (get-buffer-create new-name)))
668       (set-window-buffer pwin buf)
669       (set-buffer buf)
670       (select-window pwin)
671       )
672     (setq buffer-read-only nil)
673     (erase-buffer)
674     (mime-text-insert-decoded-body entity)
675     (mule-caesar-region (point-min) (point-max))
676     (set-buffer-modified-p nil)
677     (set-buffer mother)
678     (view-buffer new-name)
679     ))
680
681
682 ;;; @ end
683 ;;;
684
685 (provide 'mime-play)
686
687 (let* ((file mime-acting-situation-examples-file)
688        (buffer (get-buffer-create " *mime-example*")))
689   (if (file-readable-p file)
690       (unwind-protect
691           (save-excursion
692             (set-buffer buffer)
693             (erase-buffer)
694             (insert-file-contents file)
695             (eval-buffer)
696             ;; format check
697             (or (eq (car mime-acting-situation-examples) 'type)
698                 (setq mime-acting-situation-examples nil))
699             )
700         (kill-buffer buffer))))
701
702 ;;; mime-play.el ends here