Gnus development mailing list
 help / color / mirror / Atom feed
* images not being encoded after pgnus-0.61
@ 1998-12-03  4:26 Mike McEwan
  1998-12-03  5:23 ` Reply to unauthorized spam
  0 siblings, 1 reply; 5+ messages in thread
From: Mike McEwan @ 1998-12-03  4:26 UTC (permalink / raw)


  I found that I could no longer get images (jpeg in this instance) to 
encode into a test message after 0.61. The resultant message simply
had a blank space where the encoded jpeg should have been.

  A little mooching around and I discovered:

*** 210,216 ****
  	    (setq coded (buffer-string)))
  	(mm-with-unibyte-buffer
  	  (if (setq filename (cdr (assq 'filename cont)))
! 	      (insert-file-contents-literally filename)
  	    (insert (cdr (assq 'contents cont))))
  	  (setq encoding (mm-encode-buffer type)
  		coded (buffer-string))))
--- 214,220 ----
  	    (setq coded (buffer-string)))
  	(mm-with-unibyte-buffer
  	  (if (setq filename (cdr (assq 'filename cont)))
! 	      (insert-file-contents filename)
  	    (insert (cdr (assq 'contents cont))))
  	  (setq encoding (mm-encode-buffer type)
  		coded (buffer-string))))
***************
  
  I Changed this back to `insert-file-contents-literally' and was back
in business. Why the change? Looking at the Doc-string for the
`literally' version, I can only assume some kind of modification to
the temp buffer containing the image is screwing things up a
little. But then again, what am I screwing up now?

-- 
Mike.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-12-03 12:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-03  4:26 images not being encoded after pgnus-0.61 Mike McEwan
1998-12-03  5:23 ` Reply to unauthorized spam
1998-12-03  5:27   ` Lloyd Zusman
1998-12-03 11:47   ` Lars Magne Ingebrigtsen
1998-12-03 12:11     ` Lloyd Zusman

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).