From 146fa4f6cfdd50c89fe31c222ffef2fc1fc18a33 Mon Sep 17 00:00:00 2001 From: morioka Date: Fri, 19 Jun 1998 22:36:56 +0000 Subject: [PATCH] Move `mime-content-disposition' reference functions from mime-parse.el. --- mime-def.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/mime-def.el b/mime-def.el index a0b50b3..357bf00 100644 --- a/mime-def.el +++ b/mime-def.el @@ -146,6 +146,26 @@ (cdr (assoc parameter (mime-content-type-parameters content-type)))) +;;; @ Content-Disposition +;;; + +(defsubst mime-content-disposition-type (content-disposition) + "Return disposition-type of CONTENT-DISPOSITION." + (cdr (car content-disposition))) + +(defsubst mime-content-disposition-parameters (content-disposition) + "Return disposition-parameters of CONTENT-DISPOSITION." + (cdr content-disposition)) + +(defsubst mime-content-disposition-parameter (content-disposition parameter) + "Return PARAMETER value of CONTENT-DISPOSITION." + (cdr (assoc parameter (cdr content-disposition)))) + +(defsubst mime-content-disposition-filename (content-disposition) + "Return filename of CONTENT-DISPOSITION." + (mime-content-disposition-parameter content-disposition "filename")) + + ;;; @ MIME-entity ;;; -- 1.7.10.4