Gnus development mailing list
 help / color / mirror / Atom feed
From: wmperry@aventail.com (William M. Perry)
Subject: [PATCH] removal of old cid handling from gnus...
Date: 29 Nov 1998 08:43:54 -0500	[thread overview]
Message-ID: <864sri8vhh.fsf@kramer.bp.aventail.com> (raw)

Emacs/W3 4.0pre30 will correctly handle all the fun of content-id fetching, 
so gnus won't have to do anything.

You can get it from ftp://ftp.cs.indiana.edu/pub/elisp/w3/.betas/w3.tar.gz
in a few minutes.

-Bill P.

*** mm-view.el~ Fri Nov 27 07:18:58 1998
--- mm-view.el  Sun Nov 29 08:39:19 1998
***************
*** 45,51 ****
      (w3-do-setup)
      (require 'url)
      (require 'w3-vars)
-     (url-register-protocol 'cid nil 'url-identity-expander)
      (setq mm-w3-setup t)))
  
  (defun mm-inline-text (handle)
--- 45,50 ----

*** mm-decode.el~       Fri Nov 27 07:18:58 1998
--- mm-decode.el        Sun Nov 29 08:40:08 1998
***************
*** 529,558 ****
         (< (glyph-height (annotation-glyph image))
            (window-pixel-height)))))
  
- (defun url-cid (url)
-   (set-buffer (get-buffer-create url-working-buffer))
-   (let ((content-type nil)
-       (encoding nil)
-       (part nil)
-       (data nil))
-     (if (not (string-match "^cid:\\(.*\\)" url))
-       (message "Malformed CID URL: %s" url)
-       (setq url (url-unhex-string (match-string 1 url))
-           part (mm-get-content-id url))
-       (if (not part)
-         (message "Unknown CID encounterred: %s" url)
-       (setq data (buffer-string nil nil (mm-handle-buffer part))
-             content-type (mm-handle-type part)
-             encoding (symbol-name (mm-handle-encoding part)))
-       (if (= 0 (length content-type)) (setq content-type "text/plain"))
-       (if (= 0 (length encoding)) (setq encoding "8bit"))
-       (setq url-current-content-length (length data)
-             url-current-mime-type content-type
-             url-current-mime-encoding encoding
-             url-current-mime-headers (list (cons "content-type" content-type)
-                                            (cons "content-encoding" encoding)))
-       (and data (insert data))))))
- 
  (provide 'mm-decode)
  
  ;; mm-decode.el ends here
--- 529,534 ----


                 reply	other threads:[~1998-11-29 13:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=864sri8vhh.fsf@kramer.bp.aventail.com \
    --to=wmperry@aventail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).