SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

GNUS - Integration of Muttprint in Gnus

I've got following Code from Hans-Jürgen Ficker (thanks to him). I cannot say whether it works or not -- I don't know anything about Gnus/(X)Emacs and the stuff like this ;-)

Put this code in your ~/.gnus and you should be able to print with "O P" in Gnus.

Please don't ask me any questions. If you have a better code: please mail me: Bernhard Walle <Bernhard.Walle@gmx.de>. Thanks in advance.

BTW: Oort Gnus 0.04 has built-in support for Muttprint.

Anyway, here's the code:

---------------------- 8< ------------------------------------------------- (define-key gnus-summary-save-map "P" 'gnus-summary-muttprint-buffer)

(defvar muttprint-command "muttprint")

(defun gnus-summary-pipe-to-muttprint (&optional dummy) "Pipe this article to muttprint."
(gnus-eval-in-buffer-window gnus-article-buffer (save-restriction

      (widen)
      (shell-command-on-region (point-min) (point-max)
                               muttprint-command nil)))) 

(defun gnus-summary-muttprint-buffer (&optional arg) (interactive "P")
(require 'gnus-art)
(let ((gnus-default-article-saver 'gnus-summary-pipe-to-muttprint)) (gnus-summary-save-article arg t))) ---------------------- >8 -------------------------------------------------


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.