+1998-05-11 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * Makefile (PACKAGE): New variable.
+ (tar): Use $(PACKAGE).
+
+1998-05-11 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * mime-parse.el: Change data format of mime-content-type.
+
+1998-05-11 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * mime-edit.el (mime-edit-decode-buffer): Use
+ 'mime-content-type-primary-type, 'mime-content-type-subtype and
+ 'mime-content-type-parameters.
+
+1998-05-11 MORIOKA Tomohiko <morioka@jaist.ac.jp>
+
+ * mime-parse.el (mime-content-type-primary-type): New function.
+ (mime-content-type-subtype): New function.
+ (mime-content-type-parameters): New function.
+ (mime-parse-message): Use 'mime-content-type-primary-type,
+ 'mime-content-type-subtype and 'mime-content-type-parameters.
+
1998-05-10 MORIOKA Tomohiko <morioka@jaist.ac.jp>
* mime-parse.el: Abolish function 'symbol-concat because it is not
\f
1998-05-06 MORIOKA Tomohiko <morioka@jaist.ac.jp>
- * SEMI: Version 1.4.1 (\e-DÒmi) released.\e-A
+ * SEMI: Version 1.4.1 (\e-DÒmi)\e-A released.
* README.en (Required environment): Modify for FLIM 1.2.0.
\f
1998-04-25 MORIOKA Tomohiko <morioka@jaist.ac.jp>
- * SEMI: Version 1.3.2 (N\e-Dò) was released.\e-A
+ * SEMI: Version 1.3.2 (N\e-Dò)\e-A was released.
* mime-edit.el (mime-edit-mode-entity-prefix): New variable.
(mime-edit-mode-entity-map): New variable.
\f
1998-03-13 MORIOKA Tomohiko <morioka@jaist.ac.jp>
- * SEMI: Version 1.0.2 (Nonoichi-K\e-Dòdaimae) was released.\e-A
+ * SEMI: Version 1.0.2 (Nonoichi-K\e-Dòdaimae)\e-A was released.
1998-03-12 MORIOKA Tomohiko <morioka@jaist.ac.jp>
\f
1998-02-25 MORIOKA Tomohiko <morioka@jaist.ac.jp>
- * SEMI: Version 1.0.0 (Nukaj\e-Dþtaku-mae) was released.\e-A
+ * SEMI: Version 1.0.0 (Nukaj\e-Dþtaku-mae)\e-A was released.
* SEMI-ELS: Remove mime-tar.el.
\f
1997-11-16 MORIOKA Tomohiko <morioka@jaist.ac.jp>
- * SEMI: Version 0.116 (D\e-Dòhòji) was released.\e-A
+ * SEMI: Version 0.116 (D\e-Dòhòji)\e-A was released.
1997-11-15 MORIOKA Tomohiko <morioka@jaist.ac.jp>
# Makefile for SEMI kernel.
#
-VERSION = 1.4.2
+VERSION = 1.4.3
+PACKAGE = semi
SHELL = /bin/sh
MAKE = make
tar:
cvs commit
- sh -c 'cvs tag -RF semi-`echo $(VERSION) \
+ sh -c 'cvs tag -RF $(PACKAGE)-`echo $(VERSION) \
| sed s/\\\\./_/ | sed s/\\\\./_/`; \
cd /tmp; \
cvs -d :pserver:anonymous@chamonix.jaist.ac.jp:/hare/cvs/root \
- export -d semi-$(VERSION) \
- -r semi-`echo $(VERSION) \
+ export -d $(PACKAGE)-$(VERSION) \
+ -r $(PACKAGE)-`echo $(VERSION) \
| sed s/\\\\./_/ | sed s/\\\\./_/` semi'
- $(RM) /tmp/semi-$(VERSION)/ftp.in
- cd /tmp; $(TAR) cvzf semi-$(VERSION).tar.gz semi-$(VERSION)
- cd /tmp; $(RM) -r semi-$(VERSION)
+ $(RM) /tmp/$(PACKAGE)-$(VERSION)/ftp.in
+ cd /tmp; $(TAR) cvzf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
+ cd /tmp; $(RM) -r $(PACKAGE)-$(VERSION)
sed "s/VERSION/$(VERSION)/" < ftp.in > ftp
(goto-char (point-min))
(let ((ctl (mime-read-Content-Type)))
(if ctl
- (let ((type (car ctl))
- (stype (car (cdr ctl)))
- (params (cdr (cdr ctl)))
- )
+ (let ((type (mime-content-type-primary-type ctl))
+ (stype (mime-content-type-subtype ctl))
+ (params (mime-content-type-parameters ctl)))
(cond
((and (eq type 'application)(eq stype 'pgp-signature))
(delete-region (point-min)(point-max))
(substring str e)
))))
+
+;;; @ Content-Type
+;;;
+
(defun mime-parse-Content-Type (string)
"Parse STRING as field-body of Content-Type field.
Return value is
(setq dest (cons (car ret) dest)
string (cdr ret))
)
- (cons (intern type) (cons (intern subtype) (nreverse dest)))
+ (list* (cons 'type (intern type))
+ (cons 'subtype (intern subtype))
+ (nreverse dest))
)))
+(defun mime-read-Content-Type ()
+ "Read field-body of Content-Type field from current-buffer,
+and return parsed it. Format of return value is as same as
+`mime-parse-Content-Type'."
+ (let ((str (std11-field-body "Content-Type")))
+ (if str
+ (mime-parse-Content-Type str)
+ )))
+
+(defsubst mime-content-type-primary-type (content-type)
+ "Return primary-type of CONTENT-TYPE."
+ (cdr (car content-type)))
+
+(defsubst mime-content-type-subtype (content-type)
+ "Return primary-type of CONTENT-TYPE."
+ (cdr (cadr content-type)))
+
+(defsubst mime-content-type-parameters (content-type)
+ "Return primary-type of CONTENT-TYPE."
+ (cddr content-type))
+
+
+;;; @ Content-Disposition
+;;;
(defconst mime-disposition-type-regexp mime-token-regexp)
(cons ctype (nreverse dest))
)))
-
-;;; @ field reader
-;;;
-
-(defun mime-read-Content-Type ()
- "Read field-body of Content-Type field from current-buffer,
-and return parsed it. Format of return value is as same as
-`mime-parse-Content-Type'."
- (let ((str (std11-field-body "Content-Type")))
+(defun mime/Content-Disposition ()
+ "Read field-body of Content-Disposition field from current-buffer,
+and return parsed it. [mime-parse.el]"
+ (let ((str (std11-field-body "Content-Disposition")))
(if str
- (mime-parse-Content-Type str)
+ (mime-parse-Content-Disposition str)
)))
+
+;;; @ Content-Transfer-Encoding
+;;;
+
(defun mime/Content-Transfer-Encoding (&optional default-encoding)
"Read field-body of Content-Transfer-Encoding field from
current-buffer, and return it.
default-encoding)
))
-(defun mime/Content-Disposition ()
- "Read field-body of Content-Disposition field from current-buffer,
-and return parsed it. [mime-parse.el]"
- (let ((str (std11-field-body "Content-Disposition")))
- (if str
- (mime-parse-Content-Disposition str)
- )))
-
;;; @ message parser
;;;
field. Its format must be as same as return value of
mime-{parse|read}-Content-Type."
(setq default-ctl (or (mime-read-Content-Type) default-ctl))
- (let ((primtype (car default-ctl))
- (subtype (car (cdr default-ctl)))
- (params (cdr (cdr default-ctl)))
- (encoding (or (mime/Content-Transfer-Encoding) default-encoding))
- )
+ (let ((primtype (mime-content-type-primary-type default-ctl))
+ (subtype (mime-content-type-subtype default-ctl))
+ (params (mime-content-type-parameters default-ctl))
+ (encoding (or (mime/Content-Transfer-Encoding) default-encoding)))
(let ((boundary (assoc "boundary" params)))
(cond (boundary
(setq boundary (std11-strip-quoted-string (cdr boundary)))