At 05:30 -0500 28 Apr 2000, Jason Helfman <[EMAIL PROTECTED]> wrote:
> Is their a way to autoview rpm files so they are't shown in a huge flush
> of ascii characters with the mutt.octet.filter?

See attached patch.

-- 
Aaron Schrab     [EMAIL PROTECTED]      http://www.execpc.com/~aarons/
 A successful [software] tool is one that was used to do something
 undreamed of by its author.  -- S. C. Johnson
--- mutt.octet.filter.orig      Fri Apr 28 18:41:06 2000
+++ mutt.octet.filter   Fri Apr 28 18:43:31 2000
@@ -142,6 +142,11 @@
     echo $(basename "$1"): unprintable data
 }
 
+ShowRPM()
+{
+    rpm -qip "$1"
+}
+
 DisplayFileType()
 {
     echo "[-- $(basename $0) file type: \"$1\" --]"
@@ -217,6 +222,7 @@
         *.doc )     ShowFileType "$1"; ShowMSWord "$1";;
         *.DOC )     ShowFileType "$1"; ShowMSWord "$1";;
         *.o )       ShowFileType "$1"; ShowObject "$1";;
+        *.rpm )     ShowFileType "$1"; ShowRPM    "$1";;
        * )         ShowMISC "$1";;
     esac
 fi

Reply via email to