bongo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bongo-devel] Re: Insert commands


From: Daniel Jensen
Subject: [bongo-devel] Re: Insert commands
Date: Sat, 03 Mar 2007 00:46:26 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

My first stab at the save function was a little too hasty. It wrote
HTTP headers along with the actual contents to the file. Here's a
working version:

(defun bongo-url-retrieved-callback (status file-name)
  (if status
      (error "Error downloading %s" (file-name-nondirectory file-name))
    (let ((handle (mm-dissect-buffer t)))
      (mm-save-part-to-file handle file-name)
      (mm-destroy-parts handle))
    (message "Finished downloading %s" (file-name-nondirectory file-name)))
  (kill-buffer (current-buffer)))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]