X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=mel.el;h=b1902b456713af892c63f942b409061973af241a;hb=41fe6bdf8523a73c43e73612b5df85caa5622081;hp=ccfc07279288ae926967cdbd87d39ae7e476d70a;hpb=f7230fcb61e32630f6bcf87e6eb8b35c564dd06c;p=elisp%2Fflim.git diff --git a/mel.el b/mel.el index ccfc072..b1902b4 100644 --- a/mel.el +++ b/mel.el @@ -96,8 +96,11 @@ Content-Transfer-Encoding for it." (mel-define-backend "binary" ("8bit")) -(when (and (fboundp 'base64-encode-string) - (subrp (symbol-function 'base64-encode-string))) +(defvar mel-b-builtin + (and (fboundp 'base64-encode-string) + (subrp (symbol-function 'base64-encode-string)))) + +(when mel-b-builtin (mel-define-backend "base64") (mel-define-method-function (mime-encode-string string (nil "base64")) 'base64-encode-string) @@ -201,8 +204,10 @@ ENCODING must be string." ENCODING must be string. If ENCODING is found in `mime-string-decoding-method-alist' as its key, this function decodes the STRING by its value." - (funcall (mel-find-function 'mime-decode-string encoding) - string)) + (let ((f (mel-find-function 'mime-decode-string encoding))) + (if f + (funcall f string) + string))) (mel-define-service encoded-text-encode-string (string encoding)