--- vm-8.1.0.orig/Makefile
+++ vm-8.1.0/Makefile
@@ -0,0 +1,67 @@
+
+
+# location of required programms
+BZR = bzr --no-plugins
+TAR = tar
+RM   = /bin/rm
+XARGS = xargs
+prefix = /usr
+INSTALL = /usr/bin/install -c
+
+SUBDIRS = lisp info src pixmaps
+
+##############################################################################
+all: vm-load.el
+	@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i) || exit 1; done
+
+Makefile vm-load.el: %: config.status ./%.in
+	./config.status $@
+
+./configure: ./configure.ac
+	cd . ; autoconf
+	./config.status --recheck
+
+config.status: ./configure
+	./config.status --recheck
+
+install:
+	@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i install) || exit 1; done
+
+clean:
+	@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i clean) || exit 1; done
+
+distclean:
+	@for i in $(SUBDIRS) ; do ($(MAKE) -C $$i distclean) || exit 1; done
+
+push:
+	$(BZR) push
+
+##############################################################################
+PKGDIR =  $(shell pwd)/,,package/
+PKGINFO = $(PKGDIR)/lisp/vm/_pkg.el
+xemacs-package:
+	if [ "xemacs" != "xxemacs" ]; then \
+	  echo "ERROR: Current build dir not configured for XEmacs,"; \
+	  echo "ERROR: Please re-run configure with --with-emacs=xemacs."; \
+	  exit 1; \
+	fi
+	-$(RM) -rf ,,package
+	cd lisp; make PACKAGEDIR=$(PKGDIR)/lisp/vm install-pkg
+	cd info; make info_dir=$(PKGDIR)/info install-pkg
+	cd src; make info_dir=$(PKGDIR)/bin install-pkg
+	echo ";;;###autoload" > $(PKGINFO)
+	echo "(package-provide 'vm'" > $(PKGINFO)
+	echo "         :version 0.7" >> $(PKGINFO)
+	echo '         :author-version "'`$(BZR) revno "."`'"' >> $(PKGINFO)
+	echo "         :type 'regular)" >> $(PKGINFO)
+	mkdir $(PKGDIR)/pkginfo;
+	touch $(PKGDIR)/pkginfo/MANIFEST.vm;
+	cd $(PKGDIR); find -type f | cut -c3- > pkginfo/MANIFEST.vm
+	cd ,,package; $(TAR) -cvzf ../vm-pkg.tar.gz *
+
+##############################################################################
+release::
+	./release.sh
+
+snapshot::
+	./release.sh snapshot
--- vm-8.1.0.orig/vm-load.el
+++ vm-8.1.0/vm-load.el
@@ -0,0 +1,6 @@
+; -*- mode: emacs-lisp -*-
+;; Load VM easily
+
+(add-to-list 'load-path "/home/srivasta/build/vm-8.1.0/lisp")
+
+(load "vm-autoloads")
--- vm-8.1.0.orig/debian/docentry
+++ vm-8.1.0/debian/docentry
@@ -0,0 +1,17 @@
+Document: vm
+Title: VM: A mail user agent for Emacs.
+Author: Kyle Jones
+Abstract: VM (View Mail) is an Emacs subsystem that allows UNIX 
+ mail to be read and disposed of within Emacs.  Commands exist to do 
+ the normal things expected of a mail user agent, such as generating 
+ replies, saving messages to folders, deleting messages and so on. 
+ There are other more advanced commands that do tasks like bursting 
+ and creating digests, message forwarding, and organizing message 
+ presentation according to various criteria. 
+ VM comes by default with XEmacs.
+Section: Network/Communication
+
+Format: HTML
+Index: /usr/share/doc/vm/vm_toc.html
+Files: /usr/share/doc/vm/vm_*.html
+
--- vm-8.1.0.orig/debian/watch
+++ vm-8.1.0/debian/watch
@@ -0,0 +1,13 @@
+# format version number, currently 2; this line is compulsory!
+version=3
+
+# Example watch control file for uscan
+# arch-tag: 9cd37f67-70f6-4949-8f97-f5b12862c7ae
+# http://www.seanet.com/~kylemonger/vm/vm-([0-9][0-9\.]*)\.tar\.gz debian
+
+#opts="uversionmangle=s/\.$//" \
+#http://download.savannah.nongnu.org/releases/viewmail/vm-([0-9][0-9\.]*?[0-9]+)(-\d+)?\.tgz debian
+
+opts=filenamemangle=s/tgz$/tar.gz/ \
+https://launchpad.net/vm http://launchpad.net/vm/.*/.*/\+download/vm-(.*).tgz
+
--- vm-8.1.0.orig/debian/control.mime-codecs
+++ vm-8.1.0/debian/control.mime-codecs
@@ -0,0 +1,51 @@
+Source: vm
+Section: mail
+Priority: optional
+Maintainer: Manoj Srivastava <srivasta@debian.org>
+Standards-Version: 3.6.2.0
+Build-Depends-Indep: emacs21, texi2html (>= 1.76-1)
+Build-Depends: file, emacs21, texi2html (>= 1.76-1)
+
+Package: vm
+Architecture: all
+Priority: optional
+Section: mail
+Depends: ucf (>= 0.08), emacs21
+Recommends: make
+Suggests: exim4 | sendmail | mail-transport-agent,  mime-codecs
+Provides: mail-reader
+Conflicts: vm-el, semi, wemi, semi1.12, wemi1.12 
+Replaces: vm-el
+Description: A mail user agent for Emacs.
+ VM (View Mail) is an Emacs subsystem that allows UNIX mail to be read
+ and disposed of within Emacs.  Commands exist to do the normal things
+ expected of a mail user agent, such as generating replies, saving
+ messages to folders, deleting messages and so on.  There are other
+ more advanced commands that do tasks like bursting and creating
+ digests, message forwarding, and organizing message presentation
+ according to various criteria.  With smtpmail in modern emacsen, you do 
+ not need an MTA locally in order to use VM.
+ .
+ VM 6.x versions have problems with the library tm-vm from the Tiny Mime (TM)
+ package, since that version was written for VM 5.X.  Indeed, the problems
+ seems to exist with semi as well.
+ .
+ This package does not cater to XEmacs, since vm comes (by default)
+ bundled in with XEmacs.
+
+Package: mime-codecs
+Architecture: any
+Section: utils
+Priority: optional
+Depends: ${shlibs:Depends}
+Enhances: vm
+Description: Fast Quoted-Printable and BASE64 MIME transport codecs
+ At its most basic MIME is a set of transfer encodings used to ensure
+ error free transport, and a set of content types.  VM understands the
+ two standard MIME transport encodings, Quoted-Printable and BASE64,
+ and will decode messages that use them as necessary.  VM has
+ Emacs-Lisp based Quoted-Printable and BASE64 encoders and decoders,
+ but you can have VM use external programs to perform these tasks and
+ the process will almost certainly be faster. This package provides
+ external executables for Quoted-Printable and BASE64 encoders and
+ decoders.  
--- vm-8.1.0.orig/debian/README.debian
+++ vm-8.1.0/debian/README.debian
@@ -0,0 +1,61 @@
+See /usr/share/doc/vm/examples/dot.vm for some options you may well
+want to set in ~/.vm - IMO the behaviour without some of these is not
+optimal.
+
+See /usr/share/doc/vm/README.hilit19 for a note about using vm with
+hilit19.
+
+The files in /usr/lib/emacs/site-lisp/vm/etc are intended for use with
+XEmacs; I left them in so that vm will stand a better chance of
+working with Xemacs if someone packages it for Debian or installs it
+for themselves.
+
+It should also be mentioned here that the documentation for vm is
+woefully behind the times; there fore we include
+/usr/share/doc/vm/vm-vars.el.gz, which has information about all
+customizable variables in vm.
+
+Do not load the library "tm-vm" from the Tiny Mime (TM) package. That
+library was designed for an older version of VM, and it breaks current
+versions rather badly. It is still fine to use TM to compose mail
+messages, though.
+
+There are fast external decoders for common mime transport encodings
+bundled into the source packages, and these are available in the
+separate mime-codec package.  Similar functionality is available in
+the metamail package.
+
+;; The perl setting thanks to Daniel Kahn Gillmor.
+;; If you have the perl MIME modules installed, you can use these settings:
+; (setq
+;   vm-mime-base64-decoder-program "/usr/bin/perl"
+;   vm-mime-base64-decoder-switches '("-MMIME::Base64" "-ne" "print decode_base64($_)")
+;   vm-mime-base64-encoder-program "/usr/bin/perl"
+;   vm-mime-base64-encoder-switches '("-MMIME::Base64" "-ne" "print encode_base64($_)")
+;
+;   vm-mime-qp-decoder-program "/usr/bin/perl"
+;   vm-mime-qp-decoder-switches '("-MMIME::QuotedPrint" "-ne" "print decode_qp($_)")
+;   vm-mime-qp-encoder-program "/usr/bin/perl"
+;   vm-mime-qp-encoder-switches '("-MMIME::QuotedPrint" "-ne" "print encode_qp($_)")
+; )
+
+;; Uncomment these if you have the obsolete package mime-codecs installed
+; (setq
+;  vm-mime-qp-decoder-program "qp-decode"
+;  vm-mime-qp-encoder-program "qp-encode"
+;  vm-mime-base64-decoder-program "base64-decode"
+;  vm-mime-base64-encoder-program "base64-encode"
+;  )
+
+;; If you have metamail, you would set these instead:
+;;     (setq vm-mime-base64-decoder-program "mimencode")
+;;     (setq vm-mime-base64-decoder-switches '("-u" "-b" "-p"))
+;;     (setq vm-mime-base64-encoder-program "mimencode")
+;;     (setq vm-mime-base64-encoder-switches '("-b"))
+;;     (setq vm-mime-qp-decoder-program "mimencode")
+;;     (setq vm-mime-qp-decoder-switches '("-u" "-q"))
+;;     (setq vm-mime-qp-encoder-program "mimencode")
+;;     (setq vm-mime-qp-encoder-switches '("-q"))
+
+
+arch-tag: 9fe93746-7c4a-4b0c-b1cd-bc2f6713c345
--- vm-8.1.0.orig/debian/local-vars.mk
+++ vm-8.1.0/debian/local-vars.mk
@@ -0,0 +1,63 @@
+############################ -*- Mode: Makefile -*- ###########################
+## local-vars.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 10:43:00 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Fri Feb  8 21:35:37 2008
+## Last Machine Used: anzu.internal.golden-gryphon.com
+## Update Count     : 22
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: 1a76a87e-7af5-424a-a30d-61660c8f243e
+## 
+###############################################################################
+
+FILES_TO_CLEAN  = lisp/vm.elc info/vm.info* debian/files debian/substvars \
+                  debian/buildinfo src/base64-decode src/base64-encode    \
+                  src/qp-decode src/qp-encode config.status config.log
+STAMPS_TO_CLEAN = 
+DIRS_TO_CLEAN   = debian/html
+
+# Location of the source dir
+SRCTOP    := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
+TMPTOP     = $(SRCTOP)/debian/$(package)
+LINTIANDIR = $(TMPTOP)/usr/share/lintian/overrides
+DOCBASE    = $(TMPTOP)/usr/share/doc-base
+MENUDIR    = $(TMPTOP)/usr/share/menu
+
+PREFIX     = /usr
+P_MANDIR   = $(PREFIX)/share/man
+P_BINDIR   = $(PREFIX)/bin
+P_INFODIR  = $(PREFIX)/share/info
+P_DOCTOP   = $(PREFIX)/share/doc
+P_LISPDIR  = $(PREFIX)/share/emacs/site-lisp/$(package)
+P_PIXMAPDIR= $(P_LISPDIR)/pixmaps
+
+BINDIR     = $(TMPTOP)$(P_BINDIR)
+INFODIR    = $(TMPTOP)$(P_INFODIR)
+DOCTOP     = $(TMPTOP)$(P_DOCTOP)
+LISPDIR    = $(TMPTOP)$(P_LISPDIR)
+PIXMAPDIR  = $(LISPDIR)/pixmaps
+MANDIR     = $(TMPTOP)$(P_MANDIR)
+MAN1DIR    = $(MANDIR)/man1
+MAN3DIR    = $(MANDIR)/man3
+MAN5DIR    = $(MANDIR)/man5
+MAN7DIR    = $(MANDIR)/man7
+MAN8DIR    = $(MANDIR)/man8
+
+DOCDIR     = $(DOCTOP)/$(package)
+STARTDIRS  = $(TMPTOP)/etc/emacs20/site-start.d $(TMPTOP)/etc/emacs21/site-start.d
+COMPILEDIR = $(TMPTOP)/usr/lib/emacsen-common/packages/
+STARTFILE  = $(package)-init.el
+
+define checkdir
+	@test -f debian/rules -a -f lisp/vm-version.el || \
+          (echo Not in correct source directory; exit 1)
+endef
+
+define checkroot
+	@test $$(id -u) = 0 || (echo need root priviledges; exit 1)
+endef
--- vm-8.1.0.orig/debian/prerm
+++ vm-8.1.0/debian/prerm
@@ -0,0 +1,130 @@
+#! /bin/sh
+#                               -*- Mode: Sh -*-
+# prerm ---
+# Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com )
+# Created On       : Fri Nov 14 12:16:39 2003
+# Created On Node  : glaurung.green-gryphon.com
+# Last Modified By : Manoj Srivastava
+# Last Modified On : Sat Dec  3 15:14:38 2005
+# Last Machine Used: glaurung.internal.golden-gryphon.com
+# Update Count     : 10
+# Status           : Unknown, Use with caution!
+# HISTORY          :
+# Description      :
+#
+# arch-tag: a4c1a888-137d-4800-98f8-93d0365422d8
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+#
+
+# Abort if any command returns an error value
+set -e
+
+package_name=vm
+
+if [ -z "$package_name" ]; then
+    print >&2 "Internal Error. Please report a bug."
+    exit 1;
+fi
+
+
+# This script is called as the first step in removing the package from
+# the system.  This includes cases where the user explicitly asked for
+# the package to be removed, upgrade, automatic removal due to conflicts,
+# and deconfiguration due to temporary removal of a depended-on package.
+
+case "$1" in
+  remove)
+    # This package about to be removed.
+    :
+
+    # Remove package-specific directories from /usr/local.  Don't try
+    # to remove standard directories such as /usr/local/lib.
+    ##: if test -d /usr/local/lib/${package_name}; then
+    ##:   rmdir /usr/local/lib/${package_name} || true
+    ##: fi
+
+    # Deactivate menu-methods script.
+    ##: chmod a-x /etc/menu-methods/${package_name}
+
+    # Withdraw our version of a program.
+    ##: update-alternatives --remove program /usr/bin/alternative
+
+
+    # Get rid of the byte compiled files
+    if [ -x /usr/lib/emacsen-common/emacs-package-remove ]; then
+          /usr/lib/emacsen-common/emacs-package-remove $package_name
+    fi
+
+    if [ -L /usr/doc/$package_name ]; then
+        rm -f /usr/doc/$package_name
+    fi
+
+    # There are two sub-cases:
+    if test "${2+set}" = set; then
+      if test "$2" != in-favour; then
+        echo "$0: undocumented call to \`prerm $*'" 1>&2
+        exit 0
+      fi
+      # We are being removed because of a conflict with package $3
+      # (version $4), which is now being installed.
+      :
+
+    else
+      # The package is being removed in its own right.
+      :
+
+    fi ;;
+  deconfigure)
+    if test "$2" != in-favour || test "$5" != removing; then
+      echo "$0: undocumented call to \`prerm $*'" 1>&2
+      exit 0
+    fi
+    # Package $6 (version $7) which we depend on is being removed due
+    # to a conflict with package $3 (version $4), and this package is
+    # being deconfigured until $6 can be reinstalled.
+    :
+
+    ;;
+  upgrade)
+    # Prepare to upgrade FROM THIS VERSION of this package to version $2.
+    :
+
+    # Get rid of the byte compiled files
+    if [ -x /usr/lib/emacsen-common/emacs-package-remove ]; then
+          /usr/lib/emacsen-common/emacs-package-remove $package_name
+    fi
+    if [ -L /usr/doc/$package_name ]; then
+        rm -f /usr/doc/$package_name
+    fi
+
+    ;;
+  failed-upgrade)
+    # Prepare to upgrade from version $2 of this package TO THIS VERSION.
+    # This is only used if the old version's prerm couldn't handle it,
+    # and returned non-zero.  (Fix old prerm bugs here.)
+    :
+    # Get rid of the byte compiled files
+    if [ -x /usr/lib/emacsen-common/emacs-package-remove ]; then
+          /usr/lib/emacsen-common/emacs-package-remove $package_name
+    fi
+
+    ;;
+  *) echo "$0: didn't understand being called with \`$1'" 1>&2
+     exit 0;;
+esac
+
+exit 0
--- vm-8.1.0.orig/debian/NEWS.Debian
+++ vm-8.1.0/debian/NEWS.Debian
@@ -0,0 +1,10 @@
+vm (8.0.12-2) unstable; urgency=low
+
+  * This version of VM does not work with Emacs 21 and lower, since those
+    versions are missing the custom-autoload function which is used
+    invm-autoloads.el.  As a result, no autoloads for vm are defined,
+    making vm completely unusable with emacs21. VM no longer byte compiles
+    itself for those versions.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 06 Jan 2009 11:12:31 -0600
+
--- vm-8.1.0.orig/debian/README.hilit19
+++ vm-8.1.0/debian/README.hilit19
@@ -0,0 +1,21 @@
+                        Use of VM with hilit19
+
+hilit19 recommends the following lines in your ~/.emacs to use it:-
+
+    (cond (window-system
+           (setq hilit-mode-enable-list  '(not text-mode)
+                 hilit-background-mode   'light
+                 hilit-inhibit-hooks     nil
+                 hilit-inhibit-rebinding nil)
+           (require 'hilit19)
+    ))
+
+To make it work properly with VM, add the following immediately after
+``(require 'hilit19)'':-
+
+           (add-hook 'vm-summary-pointer-update-hook 'hilit-rehighlight-buffer)
+           (add-hook 'vm-select-message-hook 'hilit-rehighlight-buffer)
+
+16/7/1995 Richard Kettlewell <richard@elmail.co.uk>
+
+arch-tag: 64cf46f5-1362-4456-9a29-3b9bb9c4de29
--- vm-8.1.0.orig/debian/copyright
+++ vm-8.1.0/debian/copyright
@@ -0,0 +1,64 @@
+This package was originally debianized by Richard Kettlewell
+<richard@elmail.co.uk>. The current maintainer is Manoj Srivastava
+<srivasta@debian.org>.
+
+It was originally downloaded from 
+<url:http://download.savannah.nongnu.org/releases/viewmail/>
+The new home for this is now <url:https://launchpad.net/vm>
+
+Copyright:
+
+Program Copyright © 1989-2003 Kyle E. Jones
+        Copyright © 1998-2007 Robert Widhopf-Fenk
+        Copyright © 1997, 1999-2000 Noah S. Friedman
+        Copyright © 1999 Rob Hodges
+        Copyright © 2001-2007 by Ulf Jasper
+        Copyright © 2004 Kevin Rodgers]
+        Copyright © 2006 Robert P. Goldman
+
+Modifications for Debian GNU/Linux Copyright © 1995 Richard Kettlewell
+
+The Debian specific changes are © 1997-2009 Manoj Srivastava
+<srivasta@debian.org>, and distributed under the terms of the GNU
+General Public License, version 2, or any later version, at your
+convenience.
+
+Copyright © 2006-2007 Robert Widhopf-Fenk <hack@robf.de>
+
+VM is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'; or
+alternatively there is a copy in the vm source package in the file
+COPYING.
+
+    A copy of the GNU General Public License is also available at
+    <URL:http://www.gnu.org/copyleft/gpl.html>.  You may also obtain
+    it by writing to the Free Software Foundation, Inc., 51 Franklin
+    St, Fifth Floor, Boston, MA 02110-1301 USA
+
+
+
+                    ----------------------------------------
+
+Manual Copyright © 1989, 1991 Kyle E. Jones
+
+Permission is granted to make and distribute verbatim copies of this
+manual provided the copyright notice and this permission notice are
+preserved on all copies.
+
+There are also fast encoders and decoders for common mime transport
+encodings included in this package. These programs are in the public
+domain. 
+
+
+Manoj Srivastava <srivasta@debian.org>
+arch-tag: d4250e44-a0e0-4ee0-adb9-2bd74f6eeb27
--- vm-8.1.0.orig/debian/changelog
+++ vm-8.1.0/debian/changelog
@@ -0,0 +1,3585 @@
+vm (8.1.0-1.17.201403130311) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Thu, 13 Mar 2014 03:11:53 +0100
+
+vm (8.1.0-1) unstable; urgency=low
+
+  * New upstream version
+  * [20fe869]: Merge branch 'upstream' into topic--debian
+  * Bug fix: "sc-cite-original citation hook fails for mime encoded
+    messages", thanks to Klaus Reichl              (Closes: #550859).
+  * Bug fix: "8bit characters are not escapes in In-reply-to field",
+    thanks to Neil Brown                           (Closes: #434565).
+  * Bug fix: "vm-mime-encode-headers may mess up recipient addresses",
+    thanks to Francois Fleuret                     (Closes: #553402).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 28 Mar 2010 08:03:45 -0700
+
+vm (8.0.13-1) unstable; urgency=low
+
+  * New upstream release. The project isunder new management now. This is
+    a bug fixing release, which handles a flaw in caching.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 29 Nov 2009 11:48:54 -0600
+
+vm (8.0.12-7) unstable; urgency=low
+
+  * Told lintian to stop parsing old changelogs.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 01 Nov 2009 20:21:57 -0600
+
+vm (8.0.12-6) unstable; urgency=low
+
+  * Take extra care to remove cruft during remove and/or purge.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 20 Oct 2009 09:59:26 -0500
+
+vm (8.0.12-5) unstable; urgency=low
+
+  * [e457f1c]: [topic--debian]: remove references to vm-easymenu
+    Bug fix: "vm.el still references vm-easymenu, which has gone", thanks
+    to Klaus Reichl                                    (Closes: #470263).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 12 Oct 2009 22:59:37 -0500
+
+vm (8.0.12-4) unstable; urgency=low
+
+  * New release to bring package into conformance with latest policy.
+  * [88e374f]: [vm]: Info files are now installed using triggers
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 16 Aug 2009 16:58:04 -0500
+
+vm (8.0.12-3) unstable; urgency=low
+
+  * A new, bug fixing release.
+  * [1493c77]: [vm] Remove files from the site-lisp directory
+    This was caught by piuparts.
+  * Updated Standards version to 3.8.2.0.  Also, use emacs23 instead of
+    emacs22, now that it has entered testing.
+  * Info files are now installed using triggers.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 13 Aug 2009 12:38:42 -0500
+
+vm (8.0.12-2) unstable; urgency=low
+
+  * This version of VM does not work with Emacs 21 and lower, since those
+    versions are missing the custom-autoload function which is used
+    invm-autoloads.el.  As a result, no autoloads for vm are defined,
+    making vm completely unusable with emacs21. VM no longer byte compiles
+    itself for those versions.  Remove support for emacs20 and emacs21 in
+    emacsen.{install,remove}, add support for emacs23. Also add an
+    NEWS.Debian file to document this change.
+    Bug fix: "broken with emacs21 - (void-function custom-autoload)",
+    thanks to Sven Joachim                               (Closes: #508543).
+  * [c9a55df]: Added missing autoload cookie for
+    vm-decode-postponed-mime-message. For good measure, add an autoload
+    directive to the vm-init file as well.
+    Bug fix: "Now requires forced load of vm-pine ", thanks to Dirk
+    Eddelbuettel                                          (Closes: #516591).
+  * [debiandir:a9a97a6]: remove call to install-docs, since this is now
+    done with triggers.
+  * [debiandir:263c26a]: Remove configure generated files in clean target
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 22 Mar 2009 02:19:48 -0500
+
+vm (8.0.12-1) unstable; urgency=low
+
+  * New upstream release
+    [b68c89b] Merge branches 'upstream', 'topic--debian' and 'topic--base64'
+    [580b1fe] Merge branch 'upstream' into topic--debian
+    [5007800] Merge branch 'upstream' into topic--base64
+    [f6416fc] Imported vm-8.0.12
+    IMPROVEMENTS:
+    + Display version info when calling `vm-version' interactively.
+      (Thanks to Ulrich Mueller)
+    + Yanking of messages uses the same MIME decoding as the presentation
+      now.  See the new variable `vm-mime-yank-attachments' to configure if
+      attachments are also yanked.
+    + `u-vm-color.el' is bundled and maintained with VM now.  Ulf Jasper
+       handed it over to me as he switched to Gnus.
+    BUGFIXES:
+    + Detect w3 by using `locate-library' instead of checking for a bound
+      `w3-about'. (Thanks to Klaus Straubinger)
+    + vm.revno.el was not installed anymore b "make install".  (Thanks to
+      Ulrich Mueller for reporting)
+    + Insert `emacs-version' instead of creating wrong version string for
+      XEmacs, i.e. the patch level was the major version. (Thanks to Stephen
+      Turnbull)
+    + Correctly locate the data directory for the pixmaps when running as a
+      XEmacs package.
+    + Check for some MIME character sets that may be available in recent
+      XEmacs.  (Thanks to Aidan Kehoe for the patch)
+    + Some documentation fixes. (Thanks to Michael Ernst for the patches)
+    + Fixed infinite loop in vm-mime-encode-words on XEmacs  21.5-b28.
+      (Thanks to Aidan Kehoe for the patch)
+    + Detect "score" (additionally to "hits") in "X-Spam-Status:" headers in
+      `vm-su-spam-score-aux'. (Patch from Michael Ernst)
+    + Typo fix in vm-pcrisis.texinfo. (Patch from Michael Ernst)
+    + Header encoding was BASE64 instead of QP by default and it was not
+      encoding whole words, but only the 8bit chars instead. (Thanks to Ulrich
+      Mueller for reporting)
+    + MIME text parts interleaved by attachments are now correctly yanked,
+      e.g. when replying to a message.
+    + Limit the buffer-name length and sanitize the used characters. (Thanks
+      to Mark Diekhans for reporting)
+    + Do not fail on corrupted address headers.  (Reported by John Covici)
+    + Fixed GTK detection and toolbar handling for newer Emacs 22 versions.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 06 Nov 2008 23:16:48 -0600
+
+vm (8.0.11-1) unstable; urgency=low
+
+  * New upstream release. Excerpted changes:
+    +  Removed dependency of vm-revno.el to other lisp sources to avoid
+       building it in a release bundle.  (Thanks to Ralf Fassel)
+    + Added missing documentation for `vm-user-agent', "?" binding and
+      'vm-delete-duplicate-messages'.  (Thanks to Alan Wehmann)
+    + `vm-message-history.el' now uses a buffer similar to the summary for
+      browsing the history.  The buffer replaces the summary buffer when
+      present.  Duplicate history entries will be removed.
+    + Define and use `vm-replace-in-string' which is `replace-in-string'
+      from XEmacs to avoid clashes with other GNU Emacs packages defining
+      it differently. Unfortunately, GNU Emacs still does not provide this
+      handy function. (Thanks to José Miguel Figueroa)
+    + MIME encoding of header will automatically happen now and has been moved
+      from `vm-rfaddons.el' to `vm-mime.el' and `vm-vars.el'.
+    + Leading lines of a yanked message were accidently taken as headers and
+      got removed if `vm-reply-include-presentation' was t.
+    + Fixed encoding of headers for trailing 8 bit characters.  (Thanks to
+      Lutz Euler for the patch)
+    + Decode (QP-)encoded clear text before decrypting it.
+    + Use nil as default for `vm-mime-8bit-composition-charset' and thus
+      enable proper detection of right charset.  (Thanks to Naoki Saito for
+      reporting and debugging)
+    + Fixed bug in `vm-mime-display-external-generic' for GNU Emacs 23 causing
+      corrupted content in the output file.  The old code has been replaced by
+      a call to `vm-mime-send-body-to-file' which avoids duplication and works.
+      There has been some special handling for `vm-fsfemacs-mule-p', but the
+      actual reason for this was unclear so it has been removed.
+    + Correctly handle `vm-enable-addons' being t.
+    + Correctly store UTF-8 strings in the X-VM-v5-Data header to avoid
+      corruption of summay lines. (Thanks to Yuning Feng for reporting)
+    + Correctly encode multibyte subjects. (Thanks to Yuning Feng for the
+      patch)
+    + Use BASE64 for header encoding when there are special chars not quoted
+      by QP normally.  You may configure this by `vm-mime-encode-headers-type'.
+    + qp-decode program handles premature end of QP-encoded stream now
+      gracefully. (Thanks to Ralf Fassel for the bug report, fix and testing)
+    + Added missing newline after "Content-Type" when using the command
+      `vm-mime-attach-object-from-message'.  (Thanks to Dan Freed)
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 29 Aug 2008 15:24:42 -0500
+
+vm (8.0.9-4) unstable; urgency=low
+
+  * Updated the control file to reflect moving the package to a public git
+    repository at http://git.debian.org/git/users/srivasta/debian/vm.git
+  * Bug fix: "vm: Error while loading 50vm-init", thanks to Laurent
+    Bonnaud. Since the variable is defined in vm-vars, as is the missing
+    function, wrap the setting of the pixamp directory in an
+    eval-after-load vm-vars.                               (Closes: #475646).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 27 Apr 2008 22:51:03 -0500
+
+vm (8.0.9-3) unstable; urgency=low
+
+  * Correct setting in vm-init.el, based on guidance by  Kurt Hornik. The
+    directory setting were wrong, and now we just let the upstream default
+    remain for vm-image-directory, and add a setting for
+    vm-toolbar-pixmap-directory that reflects the upstream version,
+    modified for Debian variations.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 03 Apr 2008 00:07:29 -0500
+
+vm (8.0.9-2) unstable; urgency=high
+
+  * Bug fix: "vm: Installer overwrites vm-init.el before it uses it.",
+    thanks to Klaus Reichl.  Thanks to  Sven Joachim for finding the bug,
+    and for a patch.                              Closes: #465748,#470275
+  * Make sure we delete files from /usr/share/emacs/site-lisp/vm on
+    removal (these are not conffiles, so can go on removal, instead of
+    hanging around until purged).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 19 Mar 2008 13:38:12 -0500
+
+vm (8.0.9-1) unstable; urgency=low
+
+  * New upstream release
+    * Added documentation to `vm-mime-external-content-types-alist' that no
+      extra single quotes should be used around %f as the file name is already
+      quoted for the shell. (Thanks to Martin Schwenke)
+    * Fixed version number generation in release script.  It was broken for
+      8.0.8, i.e. it was showing 8.0.x-xemacs-542 instead.  Now also other
+      branch related information is stored in the file vm-revno.el.
+    * Reactivated "Allow defadvice on function `vm' by recursing on session
+      start".  It should work correctly now.
+    * Added interactive `vm-pipe-message-to-command-discard-output' and
+      the non-interactive `vm-pipe-message-to-command-to-string' for using
+      it in own functions.
+    * Added `vm-pipe-messages-to-command*' for bulk piping messages to a
+      single command, i.e. like saving to a pipe.  This is substantially
+      faster than `vm-pipe-message-to-command*' which call the command on
+      each message separately.  You may want to use it to feed spamassasin.
+    * Modified key bindings for piping messages, i.e. "|" is a prefix key
+      now. Type it twice to get the old pipe command, "|d" will call the
+      discard the output, just display some infos in the mode line. "|s"
+      will call `vm-pipe-messages-to-command' and "|n" will also call it
+      but discard the output.
+    * Removed vm-easymenu.el and use easymenu.el instead.
+    * In `vm-save-message-preview', ask the user if the output file already
+      exists instead of silently overwriting it.
+    * Moved [Undo] to Dispose menu and [Emacs] to Help menu as these do not
+      work in Emacs 22 anymore when on the menu bar.
+    * Fixed intermixing of signature and quoted text in reply if
+      `vm-reply-include-presentation' is t. (Thanks to Roland Winkler for
+      debugging and reporting)
+    * Fixed yanking of presentation from wrong folder when folder is virtual.
+      (Thanks to Roland Winkler for reporting)
+    * Redistributed flag not displayed in presentation buffer mode line.
+      https://bugzilla.redhat.com/show_bug.cgi?id=428248 (Thanks to Jonathan
+      Underwood for the fix)
+    * `vm-submit-bug-report' gets the variables dynamically now and thus does
+      not miss new ones or references old ones anymore.
+    * Correctly determine the real folder when postponing compositions started
+      from a virtual folder. (Thanks to Uday S. Reddy for reporting and
+      debugging)
+    * Avoid crash when `vm-mouse-set-mouse-track-highlight' is not called
+      within a summary buffer or without a valid message pointer.
+    * Do not disable modes which do not exist. (Thanks to Uday S. Reddy for
+      reporting)
+  * Fix compilation of autoloads.                         Closes: 465748
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 21 Feb 2008 16:22:43 -0600
+
+vm (8.0.7-1) unstable; urgency=low
+
+  * New upstream release                                   Closes:  #435917
+    This is a pretty major release. Releases are numbered now
+    MAJOR.MINOR.PATCHLEVEL, where MAJOR is increased when fundamental
+    changes occur, MINOR for new features and PATCHLEVEL for bugfix
+    releases. Better built system based on configure.  Autoloads are
+    generated only for those functions marked with the autoload token now,
+    which are mainly interactive function. Thus, loading occurs only on
+    demand and startup should be faster.
+  * We now prefer emacs22, though we still install on emacs21. Closes: #434022
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 08 Feb 2008 21:15:32 -0600
+
+vm (7.19-14) unstable; urgency=low
+
+  * Bug fix: "vm: Please support emacs22", thanks to Sven Joachim
+                                                        (Closes: #432105).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 07 Jul 2007 15:11:00 -0500
+
+vm (7.19-13) unstable; urgency=low
+
+  * Added XS-VCS-Arch and XS-VCS-Browse to debian/control
+  * Bug fix: "vm: suggests unavailable package mime-codecs", thanks to
+    Sven Joachim                                          (Closes: #412371).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 17 Apr 2007 19:45:51 -0500
+
+vm (7.19-12) unstable; urgency=medium
+
+  * Bug fix: "vm: Byte-compilation very slow under Emacs 22", thanks to
+    Tim Cross. This would be a low risk improvement for etch.
+                                                          (Closes: #410492).
+  * Bug fix: "vm should depend on emacs21 *OR emacs-snapshot*", thanks to
+    Philippe Queinnec.  I've decided to add emacs-snapshot to the
+    dependencies, since this is likely to be a more popular option as time
+    goes on. Also, the package already byte-compiles and otherwise fully
+    supports emacs22 (and emacs23, which is what I tend to use now), so
+    this is essentially bringing the control file up to speed.
+                                                           (Closes: #398877).
+  * These two improvements now make emacs-snapshot a full status supported
+    version for VM. There is no code change -- the code already supported
+    emacs-snapshot, and is known to work. This just allows people to
+    uninstall emacs21 (without the control file change, one had to have
+    emacs21 and emacs-snapshot both installed for emqacs-snapshot to be
+    supported, which is rather silly.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 24 Feb 2007 10:10:53 -0600
+
+vm (7.19-11) unstable; urgency=medium
+
+  * Bug fix: "vm: purging the package fails (ucf unavailable)", thanks to
+    Bill Allombert                                         (Closes: #389966).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 29 Sep 2006 14:18:38 -0500
+
+vm (7.19-10) unstable; urgency=low
+
+  * Suggest stunnel, since we need something like that to provide secure
+    access to remote mail.
+  * Bug fix: "vm: please Recommend: or Suggest: stunnel", thanks to Daniel
+    Kahn Gillmor                                             (Closes: #381066).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 21 Aug 2006 21:53:47 -0500
+
+vm (7.19-9) unstable; urgency=low
+
+  * Split control file into two versions -- and select a control file
+    based on whether or not we have been instructed to build mime-codecs.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 27 Feb 2006 09:48:12 -0600
+
+vm (7.19-8) unstable; urgency=low
+
+  * Don't build mime-codecs any longer, due to several grave issues with
+    the code. Instead, document how people may use the perl one liners in
+    VM, thanks to Daniel Kahn Gillmor.
+  * Bug fix: "mime-codecs should be dropped", thanks to Manoj Srivastava
+    done.                                                 (Closes: #329683).
+  * Bug fix: "mime-codecs: base64-decode fails to properly decode many
+    valid base64-encoded files", thanks to Daniel Kahn Gillmor. Instead of
+    trying out the patch provided (thanks for that, it was appreciated), I
+    decided to instead drop the mime-codecs package entirely, since the
+    perl one liners can easily replace them -- and these modules are
+    already in perl, an essential package.                (fixes: #338115).
+  * Bug fix: "mime-codecs: please support [file name] and [-o
+    outputfile]", thanks to Martin Michlmayr. We no longer ship
+    mime-codecs.                                          (fixes: #213443).
+  * Bug fix: "vm: Skip byte-compilation when already done", thanks to
+    Peter S Galbraith                                    (Closes: #338559).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat,  3 Dec 2005 16:44:16 -0600
+
+vm (7.19-7) unstable; urgency=low
+
+  * Bug fix: "vm: doesn't use debconf for prompting", thanks to Lars
+    Wirzenius. Hmm. We don't even have a /usr/lib/emacs/site-lisp/site-start.el
+    anymore, and /etc/emacs/site-start.el has not mentioned vm-init since
+    at least 2002, and probably a lot longer than that. The chances of
+    someone still having a reference to vm-init in there are pretty low
+    --- and even then, it should be handled silently. This work around was
+    added in 1998; I doubt if such buggy systems still survive -- and if
+    people have cruft lying around since 1998, and are trying to install vm
+    after 7 years, well, there shall be issues. In any case, we still try
+    to fix things silently, and we still issue a diagnostic. I just don't
+    think this is worth a debconf note anymore.                (Closes: #333297).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 22 Oct 2005 00:15:10 -0500
+
+vm (7.19-6) unstable; urgency=low
+
+  * Fix a FTBS bug due to the changed behaviour of texi2html. Also, use
+    /usr/share/menu instead of /usr/lib/menu
+  * Bug fix: "vm-mime-Q-encode-region dies if region ends with newline",
+    thanks to Michael Ernst                            (Closes: #319821).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon,  8 Aug 2005 11:28:22 -0500
+
+vm (7.19-5) unstable; urgency=low
+
+  * Bug fix: "vm: does not start vm: vm-mouse-install-mouse fails", thanks
+    to Daniel Martins. I am not sure why this works for me, but not for
+    the reporter -- but an autoload costs little, so add one to the init
+    function.                                               (Closes: #309962).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat,  9 Jul 2005 14:21:48 -0500
+
+vm (7.19-4) unstable; urgency=low
+
+  * Bug fix: "vm: Please do not discriminate against XEmacs", thanks to
+    Dirk Eddelbuettel. Well, back in the mists of time, VM was packaged to
+    be byte-compiled for XEmacs, but the XEmacs maintainer at that time
+    asked me to cease and desist. Times change, so that is reverted.
+                                                          (Closes: #306876).
+  * Bug fix: "vm: purge doesn't", thanks to Ian Zimmerman. This should be
+    better.                                               (Closes: #303519).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon,  2 May 2005 23:57:59 -0500
+
+vm (7.19-3) unstable; urgency=low
+
+  * Bug fix: "vm: package description typo(s) and the like", thanks to
+    Florian Zumbiehl (Closes: #300050).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 17 Mar 2005 20:10:30 -0600
+
+vm (7.19-2) unstable; urgency=medium
+
+  * vm-mime-display-external-generic does not quote spaces when calling
+    external commands -- and since VM does not use mailcap, but instead
+    uses vm-mime-external-content-type-alist, this fix is relevant.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue,  2 Nov 2004 14:32:58 -0600
+
+vm (7.19-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+    * New variables:
+      + vm-stunnel-program-additional-configuration-file
+    * added vm-mouse-send-url-to-safari to send URLs to Safari under
+      Mac OS X.
+    * added docstrings for vm-mime-reader-map-* commands.
+    * normalized prefix key description layout in vm-mode docstring.
+    * added some missing MIME commands to menu entries.
+    * undo change in vm-preview-current-message that required
+      vm-auto-decode-mime-messages to be non-nil along with
+      vm-display-using-mime before creating the presentation
+      copy of a message.  It has the unexpected side-effect of
+      breaking 'D' when vm-auto-decode-mime-messages is nil.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 30 Sep 2004 16:08:43 -0500
+
+vm (7.18-9) unstable; urgency=low
+
+  * Removed the obsolete needs="dwww" menu entry. Now we use the
+    preferred doc-base method.
+  * Bug fix: "vm: Can't cycle among decoded/summary/raw views of MIME
+    messages", thanks to Reid Priedhorsky            (Closes: #250559).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 22 Jun 2004 23:38:50 -0500
+
+vm (7.18-8) unstable; urgency=low
+
+  * Bug fix: "vm: wrong path in README.debian.gz", thanks to Diego Biurrun
+    (Closes: #243377).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 20 Apr 2004 13:51:42 -0500
+
+vm (7.18-7) unstable; urgency=low
+
+  * Bug fix: "silent error while loading 50vm-init.el", thanks to Jeff Nye
+    If vm-mime-default-face-charsets is unbound, set it to the default
+    value.                                               (Closes: #241074).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri,  2 Apr 2004 12:14:16 -0600
+
+vm (7.18-6) unstable; urgency=low
+
+  * Added 8859-15 to the list of charsets to display in the default face
+    in vm. Also added a short README about mime handling in VM.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 14 Mar 2004 13:21:00 -0600
+
+vm (7.18-5) unstable; urgency=low
+
+  * removed dependency relationship with emacs20
+  * Bug fix: "vm: Please update Dependencies to exim4", thanks to Marc
+    Haber                                                    (Closes: #228596).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri,  6 Feb 2004 03:17:03 -0600
+
+vm (7.18-4) unstable; urgency=low
+
+  * FTBFS: missing build-depends. Bah. The buildd's do not respect
+    Build-Depends-Indep. Duplicated the dependency into Build-Depends as a
+    workaround for this buildd flaw.               (Closes: #224461).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 23 Dec 2003 13:29:22 -0600
+
+vm (7.18-3) unstable; urgency=low
+
+  * Move to the new build system, and the new SCM system. Now the source
+    packages are full arch categories.
+  * Bug fix: "/usr/bin/qp-decode: say program name on error output",
+    thanks to Dan Jacobson. Do the same for base64-decode as well.
+                                                        (Closes: #222580).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat,  6 Dec 2003 00:28:22 -0600
+
+vm (7.18-2) unstable; urgency=low
+
+  * The last upload was corrupted. This is a major bugfix release.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 12 Nov 2003 23:15:14 -0600
+
+vm (7.18-1) unstable; urgency=low
+
+  * New upstream release. Excerpted changes:
+    * New variables:
+      + vm-default-new-folder-line-ending-type
+    * vm-mail-internal: use idle timers to run vm-update-composition-buffer-name
+      instead of post command hooks
+    * vm-decode-mime-layout: always delete a MIME object button after
+      doing a type conversion.
+    * vm-mail-send: bind coding-system-for-write to match the coding
+      system of mail-archive-file-name (if set) so that mail-do-fcc
+      writes to the file using the correct line endings.
+    * vm-make-tempfile-name, vm-make-tempfile: accept optional
+      second argument 'proposed-filename' which will be used if a
+      file with that name do not exist in vm-tempfile-directory.
+      If such a file exists, then a number and a dash will be prepended
+      to the proposed filename and the number will be incremented until no
+      such file exists.
+    * don't use vm-menu-fsfemacs-image-menu unless vm-use-menus is non-nil.
+    * vm-preview-current-message: require vm-auto-decode-mime-messages to
+      be non-nil along with vm-display-using-mime before creating the
+      presentation copy.  This helps prevent selection of the presentation
+      buffer when the user likely needs to do M-x recover-file.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 11 Nov 2003 14:35:03 -0600
+
+vm (7.17-1) unstable; urgency=low
+
+  * New upstream. excerpted changes:
+    * New commands:
+      + vm-create-imap-folder
+      + vm-delete-imap-folder
+      + vm-rename-imap-folder
+    * vm-edit-message-end: try to positoin the cursor in the message
+      window roughly where it was in the edit window.
+    * vm-read-imap-folder-name: allow vm-imap-make-session to return
+      nil without crashing.  Also, bind vm-imap-ok-to-ask non-nil so
+      that vm-imap-make-session will interactively prompt for a
+      password.
+    * added menu entry to Folder menu for vm-visit-imap-folder.
+    * vm-imap-normalize-spec: convert auth method to * instead of the
+      IMAP folder name.
+    * vm-imap-get-message-flags: fixed flag retrieval so that it
+      actually works now.
+    * vm-handle-file-recovery-or-reversion: find an IMAP spec for the
+      buffer so that the spec is passed to the 'vm' command instead
+      of the buffer-file-name.  This fixes a wrong-type-argument
+      error under M-x recover-file when done on a IMAP cache folder.
+    * tapestry.el: in tapestery-window-edges check for existence of
+      face-width and face-height in addition to window-pixel-edges.
+    * search for BASE64/QP encoder/decoder programs and set the
+      encoder/decoder program variable based on what we find.
+    * vm-mf-default-action: if object is convertible to a displayble
+      type mention the conversion that will happen in the action
+      string.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 13 Jul 2003 15:57:12 -0500
+
+vm (7.16-1) unstable; urgency=low
+
+  * New upstream. excerpted changes:
+    * New commands:
+      + vm-visit-imap-folder
+      + vm-visit-imap-folder-other-window
+      + vm-visit-imap-folder-other-frame
+      + vm-save-message-to-imap-folder
+    * New variables:
+      + vm-imap-server-list
+    * vm-primary-inbox can now be a POP or IMAP mailbox specification.
+    * vm-mime-set-xxx-parameter: use the parameter name passed in
+      instead of assuming the name is "charset".  The only calls to
+      this function passed in "charset" as the name, so this bug
+      wasn't affecting anything.
+    * vm-decode-mime-encoded-words: do charset conversion if needed.
+      Forgot to add this back when vm-mime-charset-converter-alist
+      was added.
+    * vm-send-mail-and-exit -> vm-mail-send-and-exit in vm-user-agent
+      definition.
+    * vm-mail-send-and-exit: dropped first arg requirement since the
+      argument isn't used anyway.
+    * compute POP cache filenames based on the POP mailbox spec with
+      the access method as "pop" and the authentication method and
+      port as asterisks.  This prevents visiting the wrong file if
+      the user starts accessing a POP mailbox through a different
+      port or using a different access or authentication method.
+      Automatically migrate the old cache files to the new scheme as
+      we go.
+    * fixed convert -page typos.
+    * vm-set-redistributed-flag: fourth arg of vm-set-xxx-flag
+      call corrected to be vm-set-redistributed-flag instead of
+      vm-set-forwarded-flag.
+    * IMAP BYE responses are always untagged; changed code to match.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 27 May 2003 12:26:50 -0500
+
+vm (7.15-1) unstable; urgency=low
+
+  * New upstream. excerpted changes:
+   * Makefile: filter echo's output through tr to avoid CRs
+     under Cygwin.
+   * Makefile: Use '>' instead of '>>' on first write to vm-autoload.el
+     to truncate the file otherwise it will grow each time it is updated.
+   * vm-mime-attach-message: arrange for forwarded flag of each
+     attached message to be set when the composition is sent.
+   * vm-decode-mime-encoded-words: do charset conversion if needed.
+     Forgot to add this back when vm-mime-charset-converter-alist
+     was added.
+   * when cropping images call 'convert' with -page to avoid having
+     some kind of margin takcked on to the image.  The strange
+     margin seems to be applied to GIFs but not JPGs.  No idea why.
+   * fixed some defcustom variable declarations.
+   * vm-mime-reader-map-save-file: return the file name to which the object
+     was saved.
+   * vm-mime-burst-digest: remove blank lines at the beginning of
+     message/rfc822 bodies in a multipart/digest object, since they
+     most likely indicate an improperly packed digest rather than a
+     message with no headers.
+   * vm-make-tempfile: use vm-octal to clarify file mode setting.
+   * vm-make-image-strips: when building the script for incremental
+     display, don't quote the filenames.  DJGPP cmdproxy.exe doesn't
+     interpret single quotes and using double quotes is pointless.
+     VM's arguments to 'convert' don't need quoting anyway.
+   * use vm-pop-check-connection to check POP connections before
+     trying to read data from them.  The checker will signal an
+     error if the connection is closed or the process associated
+     with the connection has exited.
+   * use vm-imap-check-connection to check IMAP connections before
+     trying to read data from them, The checker will signal an error
+     if the connection is closed or the process associated with the
+     connection has exited.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun,  4 May 2003 01:52:45 -0500
+
+vm (7.14-1) unstable; urgency=low
+
+  * New upstream. excerpted changes:
+     * moved (provide ...) to bottom of .el files.
+     * Made the vm-undo command undo everything the last command did.
+       E.g. vm-undo after vm-kill-subject undoes all of the related
+       deletes instead of just one of them.  vm-undo-boundary is only
+       called from vm-add-undo-boundaries now.  vm-add-undo-boundaries
+       is called from post-command-hook.
+
+
+ -- Manoj Srivastava <srivasta@acm.org>  Sat, 29 Mar 2003 00:07:15 -0600
+
+vm (7.13-1) unstable; urgency=low
+
+  * New upstream. excerpted changes:
+    * vm-pop-make-session: use new stunnel configuration code
+      introduced in VM 7.11.  This was only installed in
+      vm-imap-make-session previously.
+    * create MIME layout from plist instead raw vector.  layout strut
+      is still a vector.
+    * save original layout when doing a layout conversion so that if
+      the object needs to be deleted we still ahve the correct object
+      endpoint in the folder buffer.  In the old code the endpoints in
+      the converted object buffer would be used in the folder buffer
+      with disastrous results.
+    * '(vm-marker -> (vm-marker in vm-mime-parse-entity.
+
+
+ -- Manoj Srivastava <srivasta@acm.org>  Wed, 19 Mar 2003 22:59:38 -0600
+
+vm (7.11-1) unstable; urgency=low
+
+  * New upstream. excerpted changes:
+    * New variables:
+      + vm-mime-forward-local-external-bodies
+    * vm-mime-fsfemacs-encode-composition: if object is in a buffer,
+      write the buffer out to disk and insert the file contents instead
+      of copuying buffer to buffer.  This avoids the trademark \201
+      data corruption.
+    * vm-su-thread-indent: check for vm-summary-show-threads non-nil
+      before calling vm-th-thread-indentation.
+    * vm-summary-compile-format-1: added %(..%) format groups.
+    * don't forward Content-Length header.
+    * use results of CAPABILITY command to check for authentication methods
+      before trying to use them.
+    * use results of CAPABILITY command to decide whether to use
+      BODY.PEEK vs. RFC822.PEEK.
+    * vm-mime-attach-object-from-message: move window point to
+      beginning of the line after the inserted attachment if the
+      compositoin buffer is being displayed in a window.
+    * vm-mime-parse-entity-safe: set c-t-e to "7bit" if it is nil.
+    * vm-mime-fetch-url-with-programs: erase the work buffer between
+      tries of various URL fetch programs; this handles the case
+      where an URL fetcher outputs part of the data and then dies.
+    * added support for the `fetch' and `curl' URL fetch programs for
+      message/external-body.
+    * vm-mime-fsfemacs-encode-composition: call vm-mime-parse-entity
+      twice for already MIME'd objects.
+      vm-mime-xemacs-encode-composition similarly modified.
+    * vm-mime-fsfemacs-encode-composition: don't automatically
+      base64-encode non-composite non-text objects that already have
+      MIME headers.  Use vm-mime-transfer-encode-layout on them
+      instead to produce the correct encoding.
+      vm-mime-xemacs-encode-composition similarly modified.
+    * dropped support for url-w3 retrieval method.  It's interface too
+      crusty to continue using given the wide availabity of external
+      programs that do the job.
+    * vm-mime-display-internal-message/external-body: pulled
+      retrieval guts out and put into vm-mime-retrieve-external-body.
+    * added support for simple image manipulations, supported by
+      Imagemagick's `convert' program.  Use mouse button 3 on an
+      image to see what you can do.
+    * added Konqueror to vm-menu-url-browser-menu.
+    * added option to send to the X clipboard to vm-menu-url-browser-menu.
+    * vm-menu-url-browser-menu: add third element to clipboard and
+      Konqueror entries--- VM's menu code under GNU Emacs requires it.
+    * treat device-type `gtk' like `x' under XEmacs so that
+      VM running on GTK-XEmacs will use window system features.
+    * vm-imap-move-mail: set use-body-peek after retrieving the
+      CAPABILITY results. (oops)
+    * Makeflie: default install target now installs the .el files.
+    * added support for version 4 of stunnel.
+    * fixed check for usability of uncompface's -X flag, needed
+      symbol to be unquoted.
+    * fixed check for stunnel 4, check for non-zero exit code instead
+      of string, moved check to the time when stunnel is first run.
+    * vm-stunnel-configuration-args: fixed reversed v3/v4 logic.
+    * vm-stunnel-configuration-file: reuse the stunnel configuration
+      tempfile.
+    * vm-parse: fourth arg limits the number of matches before
+      returning.
+    * vm-parse: after we quit matching add everything after the last
+      match to the list that is returned, but do this ONLY if the
+      fourth arg 'matches' was specified.
+    * compute POP cache filenames based on the POP mailbox spec with
+      the password as an asterisk.  This prevent visiting the wrong
+      file if the user has the password in the spec and later changes
+      their password.  Automatically migrate the old password-based cache
+      files to the new scheme as we go.
+    * vm-pop-make-session: parse POP mailbox spec in a way that
+      permits colons in the user's password.
+    * install .el files before .elc files to avoid "source file newer
+      than compiled file" problems.
+    * added ] to char class exclusion in mailto spec in vm-url-regexp
+      to help with MS EXchange's [mailto:foo] syntax.
+
+ -- Manoj Srivastava <srivasta@acm.org>  Thu, 13 Mar 2003 09:22:46 -0600
+
+vm (7.08-2) unstable; urgency=low
+
+  * Suggest mime-codecs.                                     closes: Bug#181776
+
+ -- Manoj Srivastava <srivasta@acm.org>  Thu, 20 Feb 2003 11:02:50 -0600
+
+vm (7.08-1) unstable; urgency=low
+
+  * New upstream. excerpted changes:
+    * New variables
+      + vm-mime-ignore-missing-multipart-boundary
+      + vm-url-browser-switches
+    * vm-mime-attach-object-from-message: decode object after stuffing it
+      into the work buffer.  Two reasons: (1) the composition encoding
+      code doesn't expect base64 or QP encoded objects and will encode
+      them again, and (2) we shouldn't trust that the original object was
+      encoded properly so we should re-encode it since we're sending it.
+    * vm-mime-display-internal-multipart/alternative: a badly formed
+      mesage may cause VM to find no message parts so don't call
+      vm-decode-mime-layout unless best-layout is non-nil.
+    * vm-su-subject: compress \n[ \t]* to a single space.
+    * README: Added (vm) to the example VM entry in the 'dir' file.
+      Apparently the old entry won't work without it anymore.
+    * vm-mime-parse-entity-safe: error/error MIME layout needs to be
+      length 16; added a nil.  Really need to macroize creation
+      of the layout object someday.
+    * vm-recover-file: call recover-file with call-interactively
+      instead of apply.
+    * vm-revert-buffer: call revert-buffer with call-interactively
+      instead of apply.
+    * vm-decode-mime-layout: check if layout has been converted
+      and don't try to convert it again if so.
+    * vm-vs-or, vm-vs-and: check existence of selector function and
+      signal error if not found.
+    * vm-md5-region: accept " -" and " *-" before the md5 checksum
+      because md5sum stupidly produces extra output on some systems.
+    * vm-imap-end-session: trying reading the response to the LOGOUT
+      command and see if we start hanging in some environments.
+    * vm-imap-make-session: don't query for passwor dif the
+      authentiation method is "preauth".
+    * vm-visit-virtual-folder: select the message corresponding to
+      the real message the user used as a basis for this folder, if
+      there was one.  Only honor the vm-jump-* variables if
+      there's no correspoinding real message to use.
+    * vm-compose-mail: run mail-citation-hook or mail-yank-hooks or
+      the normal VM default action after yanking the message text.
+      Always position point in the body before running the yank
+      action.  Don't assume the yank action is smart enough to
+      position point correctly before inserting the text.
+    * vm-recognize-imap-maildrops,vm-recognize-pop-maildrops: changed
+      regexp to allow colons in the last field.
+    * dropped single quotes in const choice values in defcustom for
+      vm-mime-alternative-select-method.
+    * Makefile: use \015 instead of \r with tr due to bug in Solaris
+      8's tr which removes r's.
+    * vm-get-mail-itimer-function: correct use of timer-set-time; set
+      new firing time to now + vm-auto-get-new-mail instead of now
+      with a delta of vm-auto-get-new-mail, to avoid having
+      the timer expire repeatedly in the same second.  Similar change
+      in vm-check-mail-itimer-function which support vm-mail-check-interval.
+      Similar change in vm-flush-itimer-function which supports vm-flush-interval.
+    * vm-decode-mime-message: vm-preview-read-messages ->
+      vm-preview-lines so that message previewing is turned off for
+      the 'raw' and 'all buttons' displays.
+    * vm-mail-send: bind select-safe-coding-system-function to nil
+      during call to mail-send to prevent Emacs from prodding user
+      about the FCC coding system.  The coding system used should be
+      raw-text and VM sets buffer-file-coding-system to that.
+    * vm-stuff-attributes: don't clear modflag if stuffing for another
+      folder, since the information stuffed in that case is missing
+      the deleted flag if that flag was set.
+    * use defconst to set vm-faked-defcustom so that the checking
+      works correctly if vm-vars.el is loaded twice.
+    * vm-mime-parse-entity: find multipart boundaries, then recurse
+      into parts.  This satisfies the new rule in RFC 2046 that outer
+      level multipart boundaries be recognized at any level of inner
+      nesting.
+    * vm-mime-send-body-to-file: removed let-binding of variable file
+      which was shadowing the function parameter of the same name.
+      This should make the function not ask about a filename even
+      when one has already been provided.
+    * define vm-folder-history as a function that returns t so that
+      when it is passed as the sixth arg to read-file-name under
+      Emacs 21 it does not cause void-function to be signaled when
+      completion is attempted.
+    * vm-mime-send-body-to-folder: force conversion to target folder's
+      type since the user doesn't know what type we're using in the
+      temp folder.
+    * vm-save-message: dno't try to honor vm-delete-after-saving if
+      the folder is read-only.
+    * vm-delete-duplicate-messages: compute hash on real folder
+      contents rather than virtual copy.  Fixes utterly brokwn
+      behavior when run on a virtual folder.
+
+
+ -- Manoj Srivastava <srivasta@acm.org>  Mon, 17 Feb 2003 21:35:00 -0600
+
+vm (7.07-5) unstable; urgency=low
+
+  * Remove old emacs19 directory                             closes: Bug#179682
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 10 Feb 2003 10:03:46 -0600
+
+vm (7.07-4) unstable; urgency=low
+
+  * Make sure ucf database is cleaned up on purge
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 10 Nov 2002 22:03:39 -0600
+
+vm (7.07-3) unstable; urgency=low
+
+  * Make sure the log file is user readable                  closes: Bug#167791
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed,  6 Nov 2002 03:20:07 -0600
+
+vm (7.07-2) unstable; urgency=low
+
+  * Also install vm.html                                     closes: Bug#161086
+  * Make sure that the uncompiled .el files are still in the load-path,
+    though close tothe end.                                  closes: Bug#155043
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 29 Oct 2002 18:09:05 -0600
+
+vm (7.07-1) unstable; urgency=low
+
+  * Use which, not command -v.
+  * New upstream. excerpted changes:
+     * vm-sort-messages: move first call of
+       vm-update-summary-and-mode-line out to callers.  Threading boks
+       if we call it in here.
+     * vm-assimilate-new-messages: resume calling
+       vm-update-summary-and-mode-line to clear the decks before
+       thread sorting.
+     * vm-toggle-threads-display: start calling
+       vm-update-summary-and-mode-line to clear the decks before
+       thread sorting.
+     * vm-save-folder,vm-write-file: support
+       vm-default-folder-permission-bits here,
+       since a folder might be created when it is saved.
+     * vm-save-message,vm-save-message-sans-headers: use the target
+       folder's line ending coding system for saves.  If the target
+       doesn't exist use the local system's default.
+     * vm-write-string: don't set an explicit coding system for writes,
+       use the ambient value.
+     * vm-sort-messages: call vm-update-summary-and-mode-line to clear
+       the decks before sorting.
+     * vm-mail-internal: UNder FSF Emacs set the coposition buffer
+       coding system to 'raw-text' which should stop write-region from
+       question the coding system inside mail-do-fcc.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 13 Jun 2002 15:40:00 -0500
+
+vm (7.05-1) unstable; urgency=low
+
+  * New upstream bug fixing release. Excerpted change:
+    * New variables:
+      + vm-default-folder-permission-bits
+    * Makefile: added install-el target.
+    * always set mode-popup-menu; it's value should not depend on the
+      value of vm-popup-menu-on-mouse-3.
+    * vm-stuff-folder-attributes: added status messages.
+    * vm-mime-discard-layout-contents: call vm-set-modflag-of on the
+      modified message.
+    * vm-preview-composition: add a newline at end of the preview
+      buffer if the composition lacks one.
+    * vm-url-decode-buffer: fixed brain-o; bind case-fold-search to t
+      instead of nil.
+    * use new vm-octal function instead of writing out UNIX permission
+      bits in decimal.
+    * defcustom :type fixes.
+    * added "image" to default value of vm-auto-displayed-mime-content-types.
+    * vm-mime-should-display-internal: ignore Content-Disposition as
+      it has no bearing on whether an object is displayed internally.
+    * vm-assimilate-new-messages: build threads very early if
+      vm-summary-show-threads is non-nil.  Don't run
+      vm-update-summary-and-mode-line before sorting threads--- this
+      should no longer be necessary thanks to the change to to
+      vm-set-numbering-redo-start-point.
+    * vm-set-numbering-redo-start-point: compare message structs
+      instead of list conses.
+    * vm-unthread-message: only unthread if threads have been built
+      in a particular message's buffer.
+    * vm-thread-list: keep track of the youngest member of a thread.
+    * vm-sort-compare-thread: sort threads by youngest member instead
+      of by oldest member.  Also sort thread siblings by date instead
+      of by message-id; sort by messge-id if dates are equal (rare).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 12 May 2002 23:13:27 -0500
+
+vm (7.04-2) unstable; urgency=low
+
+  * Override the lintian warning about postinst not setting user doc link
+    for mime codecs.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 22 Apr 2002 08:44:00 -0500
+
+vm (7.04-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+    * New commands:
+      + vm-mime-attach-object-from-message (bound to $ a)
+    * New variables:
+      + vm-mime-ignore-composite-type-opaque-transfer-encoding
+    * fixed problem with a repeated char being displayed after an
+      X-Face when a non-MIME message is reselected.
+    * Makefile: remove CRs from the output of make-autoloads.  Emacs
+      when run under Cygwin apparently emits them.
+    * vm-session-initialization: create gui-button-face under XEmacs
+      if it does not exist.
+    * vm-mime-display-internal-text/html: don't use W3 if
+      vm-mime-use-w3-for-text/html is nil.
+    * recognize 'mac' as a window system with mouse, image, and
+      multi-font support (FSF Emacs only).
+    * put vm-update-composition-buffer-name on post-command-idle-hook
+      instead of post-command-hook if the idle hook is available for
+      use.
+    * vm-menu-vm-menu: added commas to variable refernece so they
+      would be evalled in the backquote context.
+    * changed hook defcustoms to use 'hook instead of '(list function).
+    * vm-read-index-file: do thread sort if necessary since
+      vm-assimilate-new-messages isn't going to do it.
+    * default vm-thread-obarray and vm-thread-sort-obarray to non-nil
+      values so that if they are used as obarrays before
+      initialization an error will be signaled.
+    * vm-mime-pipe-body-to-queried-command: prompt with "Pipe object
+      to command:" instead of "Pipe to command:".
+    * make sure select-message-coding-system is fbound before overriding
+      its definition.  Apparently early Emacs 20 versions do not define
+      it.
+    * vm-imap-read-object: move point past closing double quote to
+      fix parsing problem that caused VM to hang.
+    * vm-mime-display-button-xxxx: always insert the button, even we
+      have no method for displaying the MIME object.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 21 Apr 2002 04:46:16 -0500
+
+vm (7.03-1) unstable; urgency=low
+
+  * fixed defcustom syntax errors.
+  * minor compiler error cleanup.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed,  6 Mar 2002 00:46:29 -0600
+
+vm (7.01-5) unstable; urgency=low
+
+  * debian-pkg-add-load-path-item apparently does not add the item to the
+    load path. This is different from the test function that Sam wrote,
+    and thuis the load-path was not set. Unfortunately, this bug was
+    masked on my box since emacs21 happily searches subdirs.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 20 Feb 2002 02:34:21 -0600
+
+vm (7.01-4) unstable; urgency=low
+
+  * Preserve user changes in the site-start.d file. Also, do not delete
+    the start file when removed, only when purged. This also requires that
+    the start file do nothing when the package has actually been removed.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 13 Feb 2002 22:41:26 -0600
+
+vm (7.01-3) unstable; urgency=low
+
+  * With smtpmail in modern emacsen, we do not depend on external MTA's.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat,  2 Feb 2002 20:30:27 -0600
+
+vm (7.01-2) unstable; urgency=low
+
+  * Conform to the latest emacs policy about laod paths.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri,  1 Feb 2002 15:35:51 -0600
+
+vm (7.01-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+     * New variables:
+       + vm-mime-use-w3-for-text/html
+     * new possible values for vm-mime-alternative-select-method:
+       (favorite ...) and (favorite-internal ...).
+     * vm-visit-pop-folder: use value of vm-last-visit-pop-folder if
+       interactive user entered an empty string as the folder.
+     * vm-mail-send: bind sendmail-coding-system to the binary coding
+       system and bind mail-send-nonascii to t so that mail-send will
+       leave us alone.
+     * redefine select-message-coding-system if it is fbound and we're
+       running FSF Emacs MULE.  It doesn't like no-conversion as a
+       coding system, so we get it out of the way.
+     * define vm-image-too-small properly as an error condition.
+     * vm-scroll-forward-one-line, vm-scroll-backward-one-line: accept
+       a numeric prefix arg.
+     * vm-setup-ssh-tunnel: use copy-sequence on vm-ssh-program-switches
+       to avoid corrupting the list tail with nconc.
+     * vm-mime-can-convert-0: always return the conversion that
+       produces an internally displayable type if there is one.
+       Fallback to the externally displayable type if there is none
+       that can be displayed internally.
+     * vm-mime-can-convert-0: don't return a match when the target
+       type matches the original type.
+     * vm-mime-display-internal-image-xemacs-xxxx: wrap image extents
+       around spaces instead of newlines.  Adjust newline insertion
+       code accordingly.  Create image strips twice the default font
+       height to avoid having to match the font ascent value.  Don't
+       use vm-monochrome-face except on XBM images.
+     * vm-display-image-strips-on-extents,
+       vm-display-some-image-strips-on-extents: Don't use
+       vm-monochrome-face except on XBM images.
+     * support completion-ignore-case variable.
+     * block interactive use of vm-expunge-pop-messages in a POP
+       folder.  It's meant for folder linked to POP spool files, not
+       POP folders.
+     * use display-planes function to determine if Emacs 21 is running
+       on a "colorful" display.
+     * put image/xpm ahead of image/pbm in vm-mime-image-type-converter-alist.
+     * vm-parse-date: find year even if it's at the end of line.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 24 Jan 2002 20:26:03 -0600
+
+vm (7.00-1) unstable; urgency=low
+
+  * Add a patch from Ian Jackson that creates a new interactive virtual
+    folder selector `sexp', which prompts for an string, asking for an
+    S-expression.  You type in a string, which gets turned into a LISP
+    object with `read', and used as the actual selector.     closes: Bug#122450
+  * New upload fixes image display bug for emacs21.          closes: Bug#123990
+  * New upstream version. Excerpted changes:
+    * New commands:
+      + vm-visit-pop-folder
+      + vm-visit-pop-folder-other-window
+      + vm-visit-pop-folder-other-frame
+    * New variables:
+      + vm-pop-folder-alist
+      + vm-pop-folder-cache-directory
+    * vm-parse-date: fixed search to allow monthday digits to occur
+      at the beginning of a string.
+    * vm-get-mail-itimer-function: skip buffer if bm-block-new-mail
+      is set.  This avoids vm-get-spooled-mail signaling "can't get
+      new mail until you save this folder" later.  Also check for
+      mail block and folder read-only before doing the expensive file
+      stat checks.
+    * vm-get-image-dimensions: don't search for the filename in
+      the 'identify' output.  Apparently 'identify' will sometimes
+      substitute a different filename than we expect.  Instead
+      just search for a space and then start looking for the image
+      dimensions from that point.
+    * moved setting of vm-folder-type in the POP trace buffer from
+      vm-pop-move-mail to vm-pop-make-session so that all callers get
+      of vm-pop-make-session get the feature.
+    * vm-assimilate-new-messages: check for new-messages non-nil
+      before attempting some things.  Makes the function a bit more
+      efficient if we call it and no new messages are found.
+    * vm-pop-report-retrieval-status,
+      vm-imap-report-retrieval-status: report "post processing" if
+      'need' value is nil.
+    * vm-pop-retrieve-to-crashbox -> vm-pop-retrieve-to-target
+    * vm-imap-retrieve-to-crashbox: use new "post processing" reporting.
+    * vm-pop-retrieve-to-target: use new "post processing" reporting.
+    * vm-expunge-pop-messages: record which messages were expunged by
+      stuffing nil into the car of the cell in vm-pop-retrieved-messages.
+      At the end strip out all the nils, leaving the data for messages
+      that we had problems expunging from the POP server.
+    * in vm-stuff-* functions check for vm-message-list non-nil
+      instead of vm-message-pointer.
+    * vm-pop-end-session: check whether the process is still open or
+      running before attempting to send the QUIT command.  Also check
+      whether the process buffer is still alive before killing it.
+    * vm-get-spooled-mail: gutted, with most of it going into
+      vm-get-spooled-mail-normal.  Calls vm-pop-synchronize-folder
+      for folders that use the POP access method.
+    * vm-session-initialization: when deciding whether to create the
+      vm-image-placeholder face check for image-type-available-p
+      being fbound, not vm-image-type-available-p.
+    * use <vm-image-face> instead of <face> as the name of the faces
+      used to display images under Emacs 19 and 20.
+    * vm-mime-display-internal-image-xemacs-xxxx: insert a newline
+      before the image if point is at the same position as the
+      beginning of the text portion of the message.  Otherwise
+      there is no visible separation between the image and the
+      message headers.
+    * vm-pop-report-retrieval-status,
+      vm-imap-report-retrieval-status: record in the statblob the fact
+      that some status was reported.
+    * vm-pop-stop-status-timer, vm-imap-stop-status-timer: if any
+      status was reported, do (message "") to clear the echo area.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 16 Dec 2001 22:55:56 -0600
+
+Old Changelog:
+  
+vm (6.98-1.0.1) unstable; urgency=low
+
+  New feature:
+  * Interactive vm-create-virtual-folder has a new selector type `sexp'
+    which lets you type in a selector of your own as a LISP expression
+    (which will not be eval'd).  Eg,
+        V C sexp RET  (not (header "X-RBL-Warning"))  RET
+
+ -- Ian Jackson <ian@davenant.greenend.org.uk>  Tue,  4 Dec 2001 20:43:32 +000
+
+vm (6.99-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+      * New commands:
+        + vm-scroll-forward-one-line
+        + vm-scroll-backward-one-line
+      * New variables:
+        + vm-imagemagick-identify-program
+        + vm-mime-display-image-strips-incrementally
+      * vm-do-folders-summary: bind default-directory to the directory
+        names when checking for subdirectories amongst its children
+        with vm-delete-directory-names.
+      * vm-get-image-dimensions: use the ImageMagick program 'identify'
+        instead of 'convert' to get the image dimensions.
+      * vm-thread-list: set done to t if we've run out of references
+        and we're not threading by subject (vm-thread-using-subject ==
+        nil).  Fixes infloop.
+      * use the vm-monochrome-image face for image glyphs instead of vm-xface
+        under XEmacs.
+      * use a face with a background stipple (vm-image-placeholder)
+        on the spaces used to display images in FSF Emacs 19.
+      * vm-display-image-strips-on-overlay-regions: store modified
+        flag value after the process buffer is selected, otherwise
+        we're recording the state of the wrong buffer.
+      * vm-mime-display-internal-image-fsfemacs-21-xxxx: If the image
+        strip is the same height as the font the image ascent ratio
+        must match font ascent ratio else the image strips will be
+        displayed with gaps between them.  There's currently no way to
+        get font ascent information under Emacs 21.  Use strips that
+        are twice the font height and a 50/50 ascent ratio to avoid
+        this problem.
+      * vm-make-image-strips: remainder math was wrong, fixed   Use new
+        remainder math in the sync branch.  Use vm-make-tempfile
+        instead of vm-make-tempfile-name.
+      * when cutting images into strips give 'convert' an explicit
+        target type.  Otherwise it might choose some unknown new type
+        that Emacs can't display.
+      * vm-parse-date: simplified the search for the monthday and the
+        year, hopefully reducing the problems with confusing 2-digit
+        years and monthdays.
+      * vm-thread-list: check and set 'oldest-date property on all the
+        messages.
+      * vm-mail-internal: eval the value of mail-signature and insert
+        the result if its value is not nil, t or a string.  Also, if
+        mail-signature is a string, subject the result to the same
+        check for a proper signature separator.
+  * The new sources are actually in the package.             closes: Bug#120476
+  * Also set  vm-image-directory to the images location      closes: Bug#120494
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat,  1 Dec 2001 20:37:41 -0600
+
+vm (6.98-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+    * New variables:
+      + vm-mime-use-image-strips
+      + vm-imagemagick-convert-program
+      + vm-mime-charset-converter-alist
+    * inline image display support for Emacs 19 and Emacs 20.
+    * vm-md5-region: deal with the " -\n" that md5sum appends to the
+      checksum output when summing stdin.
+    * vm-edit-message: set buffer-offer-save to t so that if user
+      types C-x C-c they won't lose their changes in the message edit
+      session without warning.
+    * vm-spool-files: remove any directories from vm-spool-files
+      that we slurped from environmental variables.  There was a case
+      where a user's MAIL variable was set to /var/mail.  I don't know
+      how widespread this practice is.
+    * when initializing vm-temp-file-directory check for C:\TEMP
+      before C:\.
+    * vm-setup-ssh-tunnel: instead of sleeping for a bit and hoping
+      that's long enough to establish a connection, read some output
+      from the tunnel before returning so we know that the connection
+      is established.  vm-ssh-remote-c0mmand has to provide the output,
+      so its default value has been changed to produce output.
+    * vm-frame-loop: don't reset the starting frame placeholder unless
+      the starting frame was really deleted.  Fixes an infloop when
+      quitting out of VM and the VM summary is visible in multiple
+      frames.
+    * try to use the ImageMagick 'convert' program (if available) to
+      convert image types that Emacs can't display internally into
+      images that Emacs can display.
+    * support the unregistered image/xbm, image/xpm and image/pbm
+      types, so that we can autoconvert unsupported image types to
+      these types under an Emacs that's compiled with minimal image
+      support.
+    * use w3m to retrieve URLs if specified in vm-url-retrieval-methods.
+    * make layout cache be the property list of a symbol instead of
+      an alist.
+    * use vm-make-tempfile in more places to produce private tempfiles
+      instead of vm-make-tempfile-name.
+    * vm-preview-composition: mnuge message separators that appear in
+      the message body.  Use MMDF for the temp folder type.
+    * all your base no longer are belong to us.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 20 Nov 2001 09:34:36 -0600
+
+vm (6.97-3) unstable; urgency=low
+
+  * Fixed minor typo in the long description.                closes: Bug#118770
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 13 Nov 2001 15:15:13 -0600
+
+vm (6.97-2) unstable; urgency=low
+
+  * vm now allows emacs21 to fill the dependency.            closes: Bug#117664
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri,  2 Nov 2001 02:42:47 -0600
+
+vm (6.97-1) unstable; urgency=low
+
+  * Added emacs21 to the list of known emacsen (I ahve beeen using it
+    with the pre releases)
+  * Fixed typo in description.                               closes: Bug#115819
+  * Remove files created on the fly as well.                 closes: Bug#117140
+  * New upstream version. Excerpted changes:
+     * New variables:
+       + vm-mime-require-mime-version-header
+     * SSL support for IMAP and POP.
+     * SSH tunnel support for IMAP and POP.
+     * uninstall toolbar goop from vm-mode-map under FSF Emacs if we're
+       creating a frame and vm-use-toolbar is nil.
+     * don't use a heuristic background map in the toolbar image spec
+       for the MIME icon.
+     * vm-make-tempfile-name: add a random elemnt to VM's temporary
+       file name.
+     * vm-pop-cleanup-region, vm-imap-cleanup-region: don't emit
+       CRLF->LF status messages.  Say something about post-processing
+       in the normal status message instead.
+     * vm-mail-to-mailto-url: do session initialization stuff so that
+       the function can be called from gnuclient.  This is apparently
+       useful for driving VM from a web browser that allows use of an
+       external mailer.
+     * vm-mime-encode-composition: undo buffer changes if an
+       error occurs during encoding.
+     * rename certain composition buffers on the fly as the recipient
+       headers change to reflect the new primary recipient(s).
+     * vm-submit-bug-report: call vm-session-initialization so the all
+       necessary goop is loaded, rather than doing a few 'require'
+       calls.  This fixed the bug in the VM XEmacs package where
+       calling vm-submit-bug-report immediately after starting XEmacs
+       would cause (void-function vm-display) to be signaled.
+     * vm-th-parent: when extracting the parent message ID from the
+       In-Reply-To header, use the longest ID found, instead of the
+       first ID found.  Store the result in the references slot in the
+       message struct, since that slot must be empty otherwise we
+       would be ignoring In-Reply-To.
+     * vm-thread-list: remove the clock skew loop-recovery-point
+       heuristic; seems to cause more breakage than it fixes.
+     * vm-mime-display-internal-image-fsfemacs-xxxx: use a unibyte buffer
+       as a work buffer when unpacking an image file.  Apparently needed
+       to avoid the evil \201 corruption under Emacs 21.
+     * accept 'name' parameter as suggested filename for all MIME
+       types.  Old broken software that sends this stuff will never go
+       away and complaints about it will never end.
+     * default vm-use-lucid-highlighting non-nil only if (require
+       'highlight-headers) doesn't signal an error.
+     * vm-md5-region: call the MD5 program directly instead of using
+       sh -c.
+     * vm-pop-md5: call the MD5 program directly instead of using
+       sh -c.
+     * vm-check-for-spooled-mail, vm-get-spooled-mail: bind
+       case-fold-search to nil for comparisons against vm-recognize-*.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 29 Oct 2001 10:56:17 -0600
+
+vm (6.96-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+     * print-autoloads: handle fset calls.  There are paths through
+       the code that reach functions that are to be defined by fset
+       but lack autoload definitions.  print-autoloads now creates
+       autoload definitions for them.
+     * vm-mime-encapsulate-messages: pluralization fix in MIME digest
+       preamble.  Don't output "messages" if there's only one message in
+       the digest.
+     * vm-display-startup-message: update copyright date.  Use
+       \251 under XEmacs to show the c-in-circle copyright glyph.
+       Can't rely on FSF Emacs being setup to display it.
+     * vm-mime-display-internal-application/octet-stream: honor
+       setting of vm-mime-delete-after-saving.
+     * vm-imap-move-mail: don't emit warning messages if BODY.PEEK
+       fails--- no one cares.  Don't retry BODY.PEEK after it fails
+       the first time, it will never work.  Use RFC822.PEEK henceforth
+       within this IMAP session.
+     * vm-toolbar-support-possible-p: check whether the variable
+       tool-bar-map is bound.  Apparently tool-bar-mode is fboun
+       even when there is no toolbar support (e.g. under Windows).
+     * moved guts of vm-discard-cached-data to vm-discard-cached-data-internal.
+     * vm-mime-attach-message: corrected prompt in the "attach from
+       other folder" case.
+     * vm-summary-sprintf: decode encoded words in the final string if
+       we're not producing a tokenized result and vm-display-using-mime
+       is not nil.
+     * vm-mail-to-mailto-url: support full RFC2368 mailto URL spec.
+     * vm-pop-send-command: use one process-send-string call instead
+       of two, which should saves some packet overhead at the
+       expense of more string consing.
+     * vm-imap-send-command: use one process-send-string call instead
+       of three, which should saves some packet overhead at the
+       expense of more string consing.
+     * vm-imap-send-command: allow sending a string without a tag.
+       Also allow sending a string with a caller specified tag.
+     * vm-imap-make-session: don't send a tag with the CRAM-MD5
+       challenge response.
+     * vm-do-summary: reuse the mouse-track overlays if possible,
+       instead of generating a new one each time.  The old ones
+       apparently are never reclaimed by Emacs until the buffer is
+       killed and degrade editing performance in that buffer.
+     * vm-imap-ask-about-large-message: require simple "OK" response
+       after fetching headers instead of "OK FETCH".  The "FETCH" part
+       may never come and isn't required.
+     * vm-save-folder: sweep though virtual folder associated with the
+       real folder and set their buffer modified flags to nil if they
+       are none of their real folders are modified.
+     * vm-thread-list: don't the first and last element of a multielement
+       thread list to be the same message-ID.  This is a thread loop that
+       previously was previously undetected.
+     * vm-thread-list: remember the position in the thread list where
+       we first threaded using subject information and reset the
+       thread list to that point if we encountered a message ID we've
+       seen before.  This is a heuristic to try to trim off
+       parents-by-subject that are only parents due to clock skew.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat,  8 Sep 2001 01:52:17 -0500
+
+vm (6.95-1) unstable; urgency=low
+
+  * Fixed the info install and remove sectrions for vm.      closes: Bug#106847
+  * New upstream version.
+  * Excerpted changes:
+    * New variables:
+      + vm-mime-attachment-auto-suffix-alist
+    * vm-guess-digest-type: require a line consisting of 30 dashes in
+      addition to the 70 dashes line before guessing RFC 1153.
+    * vm-md5-region: add third arg that prevents re-search-forward
+      from signalling an error if it fails.
+    * vm-toolbar-update-toolbar: don't use the 'getmail' icon
+      as the helper button if 'getmail' is already on the toolbar.
+    * vm-toolbar-update-toolbar: don't use the 'mime icon
+      as the helper button if 'mime' is already on the toolbar.
+    * vm-mime-attach-message: if invoked on marked messages (C-c C-v
+      M N C-c C-m) attach the marked messages in the parent folder as
+      a digest.
+    * vm-mail-mode-remove-tm-hooks: remove global TM/SEMI hooks from
+      mail-setup-hook and mail-send-hook if vm-send-using-mime is
+      non-nil.  Previously VM tried to remove the hooks locally but
+      that doesn't work.
+    * fixed negative Content-Length computation problem
+      - vm-find-leading-message-separator,
+        vm-find-trailing-message-separator: new type 'baremessage
+        means go to point-max.
+      - vm-pop-retrieve-to-crashbox, vm-imap-retrieve-to-crashbox: use
+        'baremessage as old type during header conversion.  Narrow to
+        region around message during this conversion so that folder
+        traversal functions can safely go to point-max without moving
+        past the end of the message.
+    * vm-pop-make-session, vm-imap-make-session: don't sleep for 2
+      seconds after reporting a bad password unless the function was
+      called synchronously, i.e. not from a timer.
+    * vm-check-mail-itimer-function, vm-get-mail-itimer-function,
+      vm-flush-cached-data: when traversing the buffer list, check
+      whether a buffer is still alive before selecting it.  Because
+      the loop calls input-pending-p, a timer or process-filter could
+      have killed one of the buffers.
+    * vm-delete-duplicate: remove duplicate addresses case
+      insensitively  This is still sort of wrong, in that the only
+      the right hand side of the address should be treated this way.
+      But doing the right thing is hard.
+    * vm-mime-display-internal-image-xemacs-xxxx: make the image
+      extent be 'start-open' so that it is moved forward when text is
+      inserted at its position.  This fixes the image doubling
+      problem if a mssage containing only an image is previewed with
+      vm-mime-deocde-for-preview set non-nil.
+    * vm-narrow-for-preview: added kludge to prevent images and button
+      art from being displayed at the edge of a preview cutoff during
+      MIME decode-for-preview.  Everything beyond the cutoff is shifted
+      forward one character during MIME preview.  (XEmacs only for now, but
+      might be needed for FSF Emacs 21).
+    * vm-mime-encapsulate-messages, vm-rfc934-encapsulate-messages,
+      vm-rfc1153-encapsulate-messages: do a better job of protecting
+      MIME headers.  Sort the MIME headers to the top of the message
+      then skip past them before applying the user's header filter
+      variables.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 30 Jul 2001 13:10:01 -0500
+
+vm (6.94-2) unstable; urgency=low
+
+  * Remove cross pollution between vm and mime codecs.       closes: Bug#106032
+  * Updated the long description to be in line with the current state of
+    VM documentation: up to date.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 22 Jul 2001 23:37:54 -0500
+
+vm (6.94-1) unstable; urgency=low
+
+  * New upstream version.
+  * Excerpted changes:
+    * in the defconst of vm-menu-mime-dispose-menu, check whether a
+      non-string s-expression is allowed as a menu element name
+      before trying to use one.  Versions of XEmacs prior to 21.4
+      don't allow expressions as item names.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 13 Jul 2001 12:28:07 -0500
+
+vm (6.93-1) unstable; urgency=low
+
+  * New upstream version.
+  * Excerpted changes:
+      * New variables:
+        + vm-folder-file-precious-flag
+      * added CRAM-MD5 as an authentication method for IMAP.
+      * vm-su-do-date: interpret 2-digit years in the RFC-822 matching
+        case as 20XX if year starts with 0-6.
+      * vm-rfc1153-or-rfc934-burst-message: skip spaces in addition to
+        newlines that occur after a separator line.  A digest has been
+        observed with that kind of deformity.
+      * treat enable-local-eval as we do enable-local-variables--- always
+        bind it to nil.
+      * vm: don't bind vm-auto-decode-mime-messages non-nil during
+        initial message preview if it is nil.
+      * vm-mime-display-internal-text/html: dropped (sleep-for 2).  No one
+        cares enough about the "Need W3 to inline HTML" message to wait 2
+        seconds afterward.
+      * added menu entry to allow MIME objects to be converted to
+        another type and displayed.  The new type is determined by
+        vm-mime-type-converter-alist.
+      * added koi8-r to vm-mime-mule-charset-to-coding-alist (XEmacs only).
+      * vm-pop-read-list-response: check for nil return of
+        vm-pop-read-response before using return value.
+      * vm-pop-read-stat-response: check for nil return of
+        vm-pop-read-response before using return value.
+      * vm-encode-coding-region: use unwind-protect to make sure (well
+        more likely) that the work buffer always gets killed if it has
+        been created.
+      * vm-decode-coding-region: use unwind-protect to make sure (well
+        more likely) that the work buffer always gets killed if it has
+        been created.
+      * vm-mime-convert-undisplayable-layout: put object buffer on
+        garbage list sooner to make rarer the situation where the
+        buffer never gets deleted.
+      * Makefile: remove function definition of vm-its-such-a-cruel-world
+        after it is run.
+      * vm-md5-region: if vm-pop-md5-program exits non-zero, signal an
+        error.  Also if the work buffer is not at least 32 bytes long,
+        signal an error.  This prevents naive callers from assumption all
+        is well and using a possibly empty string as an MD5 hash.
+      * vm-md5-region: check the MD5 digest returned for non-hex-digit
+        characters and signal an error if any are found.
+      * vm-get-file-buffer: use find-buffer-visiting if it is fbound.
+      * vm-build-threads: fixed loop that removed child messages from a
+        parent when better information about a child's parent is found.
+        Previously the loop attempted to remove the same message from
+        the parent over and over.
+      * vm-build-threads: gather thread data using References and
+        In-Reply-To for all messages before using the Subject header.
+        This helps prevent the case where References says A is the
+        parent of B but because of clock skew B is older than A, which
+        can lead to B being considered the parent of A if A and B have
+        the same subject and vm-thread-using-subject is non-nil.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed,  4 Jul 2001 14:31:49 -0500
+
+vm (6.92-1) unstable; urgency=low
+
+  * New upstream version. This version fixes the problem with attachments,
+    closes: Bug#93447, Bug#86066
+  * No longer depend on emacs19. closes: Bug#82679
+  * Excerpted changes:
+    * vm-imap-check-mail: throw to 'end-of-session instead of 'done.
+      Fixes problem of vm-spooled-mail-waiting not being set.
+    * vm-su-do-recipients: If there is no To or Apparently-To header,
+      use Newsgroups if available.
+    * vm-mime-display-external-generic: use a unibyte temp buffer for
+      base64 decoding if using FSF Emacs MULE.  Otherwise our old
+      friend \201 crashes the party.
+    * vm-mime-find-leaf-content-id-in-layout-folder: add missing
+      layout argument to vm-mime-find-leaf-content-id.
+    * vm-mime-parse-entity: fixed regexps that match an empty content
+      description so that they match descriptions that only contain
+      spaces.
+    * vm-su-do-date: make +/- mandatory in the numeric tiemzone spec.
+      First digit of numeric timezone spec must be 0 or 1.
+    * vm-fill-paragraphs-containing-long-lines: ignore errors generated
+      by fill-paragraph.
+    * moved the code that catches the font-lock search bound error
+      from the XEmacs MIME composition encoder to the FSF Emacs
+      encoder.
+    * vm-mime-charset-internally-displayable-p: allow variable
+      vm-mime-default-face-charsets to apply to MULE-enabled Emacs
+      and XEmacs.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 16 Apr 2001 08:55:30 -0500
+
+vm (6.91-1) unstable; urgency=low
+
+  * Added Lintian overrides, so that the postinst not setting the symlink
+    warning should be gone.
+  * New upstream version. Excerpted changes:
+    * vm-mime-can-display-internal: check charset to verify that we
+      can display it when checking text/html.
+    * vm-auto-archive-messages: hide value of last-command when calling
+      vm-save-message.
+    * vm-mime-find-leaf-content-id: removed second arg in call to
+      vm-mm-layout-id since it only accepts one argument.
+    * vm-mime-transfer-encode-region: \\n -> \n in armor-dot check
+      regexp string.
+    * vm-mime-parse-entity-safe: dropped (sleep-for 2).  No one cares
+      about syntax errors.
+    * vm-mime-base64-encode-region: if call to base64-encode-region
+      fails with wrong-number-of-arguments error call it with only
+      two args and do the B encoding cleanup separately.
+    * vm-mime-base64-decode-region: don't use the FSF Emacs base64
+      decoding function, since it fails completely if it encounters
+      characters outside of the BASE64 alphabet.
+    * vm-mime-attachment-auto-type-alist: added the usual PDF,
+      Quicktime and Excel file extensions.
+    * vm-imap-move-mail: trying using obsolete RFC822.PEEK if
+      BODY.PEEK fails.
+    * vm-imap-retrieve-to-crashbox: support use of obsolete RFC822.PEEK.
+    * vm-so-sortable-datestring: use vm-timezone-make-date-sortable
+      instead of the bare timezone-make-date-sortable, which is less
+      capable of parsing badly formed Date headers.
+    * vm-mime-convert-undisplayable-layout: save the content type
+      parameters from the old type and give them to the new type.
+    * all your base are belong to us
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 10 Mar 2001 15:53:38 -0600
+
+vm (6.90-1) unstable; urgency=low
+
+  * Mostly bug fixes.
+    * vm-compose-mail: Use apply instead of funcall to call the yank
+      action.  We aren't passing a list of arguments to the function.
+    * vm-mark-or-unmark-messages-same-author: compare author
+      addresses case insensitively.
+    * vm-emit-eom-blurb: ignore case when matching against
+      vm-summary-uninteresting-senders to match what
+      vm-su-interesting-from does.
+    * vm-mime-display-internal-text/html: use 'message' to display
+      any errors encountered.
+    * vm-mime-display-internal-text/enriched: use 'message' to display
+      any errors encountered.
+    * vm-yank-message: call vm-decode-mime-encoded-words in the correct buffer.
+    * default value of vm-auto-center-summary changed from nil to 0.
+  * Removed any relationship with emacs19, since that has been removed
+    from stable. closes: Bug#82788
+  * since around mid 6.80's, VM has started using grep -c to determine the
+    number of new messages. Before, it just looked at the time stamp and
+    hence did not muck with access times of the spool file. This messes
+    with other biff like programs out there. At present, the only option
+    is to turn vm mail check off; this is already reported as a bug. Stay
+    tuned.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 28 Jan 2001 18:13:38 -0600
+
+vm (6.89-1) unstable; urgency=low
+
+  * Mostly bug fixes.
+    * vm-yank-message: MIME decode the headers of the yanked message
+      if vm-display-using-mime is non-nil.
+    * vm-forward-message: if MIME forwarding, switch the buffer
+      containing the attached message to be multibyte to avoid the
+      appearance of our old friend \201 when the buffer contents are
+      inserted into the composition buffer.  (FSF Emacs 20 only).
+    * vm-do-folders-summary: count messages in folders that lack
+      entries in the folders summary database using vm-grep-program.
+    * vm-do-folders-summary: ignore index files in the folder directories.
+    * vm-update-folders-summary-highlight: use intern-soft instead of
+      intern, since the symbol may not be present in the obarray.
+    * vm-mark-for-folders-summary-update: check for killed summary
+      before selecting folders summary buffer.
+    * vm-emit-eom-blurb: bind vm-summary-uninteresting-senders-arrow
+      to "" around call to vm-summary-sprintf.
+    * Makefile: Start using $(prefix) to be more GNUish.  Try to
+      create the installation directories if they don't exist.
+    * vm-modify-folder-totals: wrong cells in the list were being
+      updated; fixed.
+    * vm-mime-run-display-function-at-point: return result of calling
+      the display function because callers expect it.  This wasn't
+      happening in the FSF Emacs part of the conditional.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 26 Dec 2000 17:36:06 -0600
+
+vm (6.88-1) unstable; urgency=low
+
+  * New upstream revision. The changes are:
+     * New variables:
+       + vm-folders-summary-mode-hook
+       + vm-mmosaic-program
+       + vm-mmosaic-program-switches
+     * vm-determine-proper-charset: don't use MULE rules if operating
+       in a unibyte buffer.  The non-MULE rules work better in that
+       case.  Dropped use of vm-with-multibyte-buffer.
+     * use BODY.PEEK instead of RFC822.PEEK in IMAP message fetches,
+       since RFC822.PEEK has been made obsolete in RFC 2060.
+     * not decoding for preview if vm-preview-lines == 0 was a
+       mistake, as the header might still need decoding, so this
+       change was reversed.
+     * allow 8-bit chars in IMAP atoms.  Microsoft Exchange emits them,
+       resistance is futile.
+     * keep IMAP trace buffer if a protocol error occurs.  Code for
+       this was partially done, it's finished now.
+     * improved folders summary, new folders summary format specifier %s.
+     * vm-move-to-xxxx-button: fixed code assumption that buttons were
+       contiguous.
+     * qp-encode.c: get rid of non-constant initializers (nextc =
+       getchar()) to avoid warnings from Sun's compiler.
+     * vm-toolbar-fsfemacs-install-toolbar: "mime" now works in
+       vm-use-toolbar under FSF Emacs.
+     * don't display verbose "Waiting for POP QUIT" message unless
+       getting mail interactively.
+     * make vm-thread-loop-obarray a larger hash table.
+     * use vm-global-block-new-mail to prevent async reentrance into the POP
+       and IMAP code.  Use vm-block-new-mail to prevent command-level
+       mail retrieval buffer locally.
+     * vm-check-mail-itimer-function: always check for mail.  Now that
+       we're updating the folders summary we need to do the check even
+       if we know there is new mail fmor a previous check, so that the
+       summary so kept up to date.
+     * removed Mule menu from VM's commandeered menubar (FSF Emacs 20 only).
+     * C-c C-p in composition buffer binding changed from
+       vm-mime-preview-composition to vm-preview-composition.
+     * vm-sort-messages: fixed paren problem that broke non-thread
+       sorting while threading was enabled.
+     * vm-assimilate-new-messages: don't run vm-arrived-message-hook
+       and vm-arrived-messages-hook if being called for the first time
+       in this folder.  Old check for this didn't work properly, so
+       now first-time status is passed in as a parameter.
+     * vm-emit-eom-blurb: use vm-summary-sprintf on full name so that
+       it is MIME decoded if necessary.
+     * vm-check-for-spooled-mail: don't skip remaining spool files
+       once we know there is mail waiting.  We still need to retrieve
+       data for the remaining folders for the folders summary.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 18 Dec 2000 13:45:59 -0600
+
+vm (6.87-1) unstable; urgency=low
+
+  *  New upstream revision. The changes are:
+    * New commands:
+      + vm-delete-duplicate-messages
+    * New variables:
+      + vm-pop-read-quit-response (default value is t)
+    * vm-toolbar-fsfemacs-install-toolbar: fix logic reversal that
+      caused Emacs 21 toolbar to never be installed.
+    * reviewed coding-system-for-{read,write} usage everywhere and
+      brought it into line with current theory of how Emacs/MULE
+      works.  coding-system-for-write is bound in more places because
+      in the Emacs 21.0.91 pretest, write-region, even when called
+      non-interactively, will query the user if it doesn't think the
+      buffer's coding system can be used to safely write out the
+      data.
+    * vm-mail-to-mailto-url: vm-url-decode -> vm-url-decode-string.
+    * vm-move-to-xxxx-button: next-etent-change -> next-extent-change.
+    * vm-move-to-xxxx-button: dropped point movement outside the loop
+      as it wasn't needed and actually broke things.
+    * vm-add-or-delete-message-labels: don't cycle through the
+      message list if there are no labels to act upon.
+    * vm-add-or-delete-message-labels: return a list of labels that were
+      rejected because they are not known.  vm-add-existing-message-labels
+      expects this and it apparently hasn't been done in a long time.
+    * call base64-encode-region and base64-decode-region only if they
+      are subrs.
+    * vm-check-for-spooled-mail: save-excursion around the guts
+      of the let form that binds vm-block-new-mail to avoid the
+      restore-the-wrong-local-variable bug.
+    * vm-get-spooled-mail: save-excursion around the guts of the let
+      form that binds vm-block-new-mail to avoid the
+      restore-the-wrong-local-variable bug.
+    * vm-determine-proper-content-transfer-encoding: changed search
+      for non-ASCII chars from [\200-\377] to [^\000-\177] because FSF
+      Emacs 20 re-search-forward does not match 0200-0377 unibyte
+      chars in multibyte buffers.  They only match in unibyte buffers.
+    * vm-unbury-buffer: wrapped call to switch-to-buffer in condition-case
+      in case it fails (dedicated window, minibuffer window)
+    * reversed coding system changes introduced in VM 6.85 in
+      vm-line-ending-coding-system and vm-binary-coding-system, as
+      they were wrong.
+    * vm-minibuffer-complete-word: use minibuffer-prompt-end
+      function to determine where the prompt ends instead of
+      previous-property-change.
+    * vm-toolbar-fsfemacs-install-toolbar: use xbm images if the
+      display is not color-capable.
+    * vm-toolbar-fsfemacs-install-toolbar: don't use "mime-colorful"
+      as a basename when looking for an XBM for a non-color display.
+    * vm-toolbar-make-fsfemacs-toolbar-image-spec: use ":mask
+      heuristic" to make the toolbar pixmap/bitmap backgrounds track the
+      background of the tool-bar face.
+    * vm-mime-base64-encode-region: when using base64-encode-region
+      wrap it in a condition-case to catch errors and resignal all
+      errors with vm-mime-error.
+    * vm-mime-base64-decode-region: when using base64-decode-region
+      wrap it in a condition-case to catch errors and resignal all
+      errors with vm-mime-error.
+    * getmail-xx.xbm was a PBM file.  No one noticed.  Fixed.
+    * check for vm-fsfemacs-p before using overlay-put, overlay-get,
+      etc. in the extent/overlay compatibility functions.  We can't
+      use the overlay emulation package's functions because VM needs
+      the functions to be able to handle plain extents also.
+    * vm-mime-fsfemacs-encode-composition: catch the "Invalid search
+      bound (wrong side of point)" error that font-lock can throw and
+      ignore it.
+    * vm-set-window-configuration: delete windows that are over
+      explicitly named buffers.  This is meant as an aid to BBDB
+      users who might want to include a BBDB window in a
+      configuration but don't want the window to appear unless the
+      displayed buffer is non-empty.
+    * install the toolbar only once under FSF Emacs, since it will
+      appear everywhere vm-mode-map is used thereafter.
+    * panic buffoon's color changed from rgb:ff/7f/ff to rgb:e1/92/46 (tan).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri,  1 Dec 2000 02:13:21 -0600
+
+vm (6.85-1) unstable; urgency=low
+
+  * New upstream revision. The changes are:
+    * New commands:
+      + vm-move-to-previous-button
+      + vm-move-to-next-button
+    * vm-end-of-message, vm-beginning-of-message: wrap vm-save-buffer-excursion
+      about part of function that does window selection since that can
+      change the current buffer.  vm-narrow-to-page was noticing the
+      buffer change to the summary; vm-message-pointer was suddenly nil.
+    * made vm-create-virtual-folder, and by effect its callers, honor
+      vm-next-command-uses-marks.
+    * vm-apply-virtual-folder: honor vm-next-command-uses-marks.
+    * added no-suggested-filename arg to vm-mime-attach-file and
+      vm-mime-attach-object.
+    * vm-preview-current-message: don't decode for preview unless
+      vm-preview-lines is non-nil, as this is extra unnecessary work.
+    * vm-pop-end-session: read POP QUIT response; Microsoft Exchange
+      apparently will sometimes not expunge if we close the connection
+      without reading the response.
+    * set reasonable default value for vm-folders-summary-directories.
+    * vm-preview-current-message: don't block display of any type
+      other than message/external-body and externally displayed types
+      when supporting vm-mime-decode-for-preview.
+    * internal image support for v21 Emacs.
+    * toolbar support for v21 Emacs.
+    * Makefile: for 'make autoload' compile vm.el into vm.elc instead
+      of writing require statements directly into it, otherwise Emacs
+      21 bitches.
+    * vm-binary-coding-system was returning no-conversion under FSF
+      Emacs, which is wrong, now returns raw-text.
+    * vm-minibuffer-complete-word: In Emacs 21, during a minibuffer
+      read the minibuffer contains propt as buffer text and that text
+      is read only.  So we can no longer assume that (point-min) is
+      where the user-entered text starts so we must compute this
+      location.  Calling previous-property-change is a kludge but it
+      seems ot be the only thing that does the job.
+    * vm-mime-display-internal-message/external-body: for Emacs 21,
+      use a multibyte work buffer, otherwise the evil \201s appear
+      in the tempfile and utterly corrupt it.  Also set
+      buffer-file-coding-system in the work buffer, since
+      write-region may be called in it later.
+    * dropped use of vm-with-unibyte-buffer.  I don't htink it is
+      needed any longer.
+    * vm-assimilate-new-messages: only run vm-arrived-messages-hook
+      if a new message has arrived.
+    * use a normal keymap instead of a sparse keymap for vm-mode-map.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 24 Nov 2000 23:42:45 -0600
+
+vm (6.84-1) unstable; urgency=low
+
+  * New upstream revision. The changes are:
+    * vm-submit-bug-report: mail-user-agent should be a symbol not a
+      list--- fixed.
+    * vm-keep-some-buffers: kill a buffer even if it is modified
+      if it's value of buffer-offer-save is nil.
+    * vm-pop-make-session: if APOP authentcation fails, remove the
+      saved password just like we do for PASS authentication.
+    * new variable and function vm-xemacs-file-coding-p tells whether
+      XEmacs was compiled with --with-file-coding=yes, which means
+      several things need to be treated the same as if MULE were
+      enabled.
+    * when deciding whether to call set-buffer-file-coding-system
+      just check fboundp instead of xemacs-mule-p or fsfemacs-mule-p.
+      This should help XEmacs-NT+file-coding.
+
+    * New variables:
+      + vm-page-continuation-glyph
+      + vm-folders-summary-database
+      + vm-folders-summary-directories
+      + vm-folders-summary-format
+      + vm-frame-per-folders-summary
+    * New commands:
+      + vm-folders-summarize
+    * Makefile: moved vm-version.el to the beginning of the SOURCES
+      list so that "make debug" doesn't crash on unbound variables.
+    * vm-narrow-to-page: move to beginning of line only if we're not
+      at end of buffer.  If we're at end of buffer, it usually means
+      forward-page failed to find a page delimiter and crashed into
+      point-max.
+    * vm-scroll-forward: after calling vm-narrow-to-page move to
+      either the new window start or the start of the text section of
+      the message, whichever is the greater buffer position.  This
+      fixes the semi-broken backward paging over page delimiters and
+      fixed the broken forward scrolling over page delimiters after
+      scrolling backward through the same message.
+    * vm-narrow-to-page: use overlay/extent to display a "...more..."
+      type string at the end of a page.
+    * vm-scroll-forward: do (sit-for 0) to refresh display early so that
+      the end of message notice appears when it should when scrolling
+      over page delimiters.
+    * vm-mime-display-internal-text/html: insert placeholder
+      character before end marker before calling w3-region to avoid
+      end == start marker squashing problem.
+    * vm-submit-bug-report: reporter-submit-bug-report apparently
+      dropped support for the variable reporter-mailer in favor of
+      using mail-user-agent instead.  Bind this variable as well the
+      old one so bug reporters can send attachments.
+    * vm: don't decode MIME if recover-file is likely to happen,
+      since recover-file does not work in a presentation buffer.
+    * vm-mail-to-mailto-url: decode URL before handing it to
+      vm-mail-internal.
+    * vm-mime-compile-format-1: removed code to decode and reencode
+      MIME encoded words, since these aren't needed in MIME button
+      format tags.
+    * give up on disabling font-lock around attachments.  font-lock
+      users will just have to lose, because I don't see a clean way
+      to do it.  Removed futile atemptes from code.
+    * vm-preview-current-message: don't MIME decode for preview if
+      vm-preview-lines == 0 since it's pointless in that case.
+    * vm-select-folder-buffer: make folder buffer selection
+      mandatory, generate error otherwise.  New function
+      vm-select-folder-buffer-if-possible is to be used for
+      situations where buffer selection is not mandatory.
+    * moved vm-totals computation out of vm-emit-totals-blurb and into a
+      separate function.
+    * vm-expunge-folder: increment vm-modification-counter in the
+      real folder buffers to invalidate vm-totals.
+    * New variables:
+      + vm-url-retrieval-methods
+      + vm-wget-program
+      + vm-lynx-program
+    * access-type=url support added for message/external-body.
+    * vm-visit-virtual-folder: call vm-fsfemacs-nonmule-display-8bit-chars.
+      This needs to be done for the same reasons as it needs to be done
+      in 'vm'.
+    * provide keymap prompt for # and ## (XEmacs only, unfortunately).
+    * vm-truncate-string: fixed to once again support a negative width
+      argument, even if we're using char-width.
+    * vm-mime-get-xxx-parameter: don't inadvertently truncate parameter
+      value at newline.
+    * vm-string-width: don't use Emacs 20's string width--- it
+      ignores buffer-display-table and thereby hoses the summary.
+      Using char-width on each character and summing the reuslt
+      gives the answer we want.
+    * vm-decode-coding-region: compute old region size based on the
+      source buffer rather than the work buffer, since they might
+      have different unibyte/multibyte status.
+    * vm-decode-coding-region: reverse order of insert/delete
+      sequence at the end to delete then insert.  It fixes the
+      parsing of this header
+         From: "Cajsa Ottesj=?ISO-8859-1?B?9g==?=" <cajsao@ling.gu.se>
+      Apparently if ö is inserted before \366 in a multibyte buffer,
+      Emacs believes that the two characters are one character and
+      moves point forward past the \366.  This loses because the \366
+      needs to be deleted.
+    * vm-flush-cached-data: stuff last-modified, pop-retrieved and
+      imap-retrieved lists.
+    * vm-pop-move-mail: if we retrieved something, call vm-stuff-pop-retrieved.
+    * vm-imap-move-mail: if we retrieved something, call vm-stuff-imap-retrieved.
+    * vm-mime-display-internal-text/html: pass charset name to
+      vm-mime-charset-decode-region instead a layout.
+    * vm-mime-display-internal-text/enriched: pass charset name to
+      vm-mime-charset-decode-region instead a layout.
+    * vm-menu-mime-dispose-menu: convert extent or overlay into a
+      layout before using layout functions on it.
+    * vm-mime-send-body-to-folder: put leading and trailiing message
+      separators around the message in the temp folder.
+    * vm-mime-send-body-to-folder: clear buffer-modified flag before
+      entering vm-mode.
+    * call the mime-reader-map save functions from the dispose menu
+      instead of the low-level functions, so that
+      vm-mime-delete-after-saving is honored.
+    * vm-mime-can-display-internal: add 'deep' flag, which indicates
+      whether to check the subobject of a message/external-body
+      object.
+    * vm-mime-display-internal-multipart/alternative: use the new 'deep'
+      flag of vm-mime-can-display-internal.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 17 Nov 2000 12:20:14 -0600
+
+vm (6.81-1) unstable; urgency=low
+
+  * New upstream revision, with tonnes of changes for emacs 20
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed,  8 Nov 2000 10:58:09 -0600
+
+vm (6.76-3) unstable; urgency=low
+
+  * fixed silly typo in dependency; we need miome-codecs, not
+    vm-encoders. closes: Bug#74198
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat,  4 Nov 2000 14:46:02 -0600
+
+vm (6.76-2) unstable; urgency=low
+
+  * Change the rules file not to require emacs in the binary arch
+    phase. closes: Bug#71354
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 15 Sep 2000 13:07:10 -0500
+
+vm (6.76-1) unstable; urgency=low
+
+  * At last, emacs20 compatibility. This is a new upstream
+    version. excerpted changes: closes: Bug#69189
+    # New variables:
+      + vm-movemail-program-switches
+    # generate a random Message-ID for previewed compositions in case
+      the user wants to resend the preview somewhere.
+    # vm-fix-my-summary!!!: call vm-set-modflag-of on each message
+      whose summary we whack so that the summary cache is rewritten
+      when the folder is saved.
+    # vm-sort-messages: if this is not a thread sort and threading is
+      enabled, then disable threading and make sure the whole summary
+      is regenerated (to recalculate %I everywhere).
+    # vm-mime-display-internal-image-xxxx: set glyph baseline to 100%
+      to add scrolling in XEmacs 21.2.
+    # vm-generate-index-file-validity-check: set step value to 1 if
+      buffer size is smaller than 11 bytes.  Step used to be 0 in
+      this case which led to infloop.
+    # added base64-encode.c, base64-decode.c, qp-encode.c,
+      qp-decode.c to the distribution.
+    # fixed problem in qp-decode.c where lines contain a single
+      character followed by newline would have the first character
+      dropped.
+    # vm-display: allow a string as a buffer argument, convert it to
+      a buffer internally.
+    # vm-print-message: don't set the current buffer to be the shell
+      output buffer, as this makes vm-set-window-configuration bail
+      out early because it wants to be in a VM related buffer.
+    # vm-pipe-message-to-command: don't set the current buffer to be the
+      shell output buffer, as this makes vm-set-window-configuration
+      bail out early because it wants to be in a VM related buffer.
+    # vm-print-message: don't use vm-display to display the shell
+      output buffer, use display-buffer instead and only use it if
+      the output buffer is not empty.
+    # vm-pipe-message-to-command: don't use vm-display to display the
+      shell output buffer, use display-buffer instead and only use it
+      if the output buffer is not empty.
+    # vm-print-message: use the vm-print-message config instead of
+      the vm-pipe-message-to-command config.
+    # vm-display: don't immediately set current buffer to be the buffer
+      to be displayed.  This behavior made vm-set-window-configuration
+      bail out early.
+    # vm-discard-cached-data: call vm-garbage-collect-message before
+      flushing message caches.
+    # look for (fboundp 'w3-about) in addition to (fboundp 'w3-region)
+      to determine if text/html can be displayed internally.
+    # make after-save-hook local in VM folder buffers.
+    # vm-get-new-mail: make third arg to read-file-name nil, make
+      fourth arg t.
+    # vm-compose-mail: move to point-min before searching for the header
+      separator string.
+    # Removed bad quote in vm-delete-mime-object menu entry.
+    # vm-match-data: replaced with version that calls match-data to
+      figure out the number of valid \(..\) groups.  Emacs 20.4 is
+      randomly signaling args-out-of-range if the arg to
+      match-beginning exceed the number of internally allocated
+      registers in the regexp engine or some such nonsense.
+    # vm-frame-loop: in the last deletion check, also check the
+      delete-me frame with vm-created-this-frame-p before deleting
+      it.
+    # vm-check-index-file-validity: allow for a nil modified time,
+      which can occur if the folder is empty.
+    # generalized vm-keep-mail-buffer into vm-keep-some-buffers and
+      made the former call the latter.
+    # keep POP and IMAP trace buffers if there is trouble making a connection.
+    # complain to user if APOP authentication is asked for but isn't
+      supported.  Previously POP retrieval silently failed.
+    # vm-reorder-message-headers: For babyl folders, add a newline
+      before the EOOH line if header section does not end with two
+      newline.
+    # macroized most uses of coding system constants 'no-conversion
+      and 'binary, because 'no-conversion doesn't meant the same thing
+      in Emacs and XEmacs.
+    # vm: if buffer-file-coding-system is nil, set it to 'raw-text.
+      (FSF Emacs MULE only).
+    # removed duplicate (make-variable-buffer-local 'vm-pop-retrieved-messages)
+    # vm-parse-date: assume 2-digit year specifications < 70 are in
+      the 2000's rather than the 1900's.
+    # vm-mm-encoded-header: bind case-fold-search to t during
+      search for encoded words.
+  * Added new package for the included mime transport encoder/decoders.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed,  6 Sep 2000 12:08:15 -0500
+
+vm (6.75-9) unstable; urgency=low
+
+  * Added documentation and conflicts to reflact the fact that vm and
+    semi/wemi do not happily co-exist. closes: Bug#62048
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 15 Apr 2000 01:47:57 -0500
+
+vm (6.75-8) frozen unstable; urgency=low
+
+  * Use absolute links when related links would not work, for the
+    /usr/doc/latex2tml symlink.
+  * Added a dependency on fileutiles >=4.0, since the package would fail
+    to install with older fileutils.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 27 Mar 2000 12:29:26 -0600
+
+vm (6.75-7) frozen unstable; urgency=high
+
+  * A recent change to the postinst whacked the compilation phase. This
+    fixes what would be an important bug. closes: bug#59725
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon,  6 Mar 2000 16:03:02 -0600
+
+vm (6.75-6) frozen unstable; urgency=low
+
+  * Fixed an upgrade bug when /usr/doc happens to be a symlink, and does
+    not point to /usr/share/doc. A couple of people were bitten by this.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 28 Feb 2000 22:27:05 -0600
+
+vm (6.75-5) frozen unstable; urgency=low
+
+  * The postinst was vulnerable to being affected by symlinks (if, for
+    some reason, the prerm failed). This has happended for latex2html; and
+    created a grave bug.
+  * There was a bug in the postinst in a case statement, that caused
+    installation to fail for certain situations.
+  * Also fixed an lintian warning
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue,  8 Feb 2000 20:16:49 -0600
+
+vm (6.75-4) experimental; urgency=low
+
+  * his is the experimental version of VM with support for
+    emacs20. Please note that the author says that this may cause lossage
+    due to infelicitous behaviour en emacs20. The Debian developer uses
+    this version, but may merely have been lucky. Use this at your own
+    risk.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed,  1 Sep 1999 01:33:42 -0500
+
+vm (6.75-3) unstable; urgency=low
+
+  * Darnit. Forgot to change the changelog for the last upload. This one
+    is again meant for unstable.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed,  1 Sep 1999 01:21:00 -0500
+
+vm (6.75-2) unstable; urgency=low
+
+  * This is the experimental version of VM with support for
+    emacs20. Please note that the author says that this may cause lossage
+    due to infelicitous behaviour en emacs20. The Debian developer uses
+    this version, but may merely have been lucky. Use this at your own
+    risk.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 30 Aug 1999 22:30:28 -0500
+
+vm (6.75-1) unstable; urgency=low
+
+  * New upstream version. Still no support for emacs20.  Excerpted changes:
+    * New variables:
+          + vm-mail-send-hook
+    * vm-mime-parse-entity: when checking for a content type of just
+          "text" allow for the possibility that there was no content-type
+          header at all.
+    * use XEmacs built-in MD5 support.
+    * vm-pop-md5: use shell-file-name instead of "/bin/sh".
+    * formatting and typo fixes in the manual and docstrings
+      from will@fumblers.org.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 30 Aug 1999 22:04:38 -0500
+
+vm (6.74-2) experimental; urgency=low
+
+  * This is the experimental version of VM with support for
+    emacs20. Please note that the author says that this may cause lossage
+    due to infelicitous behaviour en emacs20. The Debian developer uses
+    this version, but may merely have been lucky. Use this at your own
+    risk.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue,  3 Aug 1999 12:17:40 -0500
+
+vm (6.74-1) unstable; urgency=low
+
+  * Starting with this version, vm shall not try and byte compile for
+    emacs20 emacsen. VM has only depended upon emacs19, but it would
+    compile on emacs20 as well. However, emacs 20.4 was released recently,
+    but Kyle still does not feel comfortable with it. Therefore, until the
+    upstream supports emacs20, vm shall not compile under it. Instead,
+    there shall be an experimental version of vm that shall depend on
+    emacs20 as well and support it, but the user uses that at their own
+    risk. I personally have been using vm on emacs20 with no mishap, but
+    that is just one data point.
+  * Excerpted changes:
+   * New variables:
+     + vm-mime-external-content-type-exceptions
+   * vm-mime-parse-entity: quietly treat "text" as a content type as
+     if it were "text/plain" and US-ASCII.
+   * vm-mime-discard-layout-contents: set m to be the layout's
+     message, not the end of the layout's body.
+   * New variables:
+     + vm-mime-decode-for-preview
+     + vm-mime-delete-viewer-processes
+   * vm-mime-display-external-generic: put MIME temp files on the message
+     garbage list instead of the folder's garbage list.
+   * vm-delete-mime-object: copied check for the top-level MIME
+     object from FSF Emacs code to XEmacs code since the former is
+     the correct check to use.
+   * vm-mime-discard-layout-contents: discard cached byte and line
+     counts of the edited message.
+   * vm-sort-compare-thread: in the case where root message IDs are
+     different, if the message dates are identical, use string-lessp on
+     the message IDs to break the tie.  This avoids having different
+     messages compare as equal, which makes the sort unstable.
+   * vm-mime-discard-layout-contents: recompute Content-Length
+     header if needed.
+   * vm-mime-can-display-internal: consider all text types except
+     text/html displayable if the character set is displayable.
+     For text/html continue to require W3.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue,  3 Aug 1999 12:01:43 -0500
+
+vm (6.72-1) unstable; urgency=low
+
+  * Excerpted changes:
+    * New commands:
+      + vm-delete-mime-object
+    * New variables
+      + vm-mime-delete-after-saving
+      + vm-mime-confirm-delete
+      + vm-mime-default-face-charset-exceptions
+      + vm-paragraph-fill-column
+      + vm-imap-session-preauth-hook
+    * removed old, bogus definition of vm-session-initialization from
+      vm.folder.el
+    * added w32 as another name for win32 as a window system type.
+      (FSF Emacs only).
+    * changed default value of vm-mime-default-face-charsets to
+      include iso-8859-1 if running on a tty under FSF Emacs/Mule.
+    * vm-mime-parse-entity: move binding of case-fold-search to a
+      point after the set-buffer call to avoid having the binding
+      overriden by a buffer-local value.
+    * vm-mime-convert-undisplayable-layout: wrap call to vm-mm-layout
+      message in a call to vm-mime-make-message-symbol; a symbol
+      needs to be in the struct slot, not the raw message.
+    * signal an error if mail-alias-file is set and the user is not
+      the superuser.
+    * broke the message ID creation code out of
+      vm-mail-mode-insert-message-id-maybe.
+    * vm-su-do-date: allow a RFC 822 regexp to match a timezone spec
+      that lacks the leading plus or minus.
+    * bind jka-compr-compression-info-list to nil in various place to
+      avoid unwanted compression or decompression of data.
+    * vm-mime-send-body-to-file: bind jka-compr-compression-info-list
+      to nil instead of func-binding jka-compr-get-compression-info.
+    * vm-sort-messages: call vm-build-thread-lists (new function)
+      which calls vm-th-thread-list on each message in the folder.
+      This generates keys that the thread sort needs before the sort
+      happens instead of during it.  Fixes thread sorting bugs.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 15 Jul 1999 15:57:47 -0500
+
+vm (6.71-2) unstable; urgency=low
+
+  * VM not creates multiple vm.info-? files. Remember to install all of
+    them. closes: Bug#38041
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 20 May 1999 11:15:38 -0500
+
+vm (6.71-1) unstable; urgency=low
+
+  * Excerpted changes:
+    * vm-mime-display-internal-text/plain: get message struct from
+      the MIME layout instead of from vm-message-pointer, since the
+      latter is utterly the wrong place to find it in this context.
+      Also, don't fill if no-highlighting is non-nil.
+    * vm-add-or-delete-message-labels: propagate label additions in
+      virtual folders to the global lists of the underlying real folders.
+    * bind format-alist to nil around calls to insert-file-contents
+      in MIME composition encoding functions.
+    * New variables:
+      + vm-fill-paragraphs-containing-long-lines
+    * vm-mime-display-internal-text/html: moved the code that rmeoves
+      read-only text properties into the vm-with-unibyte-buffer form.
+    * vm-make-presentation-copy: bind inhibit-read-only before tryign
+      to modify an existing presentation buffer.  This is to avoid
+      stumbling over read-only text properties.
+    * vm-mime-insert-button: use 'append' instead of 'nconc' to add a
+      keymap parent.  (FSF Emacs only)  This avoids modifying the
+      child keymap and creating a circular keymap structure in a
+      subsequent call.
+    * moved code that sets vm-xemacs-p, vm-fsfemacs-p, etc. to vm-version.el.
+      Moved other basic feature checking code to vm-version.el.
+    * Makefile: make sure vm-version gets loaded first, so the
+      version/feature checking code is run very early.  Some of it is
+      needed by other modules at load time.
+    * added keymap for MIME buttons so you can display, save, pipe,
+      print from a tty.
+    * vm-mime-xemacs-encode-composition: use insert-file-contents
+      instead of insert-file-contents-literally and see what breaks.
+      This will allow EFS to work.
+    * default value of vm-mime-default-face-charsets no longer contains
+      "iso-8859-1" under FSF Emacs/Mule.  8-bit character display as
+      octal codes in a unibyte buffer unless standard-display-europeans
+      or equivalent is called, and we don't call this function under
+      MULE.
+    * vm-compose-mail: this function is a VM entry point so call
+      vm-session-initialization.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 13 May 1999 14:47:30 -0500
+
+vm (6.68-1) unstable; urgency=low
+
+  * Added doc-base support.
+  * New upstream version. Please NOTE: Kyle has retracted support for emacs
+    20.3, saying that there is an bug in that version of emacs whence a
+    buffer string copy does not copy the contents of the buffer, causing
+    mail to be distorted. I have personally committed to using emacs20 v
+    20.3, and I have never experienced this bug. However, the chance does
+    exist (and has existed for all emacs20+vm combinations); use this on
+    emacs20 at your own risk. (I have changed VM so it does at least
+    compile on Emacs 20.3).
+  * Excerpted changes:
+      * put user specified Netscape switches before the -remote stuff
+        in the arg list to Netscape.
+      * vm-imap-retrieve-to-crashbox: use char-after instead of
+        char-before since Emacs 19.34 doesn't have char-before.
+      * use vm-coding-system-name instead of coding-system-name.  fset
+        vm-coding-system-name to coding-system-name if it exists,
+        otherwise use symbol-name.  FSF Emacs doesn't have a
+        coding system object, so the name is the same as the coding
+        system symbol's name.
+      * vm-determine-proper-charset: wrap the guts of the function in a
+        vm-with-multibyte-buffer form to ensure we're looking at
+        characters instead of the raw encoding data when scanning for
+        the character sets that are present.
+      * vm-decode-mime-layout: support the old 'name' parameter when
+        supporting vm-infer-mime-types.
+      * vm-do-reply: don't match vm-subject-ignored-prefix against the
+        subject to determine if we prepend vm-reply-subject-prefix to
+        the subject or not.  This reverts a change made in VM 6.47.
+      * vm-mm-layout: call vm-mime-parse-entity-safe instead of
+        vm-mime-parse-entity so that we get always get a layout back.
+        This avoids a MIME part completely disappearing if we can't
+        parse it.
+      * vm-mime-parse-entity-safe: use type "error/error" for the
+        layout returned if the MIME part can't be parsed.
+      * vm-mime-qp-encode-region: hex encode _ and ? for Q encoding as
+        required by RFC 2047.
+      * vm-mime-send-body-to-file: Func-bind jka-compr-get-compression-info
+        to 'ignore' to avoid double compression of saved MIME bodies that
+        are already compressed.
+      * vm-imap-make-session: quote (using IMAP quoting rules) login
+        name and password that are sent as part of the LOGIN command.
+      * vm-mime-parse-entity-safe: pass message and passing-message-only
+        flag to vm-mime-parse-entity.
+      * vm-mime-parse-entity: wrong number of fields in the last layout
+        structure fixed.
+      * make MIME transfer encoding/decoding work buffers unibyte to
+        avoid corruption when characters are copied from them.  (FSF
+        Emacs only).
+      * vm-mime-attach-message: store the message to attach in an
+        unibyte buffer instead of a multibyte buffer.
+      * vm-mime-fsfemacs-encode-composition: encode text regions using
+        coding system selected from vm-mime-mule-coding-to-charset-alist
+        instead of relying on buffer-file-coding-system to be set properly.
+      * vm-mime-fsfemacs-encode-composition: when handling the attachment
+        of a composite object, add MIME header section (if not already
+        provided) before parsing and transfer encoding the object.
+        vm-mime-xemacs-encode-composition similarly modified.
+      * New variables:
+        + vm-mime-qp-decoder-program
+        + vm-mime-qp-decoder-switches
+        + vm-mime-qp-encoder-program
+        + vm-mime-qp-encoder-switches
+      * set-file-coding-system -> set-buffer-file-coding-system.
+      * vm-edit-message: force edit buffer to be unibyte (FSF Emacs
+        only).
+      * vm: force folder buffer to be unibyte (FSF Emacs only).
+      * wrap parts of various MIME decoding and display functions in
+        vm-with-unibyte-buffer so we can work with unwashed 8-bit data
+        directly. (FSF Emacs only).
+      * force some buffers we create to be unibyte buffers to avoid
+        conflabulation of 8-bit data. (FSF Emacs only).
+      * vm-find-trailing-message-separator: point still not moving backward
+        all the times that it should be, so go back to ignoring the return
+        value of vm-find-leading-message-separator and always moving backward.
+      * vm-mail-mode-insert-message-id-maybe: use the hostname variable
+        we so carefullly initialized, instead of just using
+        (system-name).
+      * vm-mime-base64-encode-region: if B encoding, strip newlines from
+        the work buffer instead of the buffer region we're converting.
+      * vm-mime-base64-encode-region: don't emit status message unless
+        the region we're encoding is larger than 200 chars.
+      * vm-mime-parse-entity: new fourth argument that tells the
+        function whether to use the message argument for positional
+        information or to just use it to struct in the message slot of
+        the MIME layout struct.  Same for vm-mime-parse-entity-safe.
+        Use this new argument appropriately in various places so the
+        message slot gets filled in more places.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 27 Feb 1999 23:38:16 -0600
+
+vm (6.65-2) unstable; urgency=low
+
+  * vm-search.el had gone missing, for some reason. fixes: BUG#32658
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 31 Jan 1999 16:21:57 -0600
+
+vm (6.65-1) unstable; urgency=low
+
+  * New upstream version. This is trhe forst version ratified for emacs20.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 29 Jan 1999 11:35:18 -0600
+
+vm (6.64-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+     * vm-mail-mode-insert-message-id-maybe: (stringp
+       'mail-host-address) -> (stringp mail-host-address).
+     * vm-imap-retrieve-to-crashbox: for From_-with-Content-Length and
+       BellFrom_ folder, add a newline to the end of a message if the
+       message lacks one.
+     * vm-mime-display-internal-text/html: third arg to
+       remove-text-properties changed to be a plist as the function
+       requires.
+     * new edition of the user manual.
+     * updated README, new installation instructions for manual,
+       mention Web site
+     * vm-search18.el gone, vm-search19.el became vm-search.el.
+     * vm-pop-make-session: switched to the trace buffer earlier in
+       the function so that MULE coding system is set in correct
+       buffer.  Add connection status messages to trace buffer.
+     * vm-imap-make-session: switched to the trace buffer earlier in
+       the function so that MULE coding system is set in correct
+       buffer.  Added connection status messages to trace buffer.
+     * vm-submit-bug-report: use 'vm-mail instead of 'mail for sending
+       bug reports.  Less confusing, and will work most of the time.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 26 Jan 1999 18:33:33 -0600
+
+vm (6.63-2) unstable; urgency=low
+
+  * Uncomment call to update menu on postrm.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat,  9 Jan 1999 12:25:05 -0600
+
+vm (6.63-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+     * set selective-display to nil in various places in the code
+       where write-region and call-process-region (which calls
+       write-region) are called to avoid the CR -> LF translation.
+     * vm-load-window-configurations: added bind of
+       coding-system-for-read.
+     * vm-store-window-configurations: removed binding of
+       coding-system-for-read, moved coding-system-for-write binding
+       to be ambient only during the write-region call.
+     * removed all but one of the bindings of inhibit-read-only in the
+       MIME code.
+     * vm-mime-display-internal-text/html: Added a remove-text-properties
+       call to remove read-only text properties.
+     * vm-mime-attach-object: Don't allow attachment of object to a
+       composition buffer that has already been encoded.
+     * retain IMAP session trace buffer if a protocol error occurs.
+     * removed vm-iamp-store-failed error definition since it was
+       unused.
+     * 'w' summary format specifier now gives full weekday name.
+     * vm-mail-mode-insert-message-id-maybe: ensure RFC 822 compliant
+       month and day name by indexing the names from an alist instead
+       of relying on format-time-string.  format-time-string's output
+       can't be trusted for this because of the dubious `locale' stuff
+       in the C library.
+     * for non-Content-Length based From_ types, don't require a year
+       >= A.D. 1000 at the end of the From line--- instead only require a
+       single digit.  This change to deal with some evil mailer that
+       puts a numeric timezone at the end of the line.
+     * vm-make-presentation-buffer: remove buffer local foreground and
+       background colors set in the default face in the presentation
+       buffer.
+     * dropped the Videodrome joke from vm-submit-bug-report.
+     * vm-mime-fsfemacs-encode-composition: bind
+       file-name-buffer-file-type-alist so that a bit-for-bit binary
+       file read is assured.  This matters only to NTEmacs.
+     * vm-mouse-send-url-to-netscape: Netscape 4.05 apparently doesn't
+       like the space after the comma in openURL(..., new-window) and
+       doesn't create a new window.  So the space has been removed.
+     * read per-folder IMAP retrieved list at startup... forgot to add
+       code to do this.
+     * accept lower-case hex digits in quoted-printable encoding.
+     * vm-mime-composite-type-p: assume message/rfc822 and
+       message/news are the only composite "message" types.  New ones
+       will have to be manually added.
+     * vm-misc.el: moved macros to vm-macro.el.
+     * Makefile: Preload vm-macro.el instead of vm-misc.el.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat,  9 Jan 1999 06:19:51 -0600
+
+vm (6.62-4) frozen unstable; urgency=low
+
+  * Fixed a problem with the remove/purge process in which the byte
+    compiled files would be left behind. Since VM is in a bug fix mode, no
+    new code has been introduced; and this bug fix should be justification
+    to include in frozen.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 25 Nov 1998 11:32:03 -0600
+
+vm (6.62-3) unstable; urgency=low
+
+  * Try and make the installation quieter.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue,  3 Nov 1998 23:43:01 -0600
+
+vm (6.62-2) unstable; urgency=low
+
+  * Enhanced mail-mode-smart-tab to use bbdb-complete-name in the headers
+    if and only if bbdb is already loaded into emacs. In the body, tab
+    still is tab-to-tab-stop. This enhancement comes at the request of
+    Dirk Eddelbuettel <edd@debian.org>.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 17 Sep 1998 22:45:22 -0500
+
+vm (6.62-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+    * vm-mouse-send-url-to-netscape: Change commas to %2C to avoid
+      confusing Netscape -remote.
+    * vm-mime-display-external-generic: when searching for %f, ignore
+      %%f.
+    * vm-decode-mime-layoout: drop rule that causes unmatched text/*
+      and message/* MIME objects to be displayed as text plain.
+    * vm-mime-can-display-internal: don't load W3 just to see if
+      w3-region gets bound.  If the user wants to view inline HTML,
+      they'll have to either load W3 explicitly or set up an autoload
+      for w3-region.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 10 Sep 1998 09:42:40 -0500
+
+vm (6.61-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+    * vm-find-trailing-message-separator: point wasn't being moved
+      backward when it should be.  Change check to use the return
+      value of vm-find-leading-message-separator.
+    * vm-build-message-list: add the starting position of the garbage
+      to the garbage warning.
+    * don't use gray75 to initialize gui-button-face under Windows
+      (FSF Emacs only).  Use only primary colors instead.
+    * vm-find-trailing-message-separator: for From_ folders, don't
+      move point backward one char after finding the leading separator
+      unless that char is a newline.
+    * vm-skip-past-trailing-message-separator: for From_ folders
+      don't move point forward one character unless we're not at end
+      of buffer.
+    * vm-submit-bug-report: require vm-vars and vm-version modules.
+    * vm-visit-folder-other-frame: call vm-session-initialization
+      even if the command is not called interactively.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 30 Aug 1998 13:14:22 -0500
+
+vm (6.59-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+    * New variables:
+      + vm-default-From_-folder-type
+    * new folder type: BellFrom_.
+    * vm-mime-display-internal-multipart/alternative: call
+      vm-mime-should-display-internal with two arguments, as
+      required, instead of one.
+    * vm-munge-message-separators: if folder type arg is From_, use
+      BellFrom_ as type to produce folders that are less likely to be
+      misparsed by other mailers.
+    * quoted vm variables in docstrings in vm-vars.el with ` and '
+      for hyper-apropos.  Change previous other uses of `foo' to
+      ``foo''.
+    * fixed typo in vm-mime-fsfemacs-encode-composition; e -> o.
+    * added a defvar for timer-list in vm-folder.el.
+    * added defvars for standard-display-table,
+      buffer-display-table and buffer-file-type in vm-mime.el.
+    * added a defvar for mail-personal-alias-file in vm-reply.el.
+    * added defvars for lpr-command and lpr-switches.
+    * rewrote text/html inline display functoin to not need a temp
+      buffer, save-excursion, and save-restriction.  Needed because
+      w3-region puts markers into the buffer that can't be copied
+      out.
+    * don't auto-create text body attachments that contain all
+      whitespace if the attachment will be at the beginning or end
+      of the composition.
+    * vm-imap-retrieve-to-crashbox: munge folder message separators
+      so the retrieved messages will be parsed correctly in the
+      target folder.
+    * vm-do-reply: don't use contents of In-Reply-To in generated
+      References header unless no References header is present.
+    * if vm-mime-alternative-select-method is best-internal, consider
+      a MIME object only if the user wants it displayed internally,
+      not just if it can be displayed internally.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 25 Jul 1998 15:42:27 -0500
+
+vm (6.56-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+    * vm-get-spooled-mail: set the non-file maildrop flag on each pass
+      though the loop.
+    * vm-get-spool-mail: restore expand-file-name call on the
+      maildrop so that tildes get expanded.
+    * store/use the same password for IMAP mailboxes on the same host.
+    * removed greeting block on Cyrus server.
+    * Shapiro typo fixes.
+    * vm-mail-mode-insert-message-id-maybe: check mail-host-address
+      with stringp instead of boundp before using its value.
+    * vm-rfc1153-or-rfc934-burst-message: do digest separator unstuffing
+      on a per message basis and before message separator munging, so
+      that message separators exposed by the unstuffing get munged.
+    * registered vm-imap-protocol-error as a known error/exception.  Use it.
+    * vm-check-for-spooled-mail: check spool filename against the IMAP
+      template before chaecking against the POP template, since the
+      POP template will match both.
+    * vm-imap-check-mail: bail early if message count in mailbox is zero.
+    * first crack at IMAP support.
+    * New commands:
+      + vm-expunge-imap-messages
+    * New varisbles:
+      + vm-recognize-imap-maildrops
+      + vm-imap-auto-expunge-alist
+      + vm-imap-bytes-per-session
+      + vm-imap-expunge-after-retrieving
+      + vm-imap-max-message-size
+      + vm-imap-messages-per-session
+    * use vm-check-for-killed-folder before calling
+      vm-select-folder-buffer in a few functions that don't necessarily
+      need to select the folder buffer in order to run.
+    * vm-goto-message bound to M-g.
+    * vm-find-leading-message-separator: for From_ type folders
+      require that end of the leading separator line match
+      " [1-9][0-9][0-9][0-9]".  Revisit in eight thousand years.
+    * rename vm-sprintf to vm-summary-sprintf.  Use alists to store
+      compiled formats instead of using symbol property lists.
+    * vm-mime-xemacs-encode-composition: discard all but Content-ID
+      header in already MIME'd objects to avoid header duplication.
+      Same for vm-mime-fsfemacs-encode-composition.
+    * vm-mime-display-internal-text/html: If error signaled, catch
+      it, store the error message and return nil.
+    * more descriptive buffer name for header buffer used when asking
+      about POP retrievals.
+    * vm-mail-mode-insert-message-id-maybe: try harder to find a
+      hostname that has dots in it for the Message-ID header.
+    * made vm-pop-retrieved-messages a buffer-local variable, as the
+      table isn't meant to be shared among folders.
+    * vm-expunge-pop-messages: use password-less maildrop specs when
+      doing comparisons in skip code.  Changed catch tag from 'skip
+      to 'replay to more accurately reflect what's happening.
+    * vm-pop-end-session: delete the trace buffer.
+    * vm-pop-make-session: generate a new buffer for each session
+      instead of reusing the same one.
+    * vm-expunge-pop-messages: set buffer-read-only to nil in
+      trouble-alert buffer before trying to modify erase it.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 15 Jul 1998 09:16:04 -0500
+
+vm (6.53-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+    * vm-mf-default-action: needed car of vm-mm-layout-type to
+      extract type string.
+    * vm-mime-display-button-xxxx: don't display button unless
+      there's a defined method for displaying the object.
+    * New variables:
+      + vm-auto-displayed-mime-content-type-exceptions
+      + vm-mime-internal-content-type-exceptions
+    * vm-find-leading-message-separator: for From_ type folders,
+      reinstate requirement that there be two newlines before "From "
+      message separators.
+    * renamed vm-mime-should-display-external to vm-mime-can-display-internal.
+    * added big5 to vm-mime-mule-charset-to-coding-alist
+    * default value of vm-send-using-mime to always be t instead of
+      looking to see if the TM mime-setup feature is present.
+    * added a newline to the 'end' line of a uuencoded attachmentsif
+      there isn't one already; this to cope with the usual crocked PC
+      mail readers (may they reek).
+    * vm-mime-text-description: further identify a text part if it
+      has a standard signature in it.
+    * remove TM hooks from mail mode buffers if vm-send-using-mime is
+      non-nil.
+    * vm-mime-send-body-to-file: if user enters a directory name, use
+      it unconditionally.
+    * panic buffoon's color changed from rgb:00/df/ff to rgb:ff/7f/ff.
+    * use user-mail-address function in Bcc header (XEmacs only).
+    * use user-mail-address variable, if bound in, Bcc headers.
+    * replaced definition of vm-load-init-file in vm-startup.el with
+      the one from vm-folder.el.
+    * use vm-mime-default-action-string-alist only if VM knows how to
+      display the MIME object.  Fiddle with the strings in the list.
+    * support foregroundToolBarColor symbol in the 'small' set of
+      toolbar pixmaps (XEmacs only).
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 29 Jun 1998 18:10:12 -0500
+
+vm (6.51-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+    * don't call make-face if no face support is compiled into Emacs
+      (FSF Emacs only).
+    * enable inline display of text/html again.
+    * vm-mime-text-type-p: anchor string matches and add a trailing /
+      to assure matching only the correct types.
+    * more fiddling with newlines around the Content-Description
+      header, hopefully getting it right this time.
+    * correct "Display as Text" MIME menu item.
+    * vm-mime-charset-internally-displayable-p: check
+      vm-mime-mule-charset-to-coding-alist if vm-fsfemacs-mule-p is
+      non-nil.
+    * vm-rename-current-mail-buffer: changed to recognize new default
+      composition buffer name introduced in 6.49.
+    * vm-mime-display-external-generic: append filename when supporting
+      COMMAND-LINE form.  Copy program-list since we may need to modify
+      it.
+    * vm-discard-cached-data: set mime layout and mime encoded header
+      slots to nil in virtual messages.
+    * vm-session-initialization: initialize gui-button-face if not
+      already initialized (FSF Emacs only).
+    * vm-pop-move-mail: check vm-pop-auto-expunge-alist properly;
+      defaulting did not work as you would expect.
+    * enable image and multiple font support for Windows (XEmacs only).
+    * provide Content-Description headers for text surrounding
+      MIME attachments in compositions.
+    * vm-forward-message: provide Content-Description header for a
+      MIME forwarded message.
+    * use same filename extension as that of the suggested attachment
+      filename when creating a tempfile for use by an external MIME
+      viewer.
+    * New variables:
+      + vm-infer-mime-types
+    * vm-pop-check-mail: return nil if UIDL returns an empty list.
+    * vm-mail-internal: default composition buffer name to "mail to ?"
+      instead of "*VM-mail*".
+    * added '$' to regexps in default value of
+      vm-mime-attachment-auto-type-alist.
+    * new semantics for vm-mime-external-content-types-alist: %-spec
+      expansion, shell command line syntax allowed.
+    * default value of vm-auto-decode-mime-messages changed from nil
+      to t.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 25 Jun 1998 11:45:44 -0500
+
+vm (6.48-1) unstable; urgency=low
+
+  * New upstream version. Excerpted changes:
+     * New variables:
+       + vm-spooled-mail-waiting-hook
+       + vm-mime-uuencode-decoder-program
+       + vm-mime-uuencode-decoder-switches
+     * vm-delete-index-file: don't try to delete the file if
+       vm-index-file-suffix is not a string.
+     * show completions if completion-auto-help is non-nil.  Needed to
+       replace car with caar in one place in vm-minibuffer-complete-word.
+     * vm-startup-with-summary: handle 0 case specially so that a
+       negative number is not passed to nth.
+     * make vm-mime-preview-composition an alias for
+       vm-preview-composition, fixing the typo that aliased
+       vm-preview-mime-composition instead.
+     * vm-auto-archive-messages: don't archive messages to the same
+       folder that the user is visiting.
+     * vm-mime-fsfemacs-encode-composition: encode last MIME part from
+       point to point-max instead of point-min to point-max.  (FSF
+       Emacs/MULE only.)
+     * fixed regexp syntax for backslashes in [..] contexts.  Need
+       four backslahses for every one to appear in the regexp.
+     * vm-discard-cached-data: set the mime-encoded-header-flag to nil.
+     * vm-mime-burst-message: reverse varref and funcall in `or' expression
+       to avoid skipping the rest of the vm-mime-burst-layout calls after
+       the first successful one.
+     * vm-check-pop-mail: use UIDL data to determine if messages in the
+       popdrop have been retrieved.
+     * vm-get-spooled-mail: always set vm-spooled-mail-waiting to nil
+       after doing a sweep through the spool files, whether mailw as
+       retrieved or not.  Not really correct but it is what the user
+       expects.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon,  1 Jun 1998 13:39:24 -0500
+
+vm (6.47-2) frozen unstable; urgency=low
+
+  * Fix a typo in the rules that was preventing th eexamples dir from
+    getting exported. closes: Bug#22407
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 13 May 1998 12:49:18 -0500
+
+vm (6.47-1) frozen unstable; urgency=low
+
+  * New upstream BUG FIX version
+  * Excerpted changes are:
+     * vm-write-string: bind buffer-read-only to  nil before
+       attempting to modify the buffer.
+     * vm-auto-select-folder: Do the eval if the cdr of the alist pair
+       is anything other than a string, instead of it it is anything
+       other than an atom.
+     * vm-do-reply: match vm-subject-ignored-prefix against the subject
+       and don't prepend vm-reply-subject-prefix if there is a prefix
+       match.
+     * vm-buffer-to-label: map presentation buffers to the 'message
+       label.
+     * vm-scroll-forward: raise and select frame before setting window
+       configuration.
+     * vm-frame-totally-visible-p: Consider frame totally visible if
+       return value of frame-visible-p is not eequal to nil or 'hidden.
+     * dropped `sender' synonym virtual selectors.
+     * If prefix arg is given to vm-visit-virtual-folder-* commands, say
+       "read only" in the prompt string.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon,  4 May 1998 10:04:15 -0500
+
+vm (6.46-4) frozen unstable; urgency=low
+
+  * Added a recommendation for make; and scream loudly if make is not found.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 20 Apr 1998 03:36:12 -0500
+
+vm (6.46-3) unstable; urgency=low
+
+  * Fixed broken path in vm-init.el
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 16 Apr 1998 01:03:35 -0500
+
+vm (6.46-2) frozen unstable; urgency=low
+
+  * Bug fixes in packaging the new emacsen way.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 14 Apr 1998 00:22:25 -0500
+
+vm (6.46-1) frozen unstable; urgency=low
+
+  * Now an emacs19 dependent package in the new style
+  * upstream bug fix release
+  * Call emacsen install in postinst, and emacsen remove in postrm
+  * Fixed bad magic numbe in file. closes: Bug#20947
+  * Fixed example files. closes: Bug#20946
+  * Verified that vm does not unzip files on its own. closes: Bug#20948
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 13 Apr 1998 01:59:43 -0500
+
+vm (6.42-1) unstable; urgency=low
+
+  * New upstream version
+     * New variables:
+       + vm-pop-expunge-after-retrieving
+       + vm-pop-auto-expunge-alist
+       + vm-mime-button-format-alist
+     * vm-save-message: don't set vm-last-save-folder if it is non-nil
+       and the user selected folder matches what vm-auto-folder-alist
+       would have chosen.  Tried to do this in 6.41, but broke the
+       setting of vm-last-save-folder instead.
+     * vm-expunge-pop-messages: typo prngn -> progn.
+     * vm-expunge-pop-messages: check whether vm-make-pop-session
+       returns nil.
+     * vm-read-attributes: allow header without a label list.  The
+       label part of the data in the header was added later and may
+       not be in the header of some older folders.
+     * dropped use of vm-with-virtual-selector-variables in favor of
+       using an alist.
+     * only use char-to-int if defined, use identity funciton
+       otherwise.
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 16 Feb 1998 17:47:07 -0600
+
+vm (6.41-1) unstable; urgency=low
+
+  * Modified the copyright statement to include addresses.
+  * Fixed silly typo in version string
+  * New upstream version
+     * New variables:
+       + vm-index-file-suffix
+     * New commands:
+       + vm-expunge-pop-messages
+     * don't issue DELE commands on POP messages when retrieving.  Remember
+       what messages have been retrieved and avoid retrieving them later.
+     * vm-save-message: don't set vm-last-save-folder if it is non-nil and
+       the user selected folder matches what vm-auto-folder-alist would have
+       chosen.
+     * vm-show-list: sort list before displaying it.
+     * vm-show-list: display list ordered top to bottom then left to
+       right, instead of left to right and then top to bottom.
+     * bind print-length to nil in some places to avoid truncation of
+       Lisp Objects in folder headers.
+  * Added notes all over warning about tm-vm breaking vm, since tm-vm was
+    written for vm-5.X. It is still possible to use tm for mail
+    composition. closes: Bug#16862
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 13 Feb 1998 12:55:31 -0600
+
+vm (6.40.1) unstable; urgency=low
+
+  * Upgraded to standards version 2.4.0.0
+  * Updated FSF address.
+  * This fixes all Lintian bugs.
+  * New upstream version. Excerpted changes:
+       * New variables:
+         + vm-mime-7bit-composition-charset
+       * don't grey-out "Decode MIME" toolbar button after a message is
+         first decoded.  Let user use the button to rotate through
+         decoding states like the 'D' key does.  This applies only to
+         the separate MIME button, not the one that appears as part of
+         the `helper' button.
+       * vm-mark-or-unmark-messages-with-selector: removed extra count
+         argument from `message' call.
+       * vm-build-virtual-message-list: if dont-finalize is set, don't
+         set up the location vector or to obarray used to suppress
+         duplicate messages.  In particular the latter causing empty
+         message lists to be returned since all the messages were
+         considered duplicates.
+       * support foregroundToolBarColor symbol in toolbar pixmaps
+         (XEmacs only).
+       * vm-rfc1153-or-rfc934-burst-message: Use current buffer as
+         folder buffer, instead of the buffer of specified message.
+       * vm-get-new-mail: signal error if we fail to find a folder
+         buffer through the normal means.
+       * sleep for 2 seconds instead of 1 second after "consider M-x
+         revert-buffer" message and after a quit is signaled and caught
+         in vm-get-spooled-mail.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon,  9 Feb 1998 16:03:40 -0600
+
+vm (6.39-1) unstable; urgency=low
+
+  * New upstream version, with lots of changes
+    VM 6.39 released (20 January 1998)
+    * New commands:
+      + vm-burst-digest-to-temp-folder
+      + vm-add-existing-message-labels
+    * vm-vs-header-or-text: vm-header-of -> vm-headers-of.
+    * fixed reversed fset definition of vm-vs-sender.
+    * don't grey-out "Decode MIME" menu entry after a message is
+      first decoded.  Let user use menu entry to rotate through
+      decoding states like the 'D' key does.
+    * vm-check-emacs-version: Disallow running under Emacs 20.
+    * vm-mime-display-internal-multipart/digest: genereate summary if
+      vm-startup-with-summary says so.  Did the same for
+      vm-mime-display-internal-message/partial and
+      vm-mime-display-internal-message/rfc822.
+    * default vm-temp-directory to (getenv "TMPDIR") if result is
+      non-nil.
+    * vm-undo: signal an error if the current folder is read-only.
+    * vm-minibuffer-complete-word: set start of word to beginning of
+      buffers if not doing a multi-word read.
+    * vm-minibuffer-complete-word: if doing multi-word completion and
+      the word before point exactly matches something in the completion
+      list and the word also prefixes something else in the completion
+      list and last-command eq vm-minibuffer-complete-word, insert
+      a space, thereby letting the user complete the word.
+    * vm-mime-display-internal-text/enriched: Don't assume (car
+      errdata) is a string; it usually isn't.  Format error data
+      properly.
+    * vm-print-message: write out the tempfile for the non-MIME lobe
+      of the conditional in the code, since it is needed there also.
+    * vm-read-virtual-selector: raise the selected frame before
+      reading from the minibuffer, so the user is less likely to type
+      into the wrong minibuffer window and hose themselves.
+    * vm-mime-fsfemacs-encode-composition: set coding-system-for-read
+      when inserting a file-based attachment to avoid MULE munging.
+      Protect value of buffer-file-coding-system from possible
+      changes by insert-file-contents.
+    VM 6.38 released (15 January 1998)
+    * add vm-virtual-selector-clause property to new selectors.
+    * vm-read-virtual-selector: removed hard coded list of selectors
+      that take an arument.  Instead, read arg only for selectors that
+      have a vm-virtual-selector-arg-type property.
+    * fixed virtual folder numbering/infloop problem introduced in
+      6.37.
+    * vm-mark-or-unmark-messages-with-virtual-folder: Mark virtual
+      messages instead of the underlying real messages when current
+      folder is a virtual folder.
+    VM 6.37 released (29 December 1997)
+    * Folders menu code: create directories by default in vm-folder-directory.
+    * added name parameter to vm-create-virtual-folder for use by
+      vm-create-virtual-folder-same-author and
+      vm-create-virtual-folder-same-subject to avoid regexp-quote
+      goop in the modeline.
+    * make sure the -should-delete-frame variables in vm-mouse.el are
+      initialized before use.
+    * vm-apply-virtual-folder bound to V X.
+    * added virtual folder selectors for all the attributes that
+      vm-set-message-attributes accepts.  Added un- selectors so that
+      simple negations can be used with V C.  Added header-or-text
+      selector.  Added aliases for some selector names.
+    * New commands:
+      + vm-toggle-all-marks (bound to M V).
+      + vm-mark-matching-messages-with-virtual-folder (bound to M X).
+      + vm-unmark-matching-messages-with-virtual-folder (bound to M x).
+    * vm-update-summary-and-mode-line: copy value of default-directory
+      from folder buffer to the summary and presentation buffers.
+    * report null results in mark commands as "No message marked"
+      instead of "0 messages marked".
+    VM 6.36 released (19 December 1997)
+    * vm-yank-message: commented out text/html code.
+    * added toolbar initialization status message (XEmacs only).
+    * allow integers in the vm-use-toolbar toolbar specification,
+      which represent blank space in the toolbar. (XEmacs only).
+    * allow for the possibility that lpr-command and lpr-switches
+      are unbound.
+    * restore binding of C-? ; binding the delete keysym doesn't
+      affect the delete key on a dumb terminal when running FSF
+      Emacs.
+    * changed semantics of vm-temp-file-directory.  Its value now
+      must end with the directory separator character used by the
+      local operating system.
+    * vm-mime-display-internal-text/enriched: catch errors in
+      enriched-decode and store it in the MIME layout struct for
+      future display.
+    * New commands:
+       + vm-create-virtual-folder-same-subject (bound to V S)
+       + vm-create-virtual-folder-same-author (bound to V A)
+    * vm-write-file: If write-file renames the folder buffer, rename
+      the summary buffer and presentation buffer to match.
+    * vm-mime-can-display-internal: don't assume enriched.el is
+      shipped with Emacs.  Assume text/enriched is internally
+      displayable only if enriched-mode is fbound.
+    * vm-mime-fragment-composition: supply the "total" parameter in
+      all message/partial parts instead of just the last one.
+    * only delete the frame used for completion if VM created it.
+    * vm-fsfemacs-p: Don't insist on v19.
+    VM 6.35 released (24 November 1997)
+    * typo fixes
+    * Gregory Neil Shapiro's Emacs 20 MULE patches, which inserted
+      bindings for coding-system-for-read/write in various places.
+    * renamed vm-fsfemacs-19-p to vm-fsfemacs-p.
+    * Bound (control /) to vm-undo, bound backspace and delete
+      keysyms to vm-scroll-backward, dropped binding of "\C-?".
+    * added ;;;###autoload cookies to all VM entry points.
+    * vm-session-initialization: require 'vm first to make sure the basic
+      things are loaded before we try to do anything.
+    * dropped inline support for text/html.  Too much pain right now.
+      Revisit later.
+    * recognize po:user type spool file and peaceably hand it off to
+      movemail.
+    * vm-mode-internal: install new fucntion vm-unblock-new-mail on
+      after-save-hook to allow retrieval of mail after a save of an
+      M-x recover-file'd folder.
+    * vm-pop-make-session: first argument to buffer-disable-undo is
+      required under XEmacs 19.14, so provide it.
+    * Use locate-data-directory if it exists when setting
+      vm-image-directory.
+    * vm-mail-internal: insert an extra newline before the inserted signature
+      so the user doesn't have to type one.  (I give.)
+    * vm-mime-transfer-encode-layout: don't add a
+      Content-Transfer-Encoding header unless the encoding type of
+      the layout differs from what we require it to be.
+    * vm-mime-transfer-encode-region: downcase the return value so
+      string comparisons don't have to worry about case.  QP encode
+      if armor-dot is set.
+    * vm-print-message: use a tempfile under Windows 95 or NT.
+      Apparently the losing print utils there don't understand stdin or
+      can't read from it.
+    * vm-mime-text-type-p renamed to vm-mime-text-type-layout-p.
+      The new version of vm-mime-text-type-p checks the type without a
+      layout wrapped around it.
+    * vm-mime-xemacs-encode-composition: For MULE, use binary coding
+      system when inserting an attached file if the type of the
+      attachment is not a textual MIME type.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 22 Jan 1998 16:43:30 -0600
+
+vm (6.34-2) unstable; urgency=low
+
+  * Make sure the copyright file is not compressed.
+    closes:Bug#14453,Bug#14468
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed,  5 Nov 1997 12:05:35 -0600
+
+vm (6.34-1) unstable; urgency=low
+
+  * New upstream version. Bug fixes. Changes:
+       * vm: use other frame if folder is visible there.
+       * vm-auto-archive-messages: don't silently block archival
+         attempts to /dev/null; Emacs no longer complains about
+         writes to /dev/null.
+       * vm-toolbar-initialize: add line for 'getmail' button support
+         that got omitted somehow.
+       * vm-multiple-fonts-possible-p: added win32 as a window system
+         that supports multiple fonts.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 16 Sep 1997 19:16:23 -0500
+
+vm (6.33-2) unstable; urgency=low
+
+  * Mentioned the /usr/doc/vm-vars.el.gz file, since the documentation is
+    quite outdated. This fixes BUG#11998.
+  * Got rid of the tar and uuencode directories since now dpkg-source can
+    handle things correctly.
+  * Have been using pristine sources, thought this should go on record.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 10 Aug 1997 18:28:08 -0500
+
+vm (6.33-1) unstable; urgency=low
+
+  * Chaned post installation script not to redirect input to a scratch
+    file in /tmp (we use /tmp/emacs/file.new.$$ instead. This fixes
+    BUG#11787.
+  * New upstream bug fixing release. Excerpted changes:
+    * vm-undisplay-buffer: don't delete frames unless both
+      vm-mutable-windows and pop-up-frames are not non-nil.  Loop
+      over the remaining windows that display the target buffer and
+      make those windows display some other buffer.
+    * vm-mime-set-extent-glyph-for-type: use a list of instantiators,
+      use 'xpm instead of 'autodetect and fallback to [nothing] if
+      instantiation fails.
+    * vm-display-face: use the [nothing] instantiator on ttys.  XEmcas
+      only.
+    * vm-toolbar-install-toolbar: change toolbar size specifier on
+      frame even if VM did not create the frame.  This reverses the
+      change made in 6.32.
+    * vm-isearch: call vm-energize-urls to light up the URLs after a
+      search completes.
+    * vm-set-window-configuration: return the window configuration we
+      set.  A change in 6.32 caused this not to be done.  This confused
+      vm-display which relied on the return value to determine whether
+      vm-display-buffer needed to be called.
+    * don't recognize <URL:...> as an URL if it contains a newline.
+    * vm-scroll-backwrd: make argument optional.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri,  1 Aug 1997 16:12:14 -0500
+
+vm (6.32-1) unstable; urgency=low
+
+  * This is the first version built with cvs-buildpackage.
+  * Removed examples subdirectory from the debian directory, instead, the
+    directory is now tarred, gzipped, and uuencoded, and it is imploded
+    and exploded on the fly.
+  * New upstream bug fixing release. Excerpted changes:
+    * vm-toolbar-install-toolbar: don't change toolbar size specifier
+      on frame unless VM created the frame.
+    * vm-mail-send: move attribute change before possible deletion of
+      the buffer due to vm-keep-sent-messages == nil.
+    * remove references to vm-record-current-window-configuration
+      since it is not being used and will never be used.
+    * vm-mouse-read-file-name-event-handler: don't delete the completion
+      frame before reading keyboard input.  This should avoid making
+      the user hunt for the frame that contains the correct minibuffer
+      window to type into.
+    * default value of vm-mutable-frames changed to t, and the
+      semantics of this variable have been changed to hopefully be
+      more like what users expect it to be.
+    * use cache slot of MIME layout struct as an alist everywhere
+      to avoid having display functions confuse each other with their
+      different cache entries.
+    * vm-mime-display-internal-image-xxxx: use device tag lists to have
+      a text tag displayed on ttys and the image itself on image-capable
+      devices.
+    * added optional `to' argument to vm-mail commands.
+    * mouse support changed so that it is installed whenever mouse
+      support may be possible instead of only if it is possible on
+      the current device..  Significant only under XEmacs currently.
+    * use multiple frames on ttys, where available.
+    * vm-scroll-forward: don't scroll if we're auto decoding MIME and
+      the message needed to be decoded.
+    * vm-mail-internal: support mail-personal-alias-file, fall back
+      to ~/.mailrc if it is nil.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue,  3 Jun 1997 12:41:47 -0500
+
+vm (6.31-1) unstable; urgency=low
+
+  * New upstream bug fixing release. Excerpted changes:
+    * vm-toolbar-support-possible-p: don't check device type, install
+      toolbar if the 'toolbar feature is present.
+    * vm-toolbar-initialize: check for device-on-window-system-p
+      before looking at device-bitplanes, in case the selected device
+      is a tty.
+    * use '(win) tag sets on toolbar specifiers to prevent toolbars
+      from being attached to non-window system frames.
+    * vm-multiple-fonts-possible-p: conditionalize checks on
+      XEmacs/Emacs to avoid looking at the window-system variable
+      under XEmacs where it should not be used.
+    * set scrollbar height only if (featurep 'scrollbar) and under
+      XEmacs.  Previously we checked if set-specifier was fbound.
+    * vm-mime-preview-composition: copy value of enriched-mode to
+      the temp buffer so that the MIME encoding code knows what to do.
+    * set perms to 600 on MIME tempfiles before writing to them.
+      There's still a race window where access can be gained to
+      such files, but it should be very small assuming NFS is not
+      involved.
+    * added new 'display-error' slot to the MIME layout struct to
+      avoid overloading the cache slot... and fixed a bug thereby, due
+      to vm-mime-display-external-generic trying to use the contents
+      of the cache slot when there was an error message there.
+    * vm-mime-display-internal-message/rfc822: bind buffer-read-only
+      to nil before trying to insert text into the presentation
+      buffer.
+    * vm-burst-digest will now descend into nested MIME layouts to find
+      digests to burst.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 12 May 1997 18:26:44 -0501
+
+vm (6.30-3) unstable; urgency=low
+
+  * Added an el package a la Emacs (the elisp files are nearly 1M!), since
+    I think it is imperative that the uncompiled elisp files be available
+    for users, but it is not reasonable to unconditionally chew up 1M of
+    disk space.
+  * Also install vm-vars.el into the doc (for the old regular package)
+    directory, since not all customizable variables are documented
+    elsewhere.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 10 May 1997 22:29:42 -0501
+
+vm (6.30-2) unstable; urgency=low
+
+  * Added README.hilit19
+  * Added a menu entry for the HTML documentation
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 8 May 1997 01:58:21 -0500
+
+vm (6.30-1) unstable; urgency=medium
+
+  * New upstream bug fixing release. Excerpted changes:
+      * vm-mail-send: rename and/or delete the composition buffer
+        before trying to make the replied/forward/etc. attribute
+        change, since the user might abort that action.
+        E.g. "... really edit the buffer?"
+      * changed code to use XEmacs 20.2 MULE variables and functions
+        instead of the 20.0 functions.
+      * treat inlined message/rfc822 like multipart/mixed except we also
+        insert the forwarded headers message and decode any encoded
+        words in them.
+      * support enriched-mode in composition buffers.
+      * replaced some repeated calls to car with varrefs.
+      * vm-make-presentation-copy: bind inhibit-read-only to disable
+        read-only text properties before calling erase-buffer.
+      * vm-rfc1153-or-rfc934-burst-message: don't insert a traling
+        message separator if we're bursting the first message.
+      * rewrote vm-menu-support-possible-p to not factor device type
+        into it's decision.  For a multi-device XEmacs what is not
+        possible now might be possible later, so let the menus be
+        instaited even if they aren't necessarily visible on the
+        currently selected device.
+      * default value of vm-honor-mime-content-disposition now nil.
+      * disable the setting of stack-trace-on-error for now.
+      * fixed a few places where MIME layout vectors were created with
+        too many slots and one place with too few slots.
+      * Makefile: doc fixes
+      * Shapiro typo fixes.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 6 May 1997 16:24:08 -0500
+
+vm (6.28-1) frozen unstable; urgency=medium
+
+  * New bugfixing release. Vm has been in feature freeze for a while,
+    and this release is quite stable (better than the 6.22 release
+    available before).
+    Excerpted changes:
+      * added status messages for vm-mark-all-messages and
+        vm-clear-all-marks.
+      * vm-mime-set-extent-glyph-for-type: don't croak on unknown
+        types.
+      * vm-thread-mark-for-summary-update: when skipping already marked
+        messages don't skip the part of the loop that moves the list
+        pointer forward. :-P
+      * rerun vm-menu-install-known-virtual-folders-menu after creating
+        on-the-fly virtual folders because the folder menu gets hosed
+        by the let-bound value of vm-virtual-folder-alist.
+      * added hack to vm-mail-send-and-exit to try and imrpvoe window
+        configuration behvavior under XEmacs when vm-keep-sent-messages
+        is nil.
+      * vm-mime-composite-type-p: don't consider message/partial and
+        message/external-body as a composite types.
+      * fixed nested MIME encoding to check types recursively all the
+        way down to make sure the 7bit/8bit rules are followed.
+      * vm-forward-message: use message/rfc822 instead of multipart/digest.
+      * vm-send-digest: fixed preamble insert for MIME digests to
+        insert into the composition buffer instead of directly into the
+        digest buffer.
+  * Added to postinst commands to remove obsolete references to vm in
+    site-start.el files
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 22 Apr 1997 01:46:16 -0500
+
+vm (6.27-1) unstable; urgency=low
+
+  * New upstream Source
+  * excerpted changes:
+      * vm-mime-rewrite-failed-button: add newline to displayed error
+        string.
+      * vm-menu-goto-event: use event-closest-point instead of
+        event-point so that we get locality of point when a click
+        occurs over a glyph (XEmacs only).
+      * vm-mime-display-button-xxxx: say "attempt to display" instead of
+        "display", as the button doesn't know if there is a functional
+        display function for the type.
+      * vm-mime-xemacs-encode-composition: dropped calls to
+        encode-coding-region for now.  They were screwing up marker
+        positions.
+      * vm-mime-xemacs-encode-composition: protect value of
+        file-coding-system from changes when inserting attachment file
+        contents.
+      * vm-mime-display-internal-text/html: don't call w3-region if it
+        isn't bound, just set error string and return nil.
+      * vm-thread-mark-for-summary-update: don't mark if vm-thread-list-of
+        slot is nil; use nil in this slot to mean we've already marked
+        this message.
+      * added missing application/octet-stream button display function.
+      * Shapiro typo fixes
+      * copied vm-note-emacs-version to vm-menu.el so that it is
+        available at load time for use there.
+      * converted mona stamps to XPMs as XEmacs can't display the GIF versions.
+      * vm-mime-transfer-encode-layout: mark encoding in transfer
+        encoded leaves, forgot this previously (oops).
+      * default value of vm-mime-ignore-mime-version now t.
+      * restored vm-xemacs-p, vm-xemacs-mule-p and vm-fsfemacs-19-p
+        function to avoid breaking third party code that rely on them
+        being present (sigh).
+      * dropped vm-mime-attach-mime-file from the vm-mail-mode keymap and
+        menu.
+      * vm-show-list: binding to button release events in XEmacs didn't
+        work.  Should probably use mouse-track hooks instead of binding
+        keys but until we do that go back to binding button press events.
+      * vm-mouse-get-mouse-track-string: check whether we're running
+        Emacs/XEmacs rather than whether functions are defined to avoid
+        using the wrong overlay/extent interface.
+      * initialize mail-default-reply-to from REPLYTO environmental
+        variable if value is nil (used to be if value is t).
+      * vm: moved call to vm-preview-current-message after the summary
+        generatation/display code.  The summary might completely
+        obscure the view of the message buffer, so previewing should
+        occur after that so that vm-show-current-message knows whether
+        the message was visible and therefore also knows whether to
+        mark the message as read.
+      * vm-keep-mail-buffer: don't kill a buffer if it marked as
+        modified, even if the number of `kept' messages would be
+        exceeeded by keeping it.  Presumably if a buffer is modified
+        the user has resumed composing in it and so we should not delete
+        it.
+      * added vm-mouse-send-url-to-netscape-new-window and
+        vm-mouse-send-url-to-mosaic-new-window functions for use as
+        values of vm-url-browser.
+      * dropped use of vm-check-for-killed-folder in menubar and
+        toolbar enabled-p functions.  We wrap troublesome calls to
+        vm-select-folder-buffer in (condition-case ...) now to avoid a
+        "Folder has been killed" error from hosing the toolbar/mnunebar
+        and XEmacs permanently.
+      * don't use application/octet-stream's button function for all
+        application subtypes.  Added a separate function to be used for
+        subtypes other than octet-stream.
+      * vm-mime-attach-object: if type is nil, use text/plain as the
+        type when calling vm-mime-set-extent-glyph-for-type.
+      * don't fold content-disposition headers if
+        vm-mime-avoid-folding-content-type is non-nil.
+      * don't add an extra newline after the unfolded content-type of the
+        last text subpart.
+      * vm-mime-preview-composition: remove mail header separator after
+        the message is encoded since the encoder won't work without it.
+      * default value of vm-mime-avoid-folding-content-type now t due
+        to pervasive broken Solaris sendmail installations that mangle
+        the headers of messages with folded Content- headers.
+      * vm-mime-make-multipart-boundary: shortened multipart boundaries to
+        avoid long header lines when vm-mime-avoid-folding-content-type is
+        t.
+      * include the missing audio_stamp images in the distribution.
+      * set version variables at startup and refer to them rather than
+        calling vm-xemacs-p, etc. repeatedly.
+      * vm-summary-highlight-region: overlays and extents aren't
+        interchangable in this context, so behave based on Emacs/XEmacs
+        version to avoid any overlay/extent emulations, and also to
+        avoid having make-overlay's sudden appearance give us
+        heartburn.
+      * don't fset vm-extent-property, vm-make-extent, etc. unless they
+        are undefined.  This is to avoid changing their definition in
+        the middle of an Emacs session and thereby mixing usage the
+        overlay/extent interfaces.
+      * vm-mime-set-extent-glyph-for-layout: fixed reversed colorfulness
+        test.
+      * vm-mime-set-extent-glyph-for-type: mona_stamp is a GIF not an XPM.
+      * more overlay/extent interface cleanup.
+      * reenabled internal text/html code.
+      * vm-yank-message: decode text/html and text/enriched in the
+        composition buffer.
+      * attach image glyphs to attachment tags in composition buffers
+        (XEmacs only).
+      * print a warning and continue if x-vm- header seems corrupted.
+        old behavior was to just croak an error and wedge the mailer.
+      * vm-print-message: default count to 1 if passed no arguments.
+      * default value of vm-honor-mime-content-disposition now t.
+      * Makefile: default VM build type is now back to `autoload'.
+      * vm-rfc1153-or-rfc934-burst-message: use point instead of
+        (match-end 0) when deleting the message separator.
+      * vm-rfc1153-or-rfc934-burst-message: trim excessive newlines
+        only after we know that we are looking at a valid message separator.
+      * vm-su-message-id: discard chaff preceding message ID.
+      * vm-mime-fragment-composition: 'send -> '8bit to match
+        documentation of vm-mime-8bit-text-transfer-encoding.
+      * vm-mime-fragment-composition: call vm-add-mail-mode-header-separator
+        at the end so the buffer could be sent again.
+      * vm-mime-preview-composition: call vm-remove-mail-mode-header-separator.
+      * avoid starting new timers if old timers are still active (FSF
+        Emacs only).
+      * vm-mime-encode-composition: split code into FSF Emacs and
+        XEmacs functions.  This should avoid mixing usage of the extent
+        and overlay interfaces, which loses with Nuspl's overlay.el
+        emulation.
+      * default vm-temp-file-directory to C:\ if /tmp is not a directory
+        and C:\ is.
+      * use insert-file-contents instead of insert-file-contents-literally
+        when inserting MIME attachments into compositions when encoding.
+      * if vm-auto-displayed-mime-content-types or Content-Disposition
+        says to display message/rfc822 or message/news inline and
+        immediately display them as text/plain.  If displaying them due
+        to button activation, use a folder instead.
+      * use different menu for mailto: URLs since the old one didn't
+        really do what it advertised, i.e. didn't allow mailto URLs to
+        be send to other browsers.
+      * added reduced color MIME art for 8-bit displays that used to only be
+        used with displays with 16-bit or better displays.
+      * cache MIME art image glyphs for reuse to save load time.
+      * wrap calls to timezone-make-date-sortable in (condition-case ...)
+        to avoid crashing on bad dates.
+      * gave up on using frame-totally-visible-p since it is still
+        broken in 19.15.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 17 Apr 1997 20:57:45 -0500
+
+vm (6.22-1) unstable; urgency=low
+
+  * New upstream bugfix release
+  * Excerpted changes :
+    * vm-save-folder: call clear-visited-file-modtime if folder was deleted
+      to avoid "File changed on disk" warnings later.
+    * vm-mime-qp-encode-region: bounds check (1+ inputpos) before using it
+      to avoid referencing outside a clipping region.
+    * vm-mime-encode-composition: do the insert/delete dance to avoid text
+      leaking into overlays in the file insertion case.
+    * vm-mime-encode-composition: insert-file-contents-literally doesn't
+      move point. the code assumed it does and corrupted attachments as a
+      result.
+    * vm-gobble-crash-box: remove/rename crash box even if it is
+      zero-length.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 24 Mar 1997 10:21:14 -0600
+
+vm (6.20-1) unstable; urgency=low
+
+  * BUG#7775 was already fixed in 6.18-2
+  * New upstream version
+  * Excerpted changes :
+    * vm-menu-support-possible-p: allow menu code to operate under
+      NextStep.  window-system == ns.
+    * New variables:
+      + vm-mosaic-program-switches
+      + vm-netscape-program-switches
+      + vm-mime-ignore-mime-version
+      + vm-presentation-mode-hook (you were right, i was wrong)
+    * vm-decode-mime-messages: run the highlighting code
+    * vm-mime-display-internal-multipart/digest: copied folder display
+      code from the message/rfc822 handler since they should work the
+      same and message/rfc822 works properly with vm-mutable-windows
+      == nil.
+    * make gui-button-face be the unconditional default value for
+      vm-mime-button-face.
+    * vm-virtual-quit: make sure vm-message-pointer is non-nil before
+      trying to run vm-message-id-number-of on it.
+    * vm-howl-if-eom: don't search other frames for the buffer's
+      window.  Under XEmacs calling select-window on such a window
+      causes its frame to be selected and it stays selected despite
+      the call being wrapped in a save-window-excursion.  I don't
+      think we really want to report end of message status in a
+      window in a non-selected frame anyway.
+    * removed reference to user-mail-address variable, because it might be
+      set to nil.
+    * vm-show-list: bind command to mouse release events instead of
+      mouse press events in XEmacs.
+    * vm-preview-current-message: set vm-mime-decoded to nil; it is
+      not enough to just let vm-make-presentation-copy do this.
+    * use full contents of References headers to avoid
+    * insert an X-Mailer in composition buffers.  Music!  Fun!  Horoscopes!
+      And bug tracking.
+    * New user data functions:
+      + vm-user-composition-folder-buffer
+      + vm-user-composition-real-folder-buffers
+    * vm-print-message: make printing of MIME message work more like
+      non-MIME messages; print visible headers, print tags for
+      non-textual body parts.
+    * vm-mime-insert-button: don't set keymap parent to be the
+      current local map unless that map exists (i.e. is non-nil).
+    * catch errors when decoding encoded words and substitute an error
+      indicator for the string that we could not parse.
+    * vm-set-xxxx-flag: don't set attribute flag until after the undo
+      information is recorded.  The buffer modification might be
+      nixed by the user via the clash detection query, so we need to
+      be sure we're past that code before committing to the attribute
+      change.
+    * vm-set-labels: same as vm-set-xxxx-flag and for same reason.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 18 Mar 1997 15:03:24 -0600
+
+vm (6.18-2) unstable; urgency=low
+
+  * New maintainer
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 7 Mar 1997 14:55:18 -0600
+
+vm (6.18-1) unstable; urgency=low
+
+  * Fixed dww heading
+  * New version from upstream with lots of changes.
+  * Excerpted changes :
+    * New variables:
+      + vm-mime-composition-armor-from-lines
+    * use Dispose menu as the mode menu in the presentation buffer.
+    * vm-mime-encode-composition: do insert/delete dance to avoid
+      inserting into attachment overlays.
+    * vm-print-command now decodes the MIME message before printing.
+    * added 'print' item to mime dispose menu.
+    * returned to using the day's date as part of the saved crash box
+      name used when vm-keep-crash-boxes is set.
+    * added support for message/news type, which is handled mostly
+      like message/rfc822.
+    * new mime-dispose menu entries.
+    * don't check again for new mail if we already know some is waiting.
+    * add extended status reporting during POP message retrieval.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 4 Mar 1997 10:02:57 -0600
+
+vm (6.16-1) unstable; urgency=low
+
+  * New upstream version, with bug fixes.
+  * The most visible bug-fix is the undefined file-coding-system bug.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 25 Feb 1997 13:56:29 -0600
+
+vm (6.15-1) unstable; urgency=low
+
+  * New upstream bugfix release. Changes include:
+    * move start of attachment tag out of header section.
+    * vm-mime-preview-composition: don't copy extents under XEmacs.
+    * use text properties for attachment tags in FSF Emacs.
+    * vm-mime-attach-file: pass description from interactive spec
+      into function.
+    * better handling of M-x vm-mode w.r.t. coding systems under Mule.
+    * Shapiro typo fixes.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 20 Feb 1997 11:36:39 -0600
+
+vm (6.14-1) unstable; urgency=low
+
+  * Made Richard Kettlewell <richard@elmail.co.uk> the maintainer n the control file again
+  * Added HTML files and an dwww index.
+  * Since VM stopped supporting older Emacs versions, no longer need to
+    install itimer.  XEmacs ships it by default, and FSF Emacs has an
+    different timer interface that VM knows how.
+  * New upstream release. Many changes from previous version.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 19 Feb 1997 13:02:30 -0600
+
+vm (6.13-2) unstable; urgency=low
+
+  * Changed priority to optional, as per override file
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 13 Feb 1997 14:19:55 -0600
+
+vm (6.13-1) unstable; urgency=low
+
+  * Changed postinst and prerm to just install and remove info files, as the
+    new way of running elisp at startup is the dir /etc/emacs/site-start.d
+  * Installed vm-init.el in the new /etc/emacs/site-start.d/ directory
+  * Added error messages to source directory and root checks in debian/rules.
+  * Give destination directories on command line, rather than edit upstream
+    Makefile.
+  * Non-maintainer upgrade to non-beta vm and new packaging conventions.
+    Now upto Standards-Version: 2.1.2.2
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 11 Feb 1997 14:46:25 -0600
+
+Wed Jan 17 00:13:10 1996  Richard Kettlewell  <richard@sfere.uk.geeks.org>
+
+        * debian.rules: Cope with deleted package_revision field
+
+        * debian.control: Delete package_revision field; better
+        description field lifted from info documentation.
+
+Fri Sep 22 21:30:46 1995  Richard Kettlewell  <richard@sfere.elmail.co.uk>
+
+        * debian.control: virtual package support
+
+        * moved to version 5.95beta.  This has been unchanged for weeks.
+
+        * debian.rules (version): changed version number
+
+Sat Aug 12 00:19:23 1995  Richard Kettlewell  <richard@elmail.co.uk>
+
+        * debian.site-lisp/vm-init.el: changed the name of this file.
+
+        * debian.site-lisp/vm-init: added mail-mode-smart-tab as posted to
+        info-vm.
+
+Wed Aug  9 19:58:31 1995  Richard Kettlewell  <richard@elmail.co.uk>
+
+        * debian.{postinst,prerm}: hacked &followlink a bit; better error
+        handling.
+
+        * download 5.94beta from ftp.uu.net
+
+Tue Aug  1 22:45:03 1995  Richard Kettlewell  <richard@sfere.elmail.co.uk>
+
+        * debian.vm-init: used to be vm-debian, changed it to bring in
+        line with e.g. the w3-el package.
+
+        * debian.README: fixed version number in pointer to upstream
+        version.
+
+        * debian.prerm: rewrote in perl, now we follow links properly
+
+        * debian.postinst: rewrote in perl, now we follow links properly
+
+Fri Jul 28 18:52:35 1995  Richard Kettlewell  <richard@sfere.elmail.co.uk>
+
+        * moved ChangeLog to debian.ChangeLog
+
+Wed Jul 26 18:21:18 1995  Richard Kettlewell  <richard@sfere.elmail.co.uk>
+
+        * debian.control (Description): Removed package name from start of
+        description field.
+
+Tue Jul 25 10:00:00 1995  Richard Kettlewell  <richard@sfere.elmail.co.uk>
+
+        * Released vm-5.92beta-1 (time approximate)
+
+Sun Jul 23 22:31:12 1995  Richard Kettlewell  <richard@sfere.elmail.co.uk>
+
+        * debian.rules: changed version number
+
+        * patched up to 5.92beta
+
+Wed Jul 19 23:49:25 1995  Richard J Kettlewell  <richard@sfere.elmail.co.uk>
+
+        * Makefile: changed directories to point to the right place for
+        us.
+
+        (clean): clean up things we don't want in the source package
+
+
--- vm-8.1.0.orig/debian/postrm
+++ vm-8.1.0/debian/postrm
@@ -0,0 +1,211 @@
+#! /bin/sh
+#                               -*- Mode: Sh -*-
+# postrm ---
+# Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com )
+# Created On       : Fri Nov 14 12:22:20 2003
+# Created On Node  : glaurung.green-gryphon.com
+# Last Modified By : Manoj Srivastava
+# Last Modified On : Fri Sep 29 14:09:08 2006
+# Last Machine Used: glaurung.internal.golden-gryphon.com
+# Update Count     : 11
+# Status           : Unknown, Use with caution!
+# HISTORY          :
+# Description      :
+#
+# arch-tag: 56802d51-d980-4822-85c0-28fce19ed430
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+
+
+# Abort if any command returns an error value
+set -e
+
+package_name=vm
+ELDIR=/usr/share/emacs/site-lisp/$package_name
+
+if [ -z "$package_name" ]; then
+    print >&2 "Internal Error. Please report a bug."
+    exit 1;
+fi
+
+# This script is called twice during the removal of the package; once
+# after the removal of the package's files from the system, and as
+# the final step in the removal of this package, after the package's
+# conffiles have been removed.
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+# Ensure the menu system is updated
+#[ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
+
+case "$1" in
+  remove)
+    # This package is being removed, but its configuration has not yet
+    # been purged.
+    :
+    test ! -d /usr/share/emacs/site-lisp/vm || \
+      find /usr/share/emacs/site-lisp/vm -type f \
+        \( -name \*.elc -o -name \*.el \) -exec rm {} \;
+    test ! -d /usr/share/emacs/site-lisp/vm || \
+      rmdir --ignore-fail-on-non-empty /usr/share/emacs/site-lisp/vm
+    # Remove diversion
+    ##: dpkg-divert --package ${package_name} --remove --rename \
+    ##:             --divert /usr/bin/other.real /usr/bin/other
+
+    # ldconfig is NOT needed during removal of a library, only during
+    # installation
+
+    ;;
+  purge)
+    # This package has previously been removed and is now having
+    # its configuration purged from the system.
+    :
+
+    # we mimic dpkg as closely as possible, so we remove configuration
+    # files with dpkg backup extensions too:
+    ### Some of the following is from Tore Anderson:
+    ##: for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
+    ##:     rm -f /etc/${package_name}.conf$ext
+    ##: done
+
+    # remove the configuration file itself
+    ##: rm -f /etc/${package_name}.conf
+
+    # and finally clear it out from the ucf database
+    ##: ucf --purge /etc/${package_name}.conf
+
+    # Remove symlinks from /etc/rc?.d
+    ##: update-rc.d ${package_name} remove >/dev/null
+
+    ##: if [ -e /usr/share/debconf/confmodule ]; then
+    ##:     # Purge this package's data from the debconf database.
+    ##:     . /usr/share/debconf/confmodule
+    ##:     db_purge
+    ##: fi
+    test ! -d /usr/share/emacs/site-lisp/vm || \
+        find /usr/share/emacs/site-lisp/vm -type f \
+        \( -name \*.elc -o -name \*.el \) -exec rm {} \;
+    test ! -d /usr/share/emacs/site-lisp/vm || \
+      rmdir --ignore-fail-on-non-empty /usr/share/emacs/site-lisp/vm
+
+    if [ -f $ELDIR/vm.el ]; then
+        rm -f -f $ELDIR/vm.el
+    fi
+    if [ -f $ELDIR/vm.elc ]; then
+        rm -f -f $ELDIR/vm.elc
+    fi
+
+    for flavour in emacs22 emacs23 emacs-snapshot xemacs21; do
+        ELCDIR=/usr/share/$flavour/site-lisp/$package_name/
+        if [ -f /etc/$flavour/site-start.d/50vm-init.el ]; then
+            rm -f /etc/$flavour/site-start.d/50vm-init.el
+        fi
+        if [ -d /usr/share/$flavour/site-lisp/$package_name ]; then
+            if [ -f /usr/share/$flavour/site-lisp/$package_name/install.log ]; then
+                rm -f /usr/share/$flavour/site-lisp/$package_name/install.log
+            fi
+            if [ -f /usr/share/$flavour/site-lisp/$package_name/vm-init.el ]; then
+                rm -f /usr/share/$flavour/site-lisp/$package_name/vm-init.el
+            fi
+            rm -f /usr/share/$flavour/site-lisp/$package_name/*.elc || true
+            rmdir /usr/share/$flavour/site-lisp/$package_name || true
+        fi
+    done
+
+    # This package has previously been removed and is now having
+    # its configuration purged from the system.
+    for flavour in emacs22 emacs23 emacs-snapshot xemacs21; do
+	STARTDIR=/etc/$flavour/site-start.d;
+	STARTFILE="${package_name}-init.el";
+        if which ucf >/dev/null; then
+            ucf --purge "$STARTDIR/50$STARTFILE";
+        fi
+        if which ucfr >/dev/null; then
+            ucfr --purge ${package_name} "$STARTDIR/50$STARTFILE"
+        fi
+	if [ -e "$STARTDIR/20$STARTFILE" ]; then
+	    rm -f "$STARTDIR/20$STARTFILE"
+	fi
+    done
+
+    ;;
+  disappear)
+    if test "$2" != overwriter; then
+      echo "$0: undocumented call to \`postrm $*'" 1>&2
+      exit 0
+    fi
+    # This package has been completely overwritten by package $3
+    # (version $4).  All our files are already gone from the system.
+    # This is a special case: neither "prerm remove" nor "postrm remove"
+    # have been called, because dpkg didn't know that this package would
+    # disappear until this stage.
+    :
+
+    ;;
+  upgrade)
+    # About to upgrade FROM THIS VERSION to version $2 of this package.
+    # "prerm upgrade" has been called for this version, and "preinst
+    # upgrade" has been called for the new version.  Last chance to
+    # clean up.
+    :
+
+    ;;
+  failed-upgrade)
+    # About to upgrade from version $2 of this package TO THIS VERSION.
+    # "prerm upgrade" has been called for the old version, and "preinst
+    # upgrade" has been called for this version.  This is only used if
+    # the previous version's "postrm upgrade" couldn't handle it and
+    # returned non-zero. (Fix old postrm bugs here.)
+    :
+
+    ;;
+  abort-install)
+    # Back out of an attempt to install this package.  Undo the effects of
+    # "preinst install...".  There are two sub-cases.
+    :
+
+    if test "${2+set}" = set; then
+      # When the install was attempted, version $2's configuration
+      # files were still on the system.  Undo the effects of "preinst
+      # install $2".
+      :
+
+    else
+      # We were being installed from scratch.  Undo the effects of
+      # "preinst install".
+      :
+
+    fi ;;
+  abort-upgrade)
+    # Back out of an attempt to upgrade this package from version $2
+    # TO THIS VERSION.  Undo the effects of "preinst upgrade $2".
+    :
+
+    ;;
+  *) echo "$0: didn't understand being called with \`$1'" 1>&2
+     exit 0;;
+esac
+
+exit 0
--- vm-8.1.0.orig/debian/README.MIME
+++ vm-8.1.0/debian/README.MIME
@@ -0,0 +1,28 @@
+A quick tutorial on VM's MIME display variables.
+
+vm-display-using-mime controls whether MIME is displayed specially
+at all.  Default value is t.
+
+vm-auto-decode-mime-messages controls whether a MIME message is
+decoded when the message is selected.  Decoding means parsing the
+message to figure out what MIME types are in it.  This can be
+slow for large messages, so you might not want it to happen
+automatically.  Default value is t.
+
+vm-auto-displayed-mime-content-types controls which MIME types
+are displayed immediately after the message is decoded.
+Default value is ("text" "multipart").
+
+vm-auto-displayed-mime-content-type-exceptions lists exceptions
+to the auto-displayed types.  So you can specify "text" as an
+auto-displayed type and '("text/html") as the exceptions list to avoid
+immediate display of text/html.  Default value is nil.
+
+(setq vm-mime-default-face-charsets
+   '("us-ascii" "iso-8859-1" "iso-8859-2" "iso-8859-3" "iso-8859-4"
+     "iso-8859-5" "iso-8859-6" "iso-8859-7" "iso-8859-8" "iso-8859-9"
+     "windows-1251" "windows-1252" "koi8-r" "us-ascii" "X-roman8"
+     ))
+
+
+arch-tag: 9915b9cc-999d-4481-8021-e83881233281
--- vm-8.1.0.orig/debian/postinst
+++ vm-8.1.0/debian/postinst
@@ -0,0 +1,273 @@
+#! /bin/sh
+#                           -*- Mode: Sh -*-
+# postinst ---
+# Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com )
+# Created On       : Fri Nov 14 11:25:07 2003
+# Created On Node  : glaurung.green-gryphon.com
+# Last Modified By : Manoj Srivastava
+# Last Modified On : Fri Sep 29 14:16:38 2006
+# Last Machine Used: glaurung.internal.golden-gryphon.com
+# Update Count     : 22
+# Status           : Unknown, Use with caution!
+# HISTORY          :
+# Description      :
+#
+# arch-tag: 5401e9ef-39cc-4aee-96a4-61dfb8f32cf7
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+#
+
+# Abort if any command returns an error value
+set -e
+
+package_name=vm
+
+if [ -z "$package_name" ]; then
+    print >&2 "Internal Error. Please report a bug."
+    exit 1;
+fi
+
+# This script is called as the last step of the installation of the
+# package.  All the package's files are in place, dpkg has already done
+# its automatic conffile handling, and all the packages we depend of
+# are already fully installed and configured.
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <old-postinst> abort-remove  # if prerm fails during removal
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+# The following idempotent stuff doesn't generally need protecting
+# against being run in the abort-* cases.
+
+
+# Create stub directories under /usr/local
+##: if test ! -d /usr/local/lib/${package_name}; then
+##:   if test ! -d /usr/local/lib; then
+##:     if mkdir /usr/local/lib; then
+##:       chown root.staff /usr/local/lib || true
+##:       chmod 2775 /usr/local/lib || true
+##:     fi
+##:   fi
+##:   if mkdir /usr/local/lib/${package_name}; then
+##:     chown root.staff /usr/local/lib/${package_name} || true
+##:     chmod 2775 /usr/local/lib/${package_name} || true
+##:   fi
+##: fi
+
+# Ensure the menu system is updated
+# [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
+
+# Arrange for a daemon to be started at system boot time
+##: update-rc.d ${package_name} default >/dev/null
+
+case "$1" in
+  configure)
+    # Configure this package.  If the package must prompt the user for
+    # information, do it here.
+
+    # Activate menu-methods script
+    ##: chmod a+x /etc/menu-methods/${package_name}
+
+    # Update ld.so cache
+    ##: ldconfig
+
+    # Make our version of a program available
+    ##: update-alternatives \
+    ##:       --install /usr/bin/program program /usr/bin/alternative 50 \
+    ##:       --slave /usr/man/man1/program.1.gz program.1.gz \
+    ##:               /usr/man/man1/alternative.1.gz
+
+    # Tell ucf that the file in /usr/share/foo is the latest
+    # maintainer version, and let it handle how to manage the real
+    # confuguration file in /etc. This is how a static configuration
+    # file can be handled:
+    ##:if which ucf >/dev/null 2>&1; then
+    ##:  ucf /usr/share/${package_name}/configuration /etc/${package_name}.conf
+    ##:fi
+
+    ### We could also do this on the fly. The following is from Tore
+    ### Anderson:
+
+    #. /usr/share/debconf/confmodule
+
+    ### find out what the user answered.
+    #  db_get foo/run_on_boot
+    #  run_on_boot=$RET
+    #  db_stop
+
+    ### safely create a temporary file to generate our suggested
+    ### configuration file.
+    #    tempfile=`tempfile`
+    #    cat << _eof > $tempfile
+    ### Configuration file for Foo.
+
+    ### this was answered by you, the user in a debconf dialogue
+    #  RUNONBOOT=$run_on_boot
+
+    ### this was not, as it has a sane default value.
+    #  COLOUROFSKY=blue
+
+    #_eof
+
+    ### Note that some versions of debconf do not release stdin, so
+    ### the following invocation of ucf may not work, since the stdin
+    ### is never coneected to ucfr.
+
+    ### now, invoke ucf, which will take care of the rest, and ask
+    ### the user if he wants to update his file, if it is modified.
+    #ucf $tempfile /etc/foo.conf
+
+    ### done! now we'll just clear up our cruft.
+    #rm -f $tempfile
+
+
+
+    # There are three sub-cases:
+    if test "${2+set}" != set; then
+      # We're being installed by an ancient dpkg which doesn't remember
+      # which version was most recently configured, or even whether
+      # there is a most recently configured version.
+      :
+
+    elif test -z "$2" || test "$2" = "<unknown>"; then
+      # The package has not ever been configured on this system, or was
+      # purged since it was last configured.
+      :
+
+    else
+      # Version $2 is the most recently configured version of this
+      # package.
+      :
+      # People upgrading from older versions should get byte compiled
+      if dpkg --compare-versions "7.19-8" gt "$2"; then
+          if [  -e /usr/share/emacs21/site-lisp/$package_name/vm-autoload.elc ]; then
+              rm -f /usr/share/emacs21/site-lisp/$package_name/vm-autoload.elc
+          fi
+          if [  -e /usr/share/emacs22/site-lisp/$package_name/vm-autoload.elc ]; then
+              rm -f /usr/share/emacs22/site-lisp/$package_name/vm-autoload.elc
+          fi
+      fi
+
+    fi
+
+    # Install emacs lisp files
+    if [ -x  /usr/lib/emacsen-common/emacs-package-install ]; then
+        /usr/lib/emacsen-common/emacs-package-install $package_name
+    fi
+
+    if which ucfr >/dev/null; then
+        for flavour in emacs22 emacs23 emacs-snapshot xemacs21; do
+	    STARTDIR=/etc/$flavour/site-start.d;
+	    STARTFILE="${package_name}-init.el";
+            if [ -e "$STARTDIR/50$STARTFILE" ]; then
+                ucfr ${package_name} "$STARTDIR/50$STARTFILE"
+            fi
+        done
+    fi
+
+    # Take care of older vm-init requirements
+    # These are the potential places we could find things in
+    SITE_START="/etc/emacs/site-start.el /usr/lib/emacs/site-lisp/site-start.el"
+
+    # The requires line looks like this
+    REQUIRE='(load "vm-init.el")'
+
+    # Ok, lets see what we have here
+    for i in $SITE_START ; do
+        if [ -e $i ]; then
+            if [ "`grep vm-init $i`" != "" ]; then
+                SITE_FIX="$SITE_FIX $i"
+            fi
+        fi
+    done
+
+    # See if we may fix things quietly
+    for i in $SITE_FIX ; do
+        grep -v "$REQUIRE" $i > /etc/emacs/`basename $i`.new.$$
+        mv /etc/emacs/`basename $i`.new.$$ $i || echo Could not edit $i
+    done
+
+    # These were the problem files
+    SITE_START="$SITE_FIX"
+    SITE_FIX=""
+
+    # Any mention of vm-init left?
+    for i in $SITE_START  ; do
+        if [ -e $i ]; then
+            if [ "`grep vm-init $i`" != "" ]; then
+                SITE_FIX="$SITE_FIX $i"
+            fi
+        fi
+    done
+
+    if [ "$SITE_FIX" != "" ]; then
+        echo ""
+        echo "The following files mention vm-init, even though they shouldn't:"
+        echo "  $SITE_FIX "
+        echo "please remove the load or require command from these files."
+        echo ""
+        exit 0
+    fi
+
+    ;;
+  abort-upgrade)
+    # Back out of an attempt to upgrade this package FROM THIS VERSION
+    # to version $2.  Undo the effects of "prerm upgrade $2".
+    :
+
+    ;;
+  abort-remove)
+    if test "$2" != in-favour; then
+      echo "$0: undocumented call to \`postinst $*'" 1>&2
+      exit 0
+    fi
+    # Back out of an attempt to remove this package, which was due to
+    # a conflict with package $3 (version $4).  Undo the effects of
+    # "prerm remove in-favour $3 $4".
+    :
+
+    ;;
+  abort-deconfigure)
+    if test "$2" != in-favour || test "$5" != removing; then
+      echo "$0: undocumented call to \`postinst $*'" 1>&2
+      exit 0
+    fi
+    # Back out of an attempt to deconfigure this package, which was
+    # due to package $6 (version $7) which we depend on being removed
+    # to make way for package $3 (version $4).  Undo the effects of
+    # "prerm deconfigure in-favour $3 $4 removing $6 $7".
+    :
+
+    ;;
+  *) echo "$0: didn't understand being called with \`$1'" 1>&2
+     exit 0;;
+esac
+
+exit 0
--- vm-8.1.0.orig/debian/local.mk
+++ vm-8.1.0/debian/local.mk
@@ -0,0 +1,198 @@
+############################ -*- Mode: Makefile -*- ###########################
+## local.mk --- 
+## Author	    : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On	    : Sat Nov 15 10:42:10 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Sun Apr 27 16:13:39 2008
+## Last Machine Used: anzu.internal.golden-gryphon.com
+## Update Count	    : 48
+## Status	    : Unknown, Use with caution!
+## HISTORY	    : 
+## Description	    : 
+## 
+## arch-tag: b07b1015-30ba-4b46-915f-78c776a808f4
+## 
+###############################################################################
+
+testdir:
+	$(testdir)
+
+CLN-common::
+	$(REASON)
+	test ! -f Makefile || $(MAKE) clean || true
+
+
+ifneq ($(strip $(BUILD_MIME_CODECS)),)
+CONTROL_FILE=debian/control.mime-codecs
+
+debian/stamp/BUILD/mime-codecs: debian/stamp/build/mime-codecs
+debian/stamp/INST/mime-codecs:  debian/stamp/install/mime-codecs
+debian/stamp/BIN/mime-codecs:   debian/stamp/binary/mime-codecs
+
+CLEAN/mime-codecs::
+	$(checkdir)
+	$(REASON)
+	-rm -rf $(TMPTOP)
+else
+CONTROL_FILE=debian/control
+endif
+
+
+debian/stamp/pre-config-common: debian/stamp/conf/vm
+debian/stamp/BUILD/vm: 		debian/stamp/build/vm
+debian/stamp/INST/vm:  		debian/stamp/install/vm
+debian/stamp/BIN/vm:   		debian/stamp/binary/vm
+
+
+CLEAN/vm::
+	$(checkdir)
+	$(REASON)
+	-rm -rf $(TMPTOP)
+
+debian/stamp/conf/vm:
+	$(checkdir)
+	$(REASON)
+	@test -d debian/stamp/conf || mkdir -p debian/stamp/conf
+	ac_cv_lib_util_getloadavg=no ./configure                \
+             --verbose --prefix=$(PREFIX) --mandir=$(P_MANDIR)  \
+              --infodir=$(P_INFODIR) --sysconfdir=/etc          \
+               --with-pixmapdir=$(P_PIXMAPDIR) $(confflags) 
+	@echo done > $@
+
+
+debian/stamp/build/mime-codecs: base64-decode.c base64-encode.c \
+                                qp-decode.c qp-encode.c
+	$(checkdir)
+	$(REASON)
+	@test -d debian/stamp/build || mkdir -p debian/stamp/build
+	$(MAKE) -C src
+	dpkg -l gcc perl dpkg 'libc*' binutils make dpkg-dev |\
+	    awk '$$1 == "ii" { printf("%s-%s\n", $$2, $$3) }' > \
+	      debian/buildinfo	
+	@echo done > $@
+
+
+debian/stamp/build/vm: 
+	$(checkdir)
+	$(REASON)
+	@test -d debian/stamp/build || mkdir -p debian/stamp/build
+	$(MAKE) -C info
+	test -d debian/html || mkdir -p debian/html
+	(cd debian/html; \
+	 texi2html -doctype html2 -expandinfo -glossary -menu \
+		   -split_chapter -o . -verbose  ../../info/vm.texinfo)
+	@echo done > $@
+
+
+debian/stamp/install/mime-codecs:
+	$(REASON)
+	$(checkdir)
+	$(TESTROOT)
+	@test -d debian/stamp/install || mkdir -p debian/stamp/install
+	rm -rf $(TMPTOP)   $(TMPTOP).deb
+	$(make_directory)  $(BINDIR)
+	$(make_directory)  $(MAN1DIR)
+	$(make_directory)  $(DOCDIR)
+	$(MAKE) -C src     prefix=$(PREFIX)      DESTDIR=$(TMPTOP) install
+	$(install_file)    debian/README.debian  $(DOCDIR)/README.Debian 
+	$(install_file)    debian/NEWS.Debian    $(DOCDIR)/NEWS.Debian
+	$(install_file)    debian/README.MIME    $(DOCDIR)
+	$(install_file)    debian/changelog      $(DOCDIR)/changelog.Debian
+	$(install_file)    debian/buildinfo      $(DOCDIR)/buildinfo.Debian
+	gzip -9fqr         $(MANDIR)
+	gzip -9fqr         $(DOCDIR)
+	$(install_file)    debian/copyright      $(DOCDIR)
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	find $(TMPTOP) -type f | while read i; do                                     \
+           if file -b $$i | egrep -q "^ELF.*executable"; then                         \
+             strip --strip-all --remove-section=.comment --remove-section=.note $$i;  \
+           fi;                                                                        \
+         done
+endif
+	@echo done > $@
+
+
+debian/stamp/install/vm: 
+	$(REASON)
+	$(checkdir)
+	$(TESTROOT)
+	@test -d debian/stamp/install || mkdir -p debian/stamp/install
+	rm -rf $(TMPTOP)   $(TMPTOP).deb
+	$(make_directory)  $(INFODIR)
+	$(make_directory)  $(LISPDIR)
+	$(make_directory)  $(PIXMAPDIR)
+	$(make_directory)  $(STARTDIRS)
+	$(make_directory)  $(DOCDIR)/examples
+	$(make_directory)  $(DOCBASE)
+	$(make_directory)  $(COMPILEDIR)/install
+	$(make_directory)  $(COMPILEDIR)/remove
+	$(make_directory)  $(LINTIANDIR)
+	echo	 "$(package): description-synopsis-might-not-be-phrased-properly" \
+				>>		 $(LINTIANDIR)/$(package)
+	(cd lisp;          tar cf - * |          (cd $(LISPDIR);tar xf -))
+	test ! -f          $(LISPDIR)/autoloads.py   || rm -f      $(LISPDIR)/autoloads.py
+	test ! -f           $(LISPDIR)/vm-version.el || chmod 664  $(LISPDIR)/vm-version.el
+	$(install_file)    debian/$(STARTFILE)   $(LISPDIR)
+	$(MAKE)            -C pixmaps            prefix=$(PREFIX) DESTDIR=$(TMPTOP) install
+	$(MAKE)            -C info               prefix=$(PREFIX) DESTDIR=$(TMPTOP) install
+	$(install_file)    debian/changelog      $(DOCDIR)/changelog.Debian
+	$(install_file)    debian/README.debian  $(DOCDIR)
+	$(install_file)    debian/README.hilit19 $(DOCDIR)
+	$(install_file)    lisp/vm-vars.el       $(DOCDIR)
+	$(install_file)    README                $(DOCDIR)
+	(cd debian/examples;  tar cf - * |       (cd $(DOCDIR)/examples;tar xf -))
+	gzip -9fqr         $(INFODIR)/
+	gzip -9frq         $(DOCDIR)/
+# Make sure the copyright file is not compressed
+	$(install_file)	   debian/copyright	 $(DOCDIR)/copyright
+	$(install_file)    debian/html/vm_*.html $(DOCDIR)/
+	$(install_file)    debian/html/vm.html   $(DOCDIR)/
+	$(install_file)    debian/docentry       $(DOCBASE)/$(package)
+	sed                -e 's/=P/$(package)/g' -e 's/=V/$(DEB_VERSION)/g' \
+                                                 debian/emacsen.install > \
+                                           $(COMPILEDIR)/install/$(package)
+	sed                -e 's/=P/$(package)/g' -e 's/=V/$(DEB_VERSION)/g' \
+                                                 debian/emacsen.remove  > \
+                                            $(COMPILEDIR)/remove/$(package)
+	chmod 0755         $(COMPILEDIR)/install/$(package) \
+                            $(COMPILEDIR)/remove/$(package)
+	@echo done > $@
+
+
+debian/stamp/binary/mime-codecs:
+	$(checkdir)
+	$(REASON)
+	$(TESTROOT)
+	@test -d debian/stamp/binary || mkdir -p debian/stamp/binary
+	$(make_directory)  $(TMPTOP)/DEBIAN
+	dpkg-shlibdeps     base64-decode base64-encode qp-decode qp-encode
+	dpkg-gencontrol    -c$(CONTROL_FILE) -p$(package) -isp -P$(TMPTOP)
+	$(create_md5sum)   $(TMPTOP)
+	chown -R root:root $(TMPTOP)
+	chmod -R u+w,go=rX $(TMPTOP)
+	dpkg --build       $(TMPTOP) ..
+	@echo done > $@
+
+
+debian/stamp/binary/vm: testroot
+	$(REASON)
+	$(checkdir)
+	$(TESTROOT)
+	@test -d debian/stamp/binary || mkdir -p debian/stamp/binary
+	$(make_directory)  $(TMPTOP)/DEBIAN
+	$(install_program) debian/postinst       $(TMPTOP)/DEBIAN/postinst
+	$(install_program) debian/prerm          $(TMPTOP)/DEBIAN/prerm
+	$(install_program) debian/postrm         $(TMPTOP)/DEBIAN/postrm
+	dpkg-gencontrol    -c$(CONTROL_FILE) -p$(package) -isp -P$(TMPTOP)
+	$(create_md5sum)   $(TMPTOP)
+	chown -R root:root $(TMPTOP)
+	chmod -R u+w,go=rX $(TMPTOP)
+	dpkg --build       $(TMPTOP) ..
+	@echo done > $@
+
+
+
+#Local variables:
+#mode: makefile
+#End:
--- vm-8.1.0.orig/debian/ChangeLog
+++ vm-8.1.0/debian/ChangeLog
@@ -0,0 +1,11 @@
+2008-04-28  Manoj Srivastava  <srivasta@debian.org>
+
+	* vm-init.el (file-readable-p): Set the pixmap directory _after_
+		  vm-vars is loaded.
+
+2008-03-19  Manoj Srivastava  <srivasta@debian.org>
+
+	* emacsen.install (STAMPFILE):
+	  srivasta@debian.org--lenny/debian-dir--vm--1.0--patch-6  Do not
+		  read from the file we are writing.
+
--- vm-8.1.0.orig/debian/control
+++ vm-8.1.0/debian/control
@@ -0,0 +1,31 @@
+Source: vm
+VCS-Git: git://git.debian.org/~srivasta/debian/vm.git
+VCS-Browser: http://git.debian.org/git/?p=users/srivasta/debian/vm.git
+Section: mail
+Homepage: https://launchpad.net/vm
+Priority: optional
+Maintainer: Manoj Srivastava <srivasta@debian.org>
+Standards-Version: 3.8.3.0
+Build-Depends-Indep: emacs23, texi2html (>= 1.76), texinfo
+
+Package: vm
+Architecture: all
+Priority: optional
+Section: mail
+Depends: ucf (>= 0.08), emacs23 | emacsen, make,
+          dpkg (>= 1.15.4) |  install-info
+Suggests: exim4 | sendmail | mail-transport-agent,  stunnel
+Provides: mail-reader
+Conflicts: semi, wemi, semi1.12, wemi1.12
+Description: A mail user agent for Emacs.
+ VM (View Mail) is an Emacs subsystem that allows UNIX mail to be read
+ and disposed of within Emacs.  Commands exist to do the normal things
+ expected of a mail user agent, such as generating replies, saving
+ messages to folders, deleting messages and so on.  There are other
+ more advanced commands that do tasks like bursting and creating
+ digests, message forwarding, and organizing message presentation
+ according to various criteria.  With smtpmail in modern emacsen, you do
+ not need an MTA locally in order to use VM.
+ .
+ This package does not cater to XEmacs, since vm comes (by default)
+ bundled in with XEmacs.
--- vm-8.1.0.orig/debian/emacsen.install
+++ vm-8.1.0/debian/emacsen.install
@@ -0,0 +1,128 @@
+#!/bin/bash
+#				-*- Mode: Sh -*-
+# emacsen.install ---
+# Author	   : Manoj Srivastava ( srivasta@tiamat.datasync.com )
+# Created On	   : Fri Apr  3 14:39:59 1998
+# Created On Node  : tiamat.datasync.com
+# Last Modified By : Manoj Srivastava
+# Last Modified On : Fri Feb  8 21:55:35 2008
+# Last Machine Used: anzu.internal.golden-gryphon.com
+# Update Count	   : 48
+# Status	   : Unknown, Use with caution!
+# HISTORY	   :
+# Description	   :
+#
+# arch-tag: 8d8ec43a-8bb5-4ecd-bde8-67736b2d04d5
+#
+
+set -e
+
+FLAVOUR=$1
+PACKAGE="=P"
+VERSION="=V"
+
+if [ "X$FLAVOUR" = "X" ]; then
+    echo Need argument to determin FLAVOUR of emacs;
+    exit 1
+fi
+
+if [ "X$PACKAGE" = "X" ]; then
+    echo Internal error: need package name;
+    exit 1;
+fi
+
+if [ "X$VERSION" = "X" ]; then
+    echo Internal error: need package version;
+    exit 1;
+fi
+
+
+
+
+
+ELDIR=/usr/share/emacs/site-lisp/$PACKAGE
+ELCDIR=/usr/share/$FLAVOUR/site-lisp/$PACKAGE
+EFLAGS="-batch -q -l load-path-hack.el -f batch-byte-compile"
+STARTDIR=/etc/$FLAVOUR/site-start.d
+INFO_FILES="/usr/info/vm.info.gz";
+STARTFILE="$PACKAGE-init.el";
+BYTEOPTS="./vm-byteopts.el";
+PRELOADS=" -l $BYTEOPTS -l ./vm-message.el -l ./vm-misc.el -l ./vm-vars.el -l ./vm-version.el";
+BATCHFLAGS=" -batch -q -no-site-file"
+CORE="vm-message.el vm-misc.el vm-byteopts.el"
+STAMPFILE=vm-autoload.elc
+
+case "$FLAVOUR" in
+    emacs22|emacs23|emacs-snapshot|xemacs21)
+	echo -n "install/$PACKAGE: Byte-compiling for $FLAVOUR..."
+        case $FLAVOUR in
+            emacs*)
+                EMACS_FLAVOR=emacs
+                ;;
+            xemacs*)
+                EMACS_FLAVOR=xemacs
+                ;;
+        esac
+
+	if [ -d $ELCDIR ]; then
+            if [ -e "${ELCDIR}/${STAMPFILE}" ]; then
+                echo "${PACKAGE} files already compiled in ${ELCDIR}."
+                exit 0
+            else
+                test ! -d $ELCDIR/pixmaps     || rm -rf $ELCDIR/pixmaps
+                test ! -f $ELCDIR/Makefile.in || rm -rf $ELCDIR/Makefile.in
+                test ! -f $ELCDIR/Makefile    || rm -rf $ELCDIR/Makefile
+	              test ! -d $ELCDIR || rm -f $ELCDIR/*.elc $ELCDIR/*.el $ELCDIR/install.log $ELCDIR/vm-init.el;
+	              test ! -d $ELDIR  || rm -rf $ELCDIR
+            fi
+	fi
+	if [ ! -d $ELCDIR ]; then
+	    install -m 755 -d $ELCDIR
+	fi
+	cd $ELDIR
+	# if we do not have make, well, we are hosed.
+	LOG=`tempfile`;
+	trap "test -f $LOG && mv -f $LOG $ELCDIR/install.log > /dev/null 2>&1" exit
+	if [ -x /usr/bin/make ]; then
+	    make clean                                        > $LOG;
+	    (make prefix=/usr  EMACS=$FLAVOUR EMACS_FLAVOR=$EMACS_FLAVOR) >> $LOG 2>&1 ;
+	    echo "tar cf - . | (cd $ELCDIR; tar xpf -)"      >> $LOG;
+	    tar cf - . | (cd $ELCDIR; tar xpf -)
+            make clean                                       >> $LOG;
+	    echo "cd $ELCDIR;"                               >> $LOG;
+	    cd $ELCDIR;
+	else
+	    echo >&2 "You do not seem to have make."
+	    echo >&2 "This is not good, since I can't byte compile without make"
+	    echo >&2 "I am letting vm remain non-byte compiled, which slows it down."
+	    echo >&2 "Please hit return to continue."
+	    read ans;
+	    echo "You do not seem to have make."         > $LOG;
+	    echo "Not byte compiling."                  >> $LOG;
+	    echo "tar cf - . | (cd $ELCDIR; tar xpf -)" >> $LOG;
+	    tar cf - . | (cd $ELCDIR; tar xpf -)
+            echo "rm -f *.elc *~"                       >> $LOG;
+            rm -f *.elc *~
+	    echo "cd $ELCDIR;"                          >> $LOG;
+	    cd $ELCDIR;
+	fi
+
+	mv $LOG       $ELCDIR/install.log;
+        chmod 644     $ELCDIR/install.log;
+	sed -e "s|=F|/usr/share/$FLAVOUR/site-lisp/$PACKAGE|" \
+            $ELDIR/$STARTFILE > $ELCDIR/$STARTFILE;
+	ucf $ELCDIR/$STARTFILE $STARTDIR/50$STARTFILE;
+
+	echo " done."
+	;;
+    *)
+	echo "install/$PACKAGE: Ignoring emacsen flavor $FLAVOUR."
+	;;
+esac
+
+exit 0
+
+
+### Local Variables:
+### mode: shell-script
+### End:
--- vm-8.1.0.orig/debian/vm-init.el
+++ vm-8.1.0/debian/vm-init.el
@@ -0,0 +1,42 @@
+;-*-emacs-lisp-*-
+; arch-tag: 045640fd-0ff2-45b7-a29f-68e4b8378fbf
+
+(if (file-readable-p (concat "=F" "/vm.elc"))
+    (progn
+
+      (provide 'vm-init)
+      (require 'vm-autoload)
+      ;; Fixes for Debian
+      (if (fboundp 'debian-pkg-add-load-path-item)
+          (setq load-path (debian-pkg-add-load-path-item "=F"))
+        (setq load-path (nconc load-path (list "=F"))))
+      (eval-after-load 'vm-vars
+        '(setq
+          vm-toolbar-pixmap-directory
+          (if (string-match "'--with-gtk'\\|'--with-x-toolkit=gtk'"
+                            system-configuration-options)
+              (concat (vm-pixmap-directory) "/gtk")
+            (vm-pixmap-directory))))
+      (autoload (quote vm-decode-postponed-mime-message) "vm-pine" "\
+Replace the mime buttons by attachment buttons.
+\(fn)" t nil)
+
+      ;; Uncomment these if you have the package mime-codecs installed
+      ;; (setq
+      ;;  vm-mime-qp-decoder-program "qp-decode"
+      ;;  vm-mime-qp-encoder-program "qp-encode"
+      ;;  vm-mime-base64-decoder-program "base64-decode"
+      ;;  vm-mime-base64-encoder-program "base64-encode"
+      ;;  )
+
+      ;; If you have metamail, you would set these instead:
+      ;;     (setq vm-mime-base64-decoder-program "mimencode")
+      ;;     (setq vm-mime-base64-decoder-switches '("-u" "-b" "-p"))
+      ;;     (setq vm-mime-base64-encoder-program "mimencode")
+      ;;     (setq vm-mime-base64-encoder-switches '("-b"))
+      ;;     (setq vm-mime-qp-decoder-program "mimencode")
+      ;;     (setq vm-mime-qp-decoder-switches '("-u" "-q"))
+      ;;     (setq vm-mime-qp-encoder-program "mimencode")
+      ;;     (setq vm-mime-qp-encoder-switches '("-q"))
+      ))
+
--- vm-8.1.0.orig/debian/emacsen.remove
+++ vm-8.1.0/debian/emacsen.remove
@@ -0,0 +1,67 @@
+#! /bin/bash
+#                               -*- Mode: Sh -*-
+# emacsen.remove ---
+# Author           : Manoj Srivastava ( srivasta@tiamat.datasync.com )
+# Created On       : Mon Apr 13 01:38:03 1998
+# Created On Node  : tiamat.datasync.com
+# Last Modified By : Manoj Srivastava
+# Last Modified On : Fri Feb  8 21:46:54 2008
+# Last Machine Used: anzu.internal.golden-gryphon.com
+# Update Count     : 9
+# Status           : Unknown, Use with caution!
+# HISTORY          :
+# Description      :
+#
+# arch-tag: 7b9e5ffb-d1b2-47cb-86ab-0da24d51ed46
+#
+
+
+set -e
+
+FLAVOUR=$1
+PACKAGE="=P"
+VERSION="=V"
+
+if [ "X$FLAVOUR" = "X" ]; then
+    echo Need argument to determin FLAVOUR of emacs;
+    exit 1
+fi
+
+if [ "X$PACKAGE" = "X" ]; then
+    echo Internal error: need package name;
+    exit 1;
+fi
+
+if [ "X$VERSION" = "X" ]; then
+    echo Internal error: need package version;
+    exit 1;
+fi
+
+ELDIR=/usr/share/emacs/site-lisp/$PACKAGE
+ELCDIR=/usr/share/$FLAVOUR/site-lisp/$PACKAGE/
+STARTDIR=/etc/$FLAVOUR/site-start.d
+STARTFILE="$PACKAGE-init.el";
+EFLAGS="-batch -q -l load-path-hack.el -f batch-byte-compile"
+INFO_FILES="/usr/info/vm.info.gz";
+
+
+case $FLAVOUR in
+    emacs22|emacs23|emacs-snapshot|xemacs21)
+        echo -n "remove/$PACKAGE: Removing for $FLAVOUR..."
+        echo -n "$ELCDIR..."
+        test ! -d $ELCDIR || rm -rf $ELCDIR
+        echo -n "$ELDIR..."
+        test ! -f $ELDIR/vm-cus-load.el || rm -rf $ELDIR/vm-cus-load.el
+        echo " done."
+
+	;;
+    *)
+        echo "remove/$PACKAGE: Ignoring emacsen flavor $FLAVOUR."
+	;;
+esac
+
+exit 0
+
+### Local Variables:
+### mode: shell-script
+### End:
--- vm-8.1.0.orig/debian/rules
+++ vm-8.1.0/debian/rules
@@ -0,0 +1,63 @@
+#! /usr/bin/make -f
+############################ -*- Mode: Makefile; coding: utf-8 -*- ###########################
+## rules --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Fri Nov 14 12:33:34 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Tue Nov 18 17:46:22 2003
+## Last Machine Used: glaurung.green-gryphon.com
+## Update Count     : 70
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: 9a5063f4-1e20-4fff-b22a-de94c1e3d954
+## 
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+##
+###############################################################################
+
+# Include dpkg-architecture generated variables
+include debian/common/archvars.mk
+
+# Set variables with information extracted from control and changelog files
+include debian/common/pkgvars.mk
+
+# variables useful for perl packages
+include debian/common/perlvars.mk
+
+# Install commands
+include debian/common/install_cmds.mk
+
+include debian/local-vars.mk
+
+include debian/common/copt.mk
+
+include debian/common/automake.mk
+
+
+
+all:
+	@echo nothing to be done
+
+include debian/common/targets.mk
+
+include debian/local.mk
+
+
+#Local variables:
+#mode: makefile
+#End:
--- vm-8.1.0.orig/debian/common/checklibs
+++ vm-8.1.0/debian/common/checklibs
@@ -0,0 +1,78 @@
+#! /bin/sh 
+#                               -*- Mode: Sh -*- 
+# checklibs.sh --- 
+# Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) 
+# Created On       : Fri Sep 29 15:36:22 2006
+# Created On Node  : glaurung.internal.golden-gryphon.com
+# Last Modified By : Manoj Srivastava
+# Last Modified On : Wed Sep  2 01:16:46 2009
+# Last Machine Used: anzu.internal.golden-gryphon.com
+# Update Count     : 47
+# Status           : Unknown, Use with caution!
+# HISTORY          : 
+# Description      : 
+# 
+# arch-tag: 8ba11489-77fa-45a0-92c4-9c5b162ee119
+# 
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+# 
+
+# Make sure we abort on error
+set -e
+progname="$(basename \"$0\")"
+
+trap 'rm -f search_patterns.txt;' ALRM HUP INT PIPE TERM ABRT FPE BUS QUIT SEGV ILL EXIT
+
+# Find all undefined symbols in all ELF objects in this tree
+readelf -s -D -W $(find . -type f -print0 | xargs -0r  file | grep " ELF" | \
+ awk '{print $1}' | sed -e 's/:$//') | grep UND | grep -v LOCAL |
+  perl -ple 's/.*\s(\S+)\s*$/\^$1\$/g' | sort -u > search_patterns.txt;
+
+LOCAL_LIBS=$(find . -type f -print0  | xargs -0r file | egrep "ELF.*shared object" | \
+    awk '{print $1}' | sed -e 's/:$//' -e 's,/[^/]*$,,')
+
+# Find all the libraries needed in this tree 
+objdump -T --private-headers $(find . -type f -print0  | \
+  xargs -0r file | egrep "ELF.*(shared object|executable)" | \
+  awk '{print $1}' | sed -e 's/:$//') | grep NEEDED | sort -u | awk '{print $2}' | 
+    while read lib; do
+        # For each library, see where it lives on the file system
+        LIB=
+        for library_dir in "/lib" "/usr/lib" $LOCAL_LIBS $EXTRA_LIBRARY_PATHS; do
+            if [ -e "$library_dir/$lib" ]; then
+                 LIB="$library_dir/$lib";
+                 break
+            fi
+        done
+        if [ -z "$LIB" ]; then
+            echo >&2 "Can't find $lib"
+            continue
+        fi
+        # If we fond the library, find what symbols it defines, and if these symbols
+        # are some that we need
+        if readelf -s -D -W $LIB | grep -v UND | perl -ple 's/.*\s(\S+)\s*$/$1/g' | \
+            sort -u | grep -q -f search_patterns.txt ; then
+            # Library provides at least some symbols we need
+            if [ -n "$DEBUG" ]; then echo "Found $LIB"; fi
+        else
+            # Library does not provide any symbols we need
+            echo "$LIB" ;
+        fi
+done
+
+# Get rid of the intermediate file
+rm -f search_patterns.txt;
+exit 0
+
--- vm-8.1.0.orig/debian/common/README
+++ vm-8.1.0/debian/common/README
@@ -0,0 +1,78 @@
+# This file provides a quick overview of this build system. The idea is
+# to convert ./debian/rules into a framework, which abstracts most of
+# the work required to create a Debian package into this common set of
+# make snippets.
+
+# The rules file would look like this:
+
+## Include dpkg-architecture generated variables
+#  This make snippet uses dpkg-architecture to set the various
+#  DEB_BUILD* and DEB_HOST* variables. It also adds a couple of DEBUG
+#  macros for use in the rules file.
+include debian/common/archvars.mk
+
+## variables useful for perl packages
+#  This sets things like the installed location of the private lib,
+#  arch dependent lib, and vendor library directories.
+include debian/common/perlvars.mk
+
+## Install commands
+#  This sets the convenience macros install_{file,script,program} and
+#  a make directory macro, all run as root, for the install and binary
+#  targets. It also includes a macro to create the md5sum for
+#  installed files.
+include debian/common/install_cmds.mk
+
+## Per package variable settings. 
+#  This file sets the Make variables on a per package basis. Things
+#  like include files, C, C++, and LD flags are set here, as well as
+#  installation paths or, really, anything else that would be needed
+#  during packaging operations
+include debian/local-vars.mk
+
+## Setting C compiler flags.
+#  This file takes care of setting C compiler flags, setting the
+#  compiler if a cross compilation effort is detected, and either
+#  arranges for binaries to be stripped or not based on
+#  DEB_BUILD_OPTIONS. 
+include debian/common/copt.mk
+
+## Set automake configuration flags
+#  This file sets confflags variable with the proper --host and
+#  --build options if it detects a cross compilation effort underway. 
+include debian/common/automake.mk
+
+# Set up the default target.
+all:
+        @echo nothing to be done
+
+## Include the common targets
+#  This file sets up the flow of control during a Debian package build
+#  process, taking into account policy requirements (mandatory
+#  targets, ordering targets). It sets up rules for each package found
+#  in ./debian/control file in the package, and arranges package build
+#  to follow the order of configuration, building, installation, and
+#  binary package creation (and of course, clean).
+
+# The details of the targets can be seen visually by running dot on
+# the accompanying targets.dot file. In the figure, the legend is:
+# Nodes attributes:
+#    filled  == Work target (most work is done in dependencies added
+#               to these targets). These are the targets referred to
+#               in the local.mk file
+#    Octagon == Phony target
+#    Oval    == Real target based on a time stamp
+# Double lines denote a mandatory target
+#
+# Edge attributes: A Red line indicates the target is called using
+# $(MAKE) -f ./debian/rules <target>. So the targets connected by the
+# red lines are run after all the dependencies have been updated, but
+# before anything else is done.
+
+include debian/common/targets.mk
+
+## The bulk of packaging
+#  This file adds dependencies to the double-colon rules set up in
+#  targets.mk above, and perform the bulk of the packaging. 
+include debian/local.mk
+
--- vm-8.1.0.orig/debian/common/automake.mk
+++ vm-8.1.0/debian/common/automake.mk
@@ -0,0 +1,37 @@
+############################ -*- Mode: Makefile -*- ###########################
+## automake.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 02:47:23 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Sat Nov 15 02:47:53 2003
+## Last Machine Used: glaurung.green-gryphon.com
+## Update Count     : 1
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: 1fabe69b-7cc8-4ecc-9411-bc5906b19857
+## 
+###############################################################################
+
+AUTOCONF_VERSION:=$(shell if [ -e configure ]; then                       \
+                       grep "Generated automatically using autoconf"      \
+                       configure | sed -e 's/^.*autoconf version //g';    \
+                      fi)
+HAVE_NEW_AUTOMAKE:=$(shell if [ "X$(AUTOCONF_VERSION)" != "X2.13" ]; then \
+                             echo 'YES' ; fi)
+
+ifneq ($(strip $(HAVE_NEW_AUTOMAKE)),)
+  ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+       confflags += --build $(DEB_BUILD_GNU_TYPE) 
+  else
+       confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+  endif
+else
+  ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+       confflags += $(DEB_HOST_GNU_TYPE)
+  else
+       confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+  endif
+endif
--- vm-8.1.0.orig/debian/common/targets.mk
+++ vm-8.1.0/debian/common/targets.mk
@@ -0,0 +1,532 @@
+############################ -*- Mode: Makefile -*- ###########################
+## targets.mk ---
+## Author	    : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com )
+## Created On	    : Sat Nov 15 01:10:05 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Sat Apr 26 22:33:09 2008
+## Last Machine Used: anzu.internal.golden-gryphon.com
+## Update Count	    : 131
+## Status	    : Unknown, Use with caution!
+## HISTORY	    :
+## Description	    : The top level targets mandated by policy, as well as
+##		      their dependencies.
+##
+## arch-tag: a81086a7-00f7-4355-ac56-8f38396935f4
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307	 USA
+##
+###############################################################################
+
+#######################################################################
+#######################################################################
+###############		    Miscellaneous		###############
+#######################################################################
+#######################################################################
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+define TESTROOT
+	@test $$(id -u) = 0 || (echo need root priviledges; exit 1)
+endef
+
+testroot:
+	$(TESTROOT)
+
+checkpo:
+	$(CHECKPO)
+
+# arch-buildpackage likes to call this
+prebuild:
+
+ifneq (,$(shell if [ -f $(DEBIANDIR)/watch ]; then echo yes; fi))
+.PHONY: get-orig-source
+get-orig-source:
+	cd $(DEBIANDIR)/.. &&                                        \
+	  uscan --verbose --rename --destdir $(DEBIANDIR)../.. || true
+endif
+
+# OK. We have two sets of rules here, one for arch dependent packages,
+# and one for arch independent packages. We have already calculated a
+# list of each of these packages.
+
+# In each set, we may need to do things in five steps: configure,
+# build, install, package, and clean. Now, there can be a common
+# actions to be taken for all the packages, all arch dependent
+# packages, all all independent packages, and each package
+# individually at each stage.
+
+###########################################################################
+# The current code does a number of things: It ensures that the highest	  #
+# dependency at any stage (usually the -Common target) depends on the	  #
+# stamp-STAGE of the previous stage; so no work on a succeeding stage can #
+# start before the previous stage is all done.				  #
+###########################################################################
+
+###########################################################################
+# In the following, the do_* targets make sure all the real non-generic   #
+# work is done, but are not in the direct line of dependencies. This      #
+# makes sure that previous step in the order is all up to date before any #
+# of the per package target dependencies are run.		 	  #
+###########################################################################
+
+
+#######################################################################
+#######################################################################
+###############		    Configuration		###############
+#######################################################################
+#######################################################################
+# Just a dummy target to make sure that the stamp directory exists
+debian/stamp/dummy-config-common:
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+# Configuration tasks common to arch and arch indep packages go here
+debian/stamp/pre-config-common: debian/stamp/dummy-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+# Do not add dependencies to this rule
+debian/stamp/do-pre-config-common: debian/stamp/dummy-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/pre-config-common
+	@echo done > $@
+
+# Arch specific and arch independent tasks go here
+debian/stamp/pre-config-arch:	debian/stamp/do-pre-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+# Do not add dependencies to this rule
+debian/stamp/do-pre-config-arch:	debian/stamp/do-pre-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/pre-config-arch
+	@echo done > $@
+
+
+debian/stamp/pre-config-indep: debian/stamp/do-pre-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+# Do not add dependencies to this rule
+debian/stamp/do-pre-config-indep: debian/stamp/do-pre-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/pre-config-indep
+	@echo done > $@
+
+# Per package work happens as an added dependency of this rule.
+$(patsubst %,debian/stamp/CONFIG/%,$(DEB_ARCH_PACKAGES))  : debian/stamp/CONFIG/% : debian/stamp/do-pre-config-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG
+	@echo done > $@
+$(patsubst %,debian/stamp/CONFIG/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/CONFIG/% : debian/stamp/do-pre-config-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG
+	@echo done > $@
+
+# Do not add dependencies to this rule
+debian/stamp/dep-configure-arch: debian/stamp/do-pre-config-arch $(patsubst %,debian/stamp/CONFIG/%,$(DEB_ARCH_PACKAGES)) 
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+# Do not add dependencies to this rule
+debian/stamp/dep-configure-indep: debian/stamp/do-pre-config-indep $(patsubst %,debian/stamp/CONFIG/%,$(DEB_INDEP_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/do-configure-arch: debian/stamp/do-pre-config-arch
+	$(REASON)
+	@test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG
+	$(MAKE) -f debian/rules debian/stamp/dep-configure-arch
+	@echo done > $@
+debian/stamp/do-configure-indep: debian/stamp/do-pre-config-indep
+	$(REASON)
+	@test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG
+	$(MAKE) -f debian/rules debian/stamp/dep-configure-indep
+	@echo done > $@
+
+# These three targets are required by policy
+configure-arch:	 debian/stamp/do-configure-arch
+	$(REASON)
+configure-indep: debian/stamp/do-configure-indep
+	$(REASON)
+configure: debian/stamp/do-configure-arch debian/stamp/do-configure-indep
+	$(REASON)
+
+#######################################################################
+#######################################################################
+###############			Build			###############
+#######################################################################
+#######################################################################
+# tasks common to arch and arch indep packages go here
+debian/stamp/pre-build-common:
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+# Arch specific and arch independent tasks go here
+debian/stamp/pre-build-arch:  debian/stamp/do-configure-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-build-arch:  debian/stamp/do-configure-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/pre-build-common || $(MAKE) -f debian/rules debian/stamp/pre-build-common
+	$(MAKE) -f debian/rules debian/stamp/pre-build-arch
+	@echo done > $@
+
+debian/stamp/pre-build-indep: debian/stamp/do-configure-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-build-indep: debian/stamp/do-configure-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/pre-build-common || $(MAKE) -f debian/rules debian/stamp/pre-build-common
+	$(MAKE) -f debian/rules debian/stamp/pre-build-indep
+	@echo done > $@
+
+# Per package work happens  as an added dependency of this rule.
+$(patsubst %,debian/stamp/BUILD/%,$(DEB_ARCH_PACKAGES))	 : debian/stamp/BUILD/% : debian/stamp/do-pre-build-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/BUILD || mkdir -p debian/stamp/BUILD
+	@echo done > $@
+
+$(patsubst %,debian/stamp/BUILD/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/BUILD/% : debian/stamp/do-pre-build-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/BUILD || mkdir -p debian/stamp/BUILD
+	@echo done > $@
+
+# These do targeta make sure all the per package configuration is
+# done, but is not in the direct line of dependencies. This makes sure
+# that pre-config targets are all up to date before any of the per
+# package target dependencies are run.
+debian/stamp/dep-build-arch: debian/stamp/do-pre-build-arch $(patsubst %,debian/stamp/BUILD/%,$(DEB_ARCH_PACKAGES)) 
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/dep-build-indep: debian/stamp/do-pre-build-indep $(patsubst %,debian/stamp/BUILD/%,$(DEB_INDEP_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/do-build-arch: debian/stamp/do-pre-build-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-build-arch
+	@echo done > $@
+debian/stamp/do-build-indep: debian/stamp/do-pre-build-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-build-indep
+	@echo done > $@
+
+# required
+build-arch: debian/stamp/do-build-arch
+	$(REASON)
+build-indep: debian/stamp/do-build-indep
+	$(REASON)
+build: debian/stamp/do-build-arch debian/stamp/do-build-indep
+	$(REASON)
+
+# Work here
+debian/stamp/post-build-arch: debian/stamp/do-build-arch
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-post-build-arch: debian/stamp/do-build-arch
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/post-build-arch
+	@echo done > $@
+
+debian/stamp/post-build-indep: debian/stamp/do-build-indep
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-post-build-indep: debian/stamp/do-build-indep
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/post-build-indep
+	@echo done > $@
+
+#######################################################################
+#######################################################################
+###############		       Install			###############
+#######################################################################
+#######################################################################
+# tasks common to arch and arch indep packages go here
+debian/stamp/pre-inst-common:
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+# Arch specific and arch independent tasks go here
+debian/stamp/pre-inst-arch:  debian/stamp/do-post-build-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-inst-arch:  debian/stamp/do-post-build-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/INST-common || $(MAKE) -f debian/rules debian/stamp/pre-inst-common
+	$(MAKE) -f debian/rules debian/stamp/pre-inst-arch
+	@echo done > $@
+
+debian/stamp/pre-inst-indep: debian/stamp/do-post-build-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-inst-indep: debian/stamp/do-post-build-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/INST-common || $(MAKE) -f debian/rules debian/stamp/pre-inst-common
+	$(MAKE) -f debian/rules debian/stamp/pre-inst-indep
+	@echo done > $@
+
+
+# Per package work happens as an added dependency of this rule
+$(patsubst %,debian/stamp/INST/%,$(DEB_ARCH_PACKAGES))	: debian/stamp/INST/% : debian/stamp/do-pre-inst-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/INST || mkdir -p debian/stamp/INST
+	@echo done > $@
+$(patsubst %,debian/stamp/INST/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/INST/% : debian/stamp/do-pre-inst-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/INST || mkdir -p debian/stamp/INST
+	@echo done > $@
+
+# These do targeta make sure all the per package configuration is
+# done, but is not in the direct line of dependencies. This makes sure
+# that pre-config targets are all up to date before any of the per
+# package target dependencies are run.
+debian/stamp/dep-install-arch: debian/stamp/do-pre-inst-arch $(patsubst %,debian/stamp/INST/%,$(DEB_ARCH_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/dep-install-indep: debian/stamp/do-pre-inst-indep $(patsubst %,debian/stamp/INST/%,$(DEB_INDEP_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+
+debian/stamp/do-install-arch: debian/stamp/do-pre-inst-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-install-arch
+	@echo done > $@
+debian/stamp/do-install-indep:  debian/stamp/do-pre-inst-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-install-indep
+	@echo done > $@
+
+#required
+install-arch:  debian/stamp/do-install-arch
+	$(REASON)
+	$(TESTROOT)
+install-indep: debian/stamp/do-install-indep
+	$(REASON)
+	$(TESTROOT)
+install: debian/stamp/do-install-arch debian/stamp/do-install-indep
+	$(REASON)
+	$(TESTROOT)
+
+#######################################################################
+#######################################################################
+###############		       Package			###############
+#######################################################################
+#######################################################################
+# tasks common to arch and arch indep packages go here
+debian/stamp/pre-bin-common:
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+# Arch specific and arch independent tasks go here
+debian/stamp/pre-bin-arch:  debian/stamp/do-install-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-bin-arch:  debian/stamp/do-install-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/BIN-common || $(MAKE) -f debian/rules debian/stamp/pre-bin-common
+	$(MAKE) -f debian/rules debian/stamp/pre-bin-arch
+	@echo done > $@
+
+debian/stamp/pre-bin-indep: debian/stamp/do-install-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-bin-indep: debian/stamp/do-install-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/BIN-common || $(MAKE) -f debian/rules debian/stamp/pre-bin-common
+	$(MAKE) -f debian/rules debian/stamp/pre-bin-indep
+	@echo done > $@
+
+# Per package work happens as an added dependency of this rule
+$(patsubst %,debian/stamp/BIN/%,$(DEB_ARCH_PACKAGES))  : debian/stamp/BIN/% : debian/stamp/do-pre-bin-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/BIN || mkdir -p debian/stamp/BIN
+	@echo done > $@
+
+$(patsubst %,debian/stamp/BIN/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/BIN/% : debian/stamp/do-pre-bin-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/BIN || mkdir -p debian/stamp/BIN
+	@echo done > $@
+
+# These do targeta make sure all the per package work is done, but is
+# not in the direct line of dependencies. This makes sure that
+# pre-config targets are all up to date before any of the per package
+# target dependencies are run.
+debian/stamp/dep-binary-arch: debian/stamp/pre-bin-arch $(patsubst %,debian/stamp/BIN/%,$(DEB_ARCH_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/dep-binary-indep: debian/stamp/pre-bin-indep $(patsubst %,debian/stamp/BIN/%,$(DEB_INDEP_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/do-binary-arch:  debian/stamp/do-pre-bin-arch 
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-binary-arch
+	@echo done > $@
+debian/stamp/do-binary-indep: debian/stamp/do-pre-bin-indep 
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-binary-indep
+	@echo done > $@
+# required
+binary-arch:  debian/stamp/do-binary-arch
+	$(REASON)
+	$(TESTROOT)
+binary-indep: debian/stamp/do-binary-indep
+	$(REASON)
+	$(TESTROOT)
+binary: debian/stamp/do-binary-arch debian/stamp/do-binary-indep
+	$(REASON)
+	$(TESTROOT)
+	@echo arch package   = $(DEB_ARCH_PACKAGES)
+	@echo indep packages = $(DEB_INDEP_PACKAGES)
+
+#######################################################################
+#######################################################################
+###############			Clean			###############
+#######################################################################
+#######################################################################
+# Work here
+CLN-common:: 
+	$(REASON)
+	$(checkdir)
+
+# sync Work here
+CLN-arch::  CLN-common
+	$(REASON)
+	$(checkdir)
+CLN-indep:: CLN-common
+	$(REASON)
+	$(checkdir)
+# Work here
+$(patsubst %,CLEAN/%,$(DEB_ARCH_PACKAGES))  :: CLEAN/% : CLN-arch
+	$(REASON)
+	$(checkdir)
+$(patsubst %,CLEAN/%,$(DEB_INDEP_PACKAGES)) :: CLEAN/% : CLN-indep
+	$(REASON)
+	$(checkdir)
+
+clean-arch: CLN-arch $(patsubst %,CLEAN/%,$(DEB_ARCH_PACKAGES))
+	$(REASON)
+clean-indep: CLN-indep $(patsubst %,CLEAN/%,$(DEB_INDEP_PACKAGES))
+	$(REASON)
+clean: clean-indep clean-arch
+	$(REASON)
+	-test -f Makefile && $(MAKE) distclean
+	-rm -f	$(FILES_TO_CLEAN) $(STAMPS_TO_CLEAN)
+	-rm -rf $(DIRS_TO_CLEAN) debian/stamp
+	-rm -f core TAGS						     \
+	       `find . ! -regex '.*/\.git/.*' ! -regex '.*/\{arch\}/.*'	     \
+		       ! -regex '.*/CVS/.*'   ! -regex '.*/\.arch-ids/.*'    \
+		       ! -regex '.*/\.svn/.*'				     \
+		   \( -name '*.orig' -o -name '*.rej' -o -name '*~'	  -o \
+		      -name '*.bak'  -o -name '#*#'   -o -name '.*.orig'  -o \
+		      -name '.*.rej' -o -name '.SUMS' \)		     \
+		-print`
+
+
+#######################################################################
+#######################################################################
+###############						###############
+#######################################################################
+#######################################################################
+.PHONY: configure-arch	configure-indep	 configure     \
+	build-arch	build-indep	 build	       \
+	install-arch	install-indep	 install       \
+	binary-arch	binary-indep	 binary	       \
+	CLN-common     CLN-indep     CLN-arch	  clean-arch	  clean-indep	   clean	 \
+	$(patsubst %,CLEAN/%, $(DEB_INDEP_PACKAGES)) $(patsubst %,CLEAN/%, $(DEB_ARCH_PACKAGES)) \
+	implode explode prebuild checkpo
+
+
+#Local variables:
+#mode: makefile
+#End:
--- vm-8.1.0.orig/debian/common/copt.mk
+++ vm-8.1.0/debian/common/copt.mk
@@ -0,0 +1,44 @@
+############################ -*- Mode: Makefile -*- ###########################
+## copt.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 02:48:40 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Sat Nov 15 02:49:07 2003
+## Last Machine Used: glaurung.green-gryphon.com
+## Update Count     : 1
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: a0045c20-f1b3-4852-9a4b-1a33ebd7c1b8
+## 
+###############################################################################
+
+PREFIX    := /usr
+# set CC to $(DEB_HOST_GNU_TYPE)-gcc only if a cross-build is detected
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+  CC=$(DEB_HOST_GNU_TYPE)-gcc
+else
+  CC = cc
+endif
+
+# Policy 10.1 says to make this the default
+CFLAGS = -Wall -g
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O2
+endif
+
+## ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+## endif
+
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+  STRIP   += -s
+  LDFLAGS += -s
+  INT_INSTALL_TARGET = install 
+else
+  INT_INSTALL_TARGET = install
+endif
--- vm-8.1.0.orig/debian/common/perlvars.mk
+++ vm-8.1.0/debian/common/perlvars.mk
@@ -0,0 +1,27 @@
+############################ -*- Mode: Makefile -*- ###########################
+## perlvars.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 02:55:47 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Sat Dec 13 13:50:58 2003
+## Last Machine Used: glaurung.green-gryphon.com
+## Update Count     : 3
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: a97a01ba-d08d-404d-aa81-572717c03e6c
+## 
+###############################################################################
+
+# Perl variables
+PERL = /usr/bin/perl
+
+INSTALLPRIVLIB  = $(TMPTOP)/$(shell \
+                 perl -e 'use Config; print "$$Config{'installprivlib'}\n";')
+INSTALLARCHLIB  = $(TMPTOP)/$(shell \
+                 perl -e 'use Config; print "$$Config{'installarchlib'}\n";')
+INSTALLVENDORLIB =$(TMPTOP)/$(shell \
+                 perl -e 'use Config; print "$$Config{'vendorlibexp'}\n";')
+CONFIG           = INSTALLDIRS=vendor 
--- vm-8.1.0.orig/debian/common/debconf.mk
+++ vm-8.1.0/debian/common/debconf.mk
@@ -0,0 +1,42 @@
+############################ -*- Mode: Makefile -*- ###########################
+## debconf.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) 
+## Created On       : Fri Mar 12 11:11:31 2004
+## Created On Node  : glaurung.internal.golden-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Mon Apr 11 13:19:10 2005
+## Last Machine Used: glaurung.internal.golden-gryphon.com
+## Update Count     : 20
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : helps with using debconf
+## 
+## arch-tag: 32b933a9-05ad-4c03-97a8-8644745b832a
+##
+###############################################################################
+
+# The idea behind this scheme is that the maintainer (or whoever's
+# building the package for upload to unstable) has to build on a
+# machine with po-debconf installed, but nobody else does.
+
+# Also, make sure that debian/control has ${debconf-depends} in the
+# appropriate Depends: line., and use the following in the binary
+# target:
+#  dpkg-gencontrol -V'debconf-depends=debconf (>= $(MINDEBCONFVER))'
+#
+
+# WARNING!! You need to create the debian/templates file before this
+# all works.
+
+# Run debconf-updatepo whenever the template file changes.
+# the tool podebconf-report-po is also a great friend to have in such
+# circumstances 
+define CHECKPO
+	@for i in debian/po/*.po; do                         \
+	  if [ -f $$i ]; then                        \
+	    echo \"Checking: $$i\";                  \
+	    msgmerge -U $$i debian/po/templates.pot;        \
+	    msgfmt -o /dev/null -c --statistics $$i; \
+	  fi;                                        \
+	done
+endef
--- vm-8.1.0.orig/debian/common/install_cmds.mk
+++ vm-8.1.0/debian/common/install_cmds.mk
@@ -0,0 +1,58 @@
+######################### -*- Mode: Makefile-Gmake -*- ########################
+## install_cmds.mk ---
+## Author           : Manoj Srivastava ( srivasta@golden-gryphon.com )
+## Created On       : Fri Jun 16 14:40:20 2006
+## Created On Node  : glaurung.internal.golden-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Wed Sep  6 11:43:05 2006
+## Last Machine Used: glaurung.internal.golden-gryphon.com
+## Update Count     : 9
+## Status           : Unknown, Use with caution!
+## HISTORY          :
+## Description      :
+##
+## arch-tag: a38b6a93-2539-4034-9060-ae94d5c8a071
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+##
+###############################################################################
+
+# install commands
+INSTALL = install
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+    INSTALL_PROGRAM += -s
+endif
+install_file    = $(INSTALL) -p    -o root -g root  -m  644
+install_program = $(INSTALL) -p    -o root -g root  -m  755
+install_script  = $(INSTALL) -p    -o root -g root  -m  755
+make_directory  = $(INSTALL) -p -d -o root -g root  -m  755
+
+define create_md5sum
+    create_md5sums_fn () {                                         \
+        cd $$1 ;                                                   \
+       find . -type f                                              \
+              ! -regex './DEBIAN/.*'                               \
+              ! -regex './var/.*'     $(EXTRA_MD5SUM_EXCLUDE)      \
+              -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums ; \
+       if [ -z "DEBIAN/md5sums" ] ; then                           \
+           rm -f "DEBIAN/md5sums" ;                                \
+       fi ;                                                        \
+    } ;                                                            \
+    create_md5sums_fn
+endef
+
+#Local variables:
+#mode: makefile
+#End:
--- vm-8.1.0.orig/debian/common/archvars.mk
+++ vm-8.1.0/debian/common/archvars.mk
@@ -0,0 +1,118 @@
+############################ -*- Mode: Makefile -*- ###########################
+## archvars.mk --- 
+## Author           : Manoj Srivastava ( srivasta@golden-gryphon.com ) 
+## Created On       : Sat Nov 15 02:40:56 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Tue Nov 16 23:36:15 2004
+## Last Machine Used: glaurung.internal.golden-gryphon.com
+## Update Count     : 5
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : calls dpkg-architecture and sets up various arch
+##                    related variables
+## 
+## arch-tag: e16dd848-0fd6-4c0e-ae66-bef20d1f7c63
+## 
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+##
+###############################################################################
+
+
+DPKG_ARCH := dpkg-architecture
+
+ifeq ($(strip $(KPKG_ARCH)),um)
+  MAKING_VIRTUAL_IMAGE:=YES
+endif
+ifeq ($(strip $(KPKG_ARCH)),xen)
+  MAKING_VIRTUAL_IMAGE:=YES
+endif
+
+ifneq ($(strip $(CONFIG_UM)),)
+  MAKING_VIRTUAL_IMAGE:=YES
+  KPKG_ARCH=um
+endif
+
+ifneq ($(strip $(CONFIG_XEN)),)
+  MAKING_VIRTUAL_IMAGE:=YES
+  ifneq ($(strip $(CONFIG_X86_XEN)$(CONFIG_X86_64_XEN)),)
+    KPKG_SUBARCH=xen
+  else
+    KPKG_ARCH=xen
+    ifeq ($(strip $(CONFIG_XEN_PRIVILEGED_GUEST)),)
+      KPKG_SUBARCH=xenu
+    else
+      KPKG_SUBARCH=xen0
+    endif
+  endif
+endif
+
+ifdef KPKG_ARCH
+  ifeq ($(strip $(MAKING_VIRTUAL_IMAGE)),)
+    ifneq ($(CROSS_COMPILE),-)
+      ha:=-a$(KPKG_ARCH)
+    endif
+  endif
+endif
+
+# set the dpkg-architecture vars
+export DEB_BUILD_ARCH      := $(shell $(DPKG_ARCH)       -qDEB_BUILD_ARCH)
+export DEB_BUILD_GNU_CPU   := $(shell $(DPKG_ARCH)       -qDEB_BUILD_GNU_CPU)
+export DEB_BUILD_GNU_SYSTEM:= $(shell $(DPKG_ARCH)       -qDEB_BUILD_GNU_SYSTEM)
+export DEB_BUILD_GNU_TYPE  := $(shell $(DPKG_ARCH)       -qDEB_BUILD_GNU_TYPE)
+export DEB_HOST_ARCH       := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH)
+export DEB_HOST_ARCH_OS    := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH_OS      \
+                                2>/dev/null|| true)
+export DEB_HOST_ARCH_CPU   := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH_CPU     \
+                                2>/dev/null|| true)
+export DEB_HOST_GNU_CPU    := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_CPU)
+export DEB_HOST_GNU_SYSTEM := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_SYSTEM)
+export DEB_HOST_GNU_TYPE   := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_TYPE)
+
+# arrgh. future proofing
+ifeq ($(DEB_HOST_GNU_SYSTEM), linux)
+  DEB_HOST_GNU_SYSTEM=linux-gnu
+endif
+ifeq ($(DEB_HOST_ARCH_OS),)
+  ifeq ($(DEB_HOST_GNU_SYSTEM), linux-gnu)
+    DEB_HOST_ARCH_OS := linux
+  endif
+  ifeq ($(DEB_HOST_GNU_SYSTEM), kfreebsd-gnu)
+    DEB_HOST_ARCH_OS := kfreebsd
+  endif
+endif
+
+REASON = @if [ -f $@ ]; then \
+ echo "====== making $(notdir $@) because of $(notdir $?) ======";\
+ else \
+   echo "====== making target $@ [new prereqs: $(notdir $?)]======"; \
+ fi
+
+OLDREASON = @if [ -f $@ ]; then \
+ echo "====== making $(notdir $@) because of $(notdir $?) ======";\
+ else \
+   echo "====== making (creating) $(notdir $@) ======"; \
+ fi
+
+LIBREASON = @echo "====== making $(notdir $@)($(notdir $%))because of $(notdir $?)======"
+
+
+# macro outputing $(1) if DEBUG_DEBIAN_RULES is set, and resolving it
+# in all cases usage $(call doit,some shell command)
+doit = $(if $(DEBUG_DEBIAN_RULES),$(warning DEBUG: $(1)))$(shell $(1))
+
+#Local variables:
+#mode: makefile
+#End:
--- vm-8.1.0.orig/debian/common/ChangeLog
+++ vm-8.1.0/debian/common/ChangeLog
@@ -0,0 +1,59 @@
+2008-02-06  Manoj Srivastava  <srivasta@debian.org>
+
+	* copt.mk:
+		  srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--patch-4
+		  The cross building support in Debian has been rewritten
+		  to stop overriding the CC  variable to $(MAKE) in order
+		  to correctly support those packages that build internal
+		  tools with the native compiler during the build. This
+		  means that other packages that assume that CC will be
+		  overridden by the cross-compiling build scripts now fail
+		  to build. The patch is simply to set CC to
+		  $(DEB_HOST_GNU_TYPE)-gcc only if a cross-build is
+		  detected.
+
+2007-10-09  Manoj Srivastava  <srivasta@debian.org>
+
+	* targets.mk:
+		  srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--patch-1
+		  fix dependency tree for targets, allow  parralel
+		  compilatoin.  Many changes, thanks to dot.
+
+2007-09-20  Manoj Srivastava  <srivasta@debian.org>
+
+	* targets.mk (stamp-clean):
+		  srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--base-0
+		  make clean not remove zero sized files. removed the part
+		  that cleaned out zero sized files; since there are uses
+		  for zero sized files (like, to nuke out files in
+		  upstream sources and not inflate the diff. Any zero
+		  sized files can still be nuked in the local.mk file.
+
+2006-10-02  Manoj Srivastava  <srivasta@debian.org>
+
+	* checklibs:
+		  srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-15
+		  New file, to detect if there are unneeded library
+		  dependencies
+
+2006-10-01  Manoj Srivastava  <srivasta@debian.org>
+
+	* archvars.mk (doit):
+		  srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-14
+		  Add a macro to execute $(shell ...) macos verbosely to
+		  help debugging.
+
+2006-09-15  Manoj Srivastava  <srivasta@debian.org>
+
+	* targets.mk (stamp-clean):
+		  srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-13
+		  Exclude version control directories from the generic
+		  clean command.
+
+
+2006-08-23  Manoj Srivastava  <srivasta@debian.org>
+
+	* pkgvars.mk (DEB_DISTRIBUTION):
+		  srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-6
+		  Add variable that contains the distribution information 
+
--- vm-8.1.0.orig/debian/common/get_shlib_ver
+++ vm-8.1.0/debian/common/get_shlib_ver
@@ -0,0 +1,40 @@
+#! /bin/sh 
+#                               -*- Mode: Sh -*- 
+# get_shlib_ver --- 
+# Author           : Manoj Srivastava ( srivasta@golden-gryphon.com ) 
+# Created On       : Tue Sep  1 15:27:07 2009
+# Created On Node  : anzu.internal.golden-gryphon.com
+# Last Modified By : Manoj Srivastava
+# Status           : Unknown, Use with caution!
+# HISTORY          : 
+# Description      : 
+# If there is a symbols file preent, get the most recent version a
+# symbol was added in.
+# 
+
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+# 
+
+# Make sure we abort on error
+set -e
+progname="$(basename \"$0\")"
+
+test ! -d debian || \
+  find debian -wholename 'debian/*\.symbols' | while read lib; do
+    echo -n "Shlib info for" ${lib%%.symbols} ": ";
+    sort -n -k 2,2b $lib  | grep '^ ' | tail -n 1 | awk '{print $2;}';
+done
+
--- vm-8.1.0.orig/debian/common/targets.dot
+++ vm-8.1.0/debian/common/targets.dot
@@ -0,0 +1,293 @@
+strict digraph Targets {
+  //ranksep=0.750;
+  //nodesep=0.500;
+
+ // Nodes attributes: filled  == Double-colon targt (most work is done here)
+ //                   Oval    == Target based on a time stamp
+ //                   Octagon == Phony target
+ // Double lines denote a mandatory target (periperies=2)
+
+ // Edge attributes: Dotted line indicates the target is called using $(MAKE)
+
+ "debian/stamp/dummy-config-common"  [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-config-common"    [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-config-common" [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-config-arch"      [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-config-arch"   [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-config-indep"     [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-config-indep"  [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/CONFIG/foo-arch"      [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/CONFIG/bar-indep"     [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-configure-arch"   [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-configure-indep"  [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-configure-arch"    [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-configure-indep"   [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "configure-arch"                    [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "configure-indep"                   [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "configure"                         [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+
+ "debian/stamp/pre-build-common"    [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-build-arch"      [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-build-arch"   [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-build-indep"     [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-build-indep"  [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/BUILD/foo-arch"      [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/BUILD/bar-indep"     [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-build-arch"      [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-build-indep"     [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-build-arch"       [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-build-indep"      [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "build-arch"                       [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+ "build-indep"                      [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+ "build"                            [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+ "debian/stamp/post-build-arch"     [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/post-build-indep"    [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-post-build-arch"  [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-post-build-indep" [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+
+ "debian/stamp/pre-inst-common"    [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-inst-arch"      [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-inst-arch"   [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-inst-indep"     [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-inst-indep"  [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/INST/foo-arch"      [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/INST/bar-indep"     [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-install-arch"   [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-install-indep"  [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-install-arch"    [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-install-indep"   [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "install-arch"                    [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "install-indep"                   [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "install"                         [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+
+ "debian/stamp/pre-bin-common"    [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-bin-arch"      [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-bin-arch"   [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-bin-indep"     [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-bin-indep"  [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/BIN/foo-arch"      [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/BIN/bar-indep"     [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-binary-arch"   [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-binary-indep"  [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-binary-arch"    [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-binary-indep"   [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "binary-arch"                    [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+ "binary-indep"                   [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+ "binary"                         [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+
+
+ "CLN-common"             [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "CLN-arch"               [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "CLN-indep"              [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "CLEAN/foo-arch"         [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "CLEAN/bar-indep"        [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "clean-arch"             [ style="bold",    color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "clean-indep"            [ style="bold",    color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "clean"                  [ style="bold",    color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+
+
+ "CLN-common" ->       "CLN-arch"        [dir=back]
+ "CLN-common" ->       "CLN-indep"       [dir=back]
+ "CLN-arch" ->         "CLEAN/foo-arch"  [dir=back]
+ "CLN-indep" ->        "CLEAN/bar-indep" [dir=back]
+ "CLN-arch" ->         "clean-arch"      [dir=back]
+ "CLEAN/foo-arch" ->   "clean-arch"      [dir=back]
+ "CLN-indep" ->        "clean-indep"     [dir=back]
+ "CLEAN/bar-indep" ->  "clean-indep"     [dir=back]
+ "clean-indep" ->      "clean"     [dir=back]
+ "clean-arch" ->       "clean"     [dir=back]
+
+// "debian/stamp/dummy-config-common"  -> "debian/stamp/pre-config-common"     [dir=back]
+ "debian/stamp/dummy-config-common"    -> "debian/stamp/do-pre-config-common"  [dir=back]
+ "debian/stamp/pre-config-common"      -> "debian/stamp/do-pre-config-common"  [dir=back color="Red"]
+// "CUSTOM-1"                             [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-1"                          -> "debian/stamp/pre-config-common"     [dir=back]
+// "debian/stamp/do-pre-config-common" -> "debian/stamp/pre-config-arch"       [dir=back]
+ "debian/stamp/do-pre-config-common"   -> "debian/stamp/do-pre-config-arch"    [dir=back]
+ "debian/stamp/pre-config-arch"        -> "debian/stamp/do-pre-config-arch"    [dir=back color="Red"]
+// "CUSTOM-2"                              [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-2"                          -> "debian/stamp/pre-config-arch"       [dir=back]
+// "debian/stamp/do-pre-config-common" -> "debian/stamp/pre-config-indep"      [dir=back]
+ "debian/stamp/do-pre-config-common"   -> "debian/stamp/do-pre-config-indep"   [dir=back]
+ "debian/stamp/pre-config-indep"       -> "debian/stamp/do-pre-config-indep"   [dir=back color="Red"]
+// "CUSTOM-3"                              [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-3"                          -> "debian/stamp/pre-config-indep"      [dir=back]
+// "debian/stamp/do-pre-config-arch"   -> "debian/stamp/CONFIG/foo-arch"       [dir=back]
+// "debian/stamp/do-pre-config-indep"  -> "debian/stamp/CONFIG/bar-indep"      [dir=back]
+// "debian/stamp/do-pre-config-arch"   -> "debian/stamp/dep-configure-arch"    [dir=back]
+ "debian/stamp/CONFIG/foo-arch"        -> "debian/stamp/dep-configure-arch"    [dir=back]
+// "debian/stamp/do-pre-config-indep"  -> "debian/stamp/dep-configure-indep"   [dir=back]
+ "debian/stamp/CONFIG/bar-indep"       -> "debian/stamp/dep-configure-indep"   [dir=back]
+
+ "debian/stamp/do-pre-config-arch"     -> "debian/stamp/do-configure-arch"     [dir=back]
+ "debian/stamp/dep-configure-arch"     -> "debian/stamp/do-configure-arch"     [dir=back color="Red"]
+// "CUSTOM-4"                              [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-4"                          -> "debian/stamp/CONFIG/foo-arch"       [dir=back]
+ "debian/stamp/do-pre-config-indep"    -> "debian/stamp/do-configure-indep"    [dir=back]
+ "debian/stamp/dep-configure-indep"    -> "debian/stamp/do-configure-indep"    [dir=back color="Red"]
+// "CUSTOM-5"                              [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-5"                          -> "debian/stamp/CONFIG/bar-indep"      [dir=back]
+ "debian/stamp/do-configure-arch"      -> "configure-arch"                     [dir=back]
+ "debian/stamp/do-configure-indep"     -> "configure-indep"                    [dir=back]
+ "debian/stamp/do-configure-arch"      -> "configure"                          [dir=back]
+ "debian/stamp/do-configure-indep"     -> "configure"                          [dir=back]
+
+// "debian/stamp/do-configure-arch"    -> "debian/stamp/pre-build-arch"        [dir=back]
+ "debian/stamp/do-configure-arch"      -> "debian/stamp/do-pre-build-arch"     [dir=back]
+ "debian/stamp/pre-build-common"       -> "debian/stamp/do-pre-build-arch"     [dir=back color="Red"]
+// "CUSTOM-6"                             [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-6"                          -> "debian/stamp/pre-build-common"      [dir=back]
+ "debian/stamp/pre-build-arch"         -> "debian/stamp/do-pre-build-arch"     [dir=back color="Red"]
+// "CUSTOM-7"                             [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-7"                          -> "debian/stamp/pre-build-arch"        [dir=back]
+ "debian/stamp/pre-build-common"       -> "debian/stamp/do-pre-build-indep"    [dir=back color="Red"]
+ "debian/stamp/do-configure-indep"     -> "debian/stamp/do-pre-build-indep"    [dir=back]
+// "debian/stamp/do-configure-indep"   -> "debian/stamp/pre-build-indep"       [dir=back]
+ "debian/stamp/pre-build-indep"        -> "debian/stamp/do-pre-build-indep"    [dir=back color="Red"]
+// "CUSTOM-8"                           [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-8"                          -> "debian/stamp/pre-build-indep"         [dir=back]
+// "debian/stamp/do-pre-build-arch"    -> "debian/stamp/BUILD/foo-arch"      [dir=back]
+// "debian/stamp/do-pre-build-indep"   -> "debian/stamp/BUILD/bar-indep"     [dir=back]
+// "debian/stamp/do-pre-build-arch"    -> "debian/stamp/dep-build-arch"      [dir=back]
+ "debian/stamp/BUILD/foo-arch"         -> "debian/stamp/dep-build-arch"      [dir=back]
+// "debian/stamp/do-pre-build-indep"   -> "debian/stamp/dep-build-indep"     [dir=back]
+ "debian/stamp/BUILD/bar-indep"        -> "debian/stamp/dep-build-indep"     [dir=back]
+ "debian/stamp/do-pre-build-arch"      -> "debian/stamp/do-build-arch"       [dir=back]
+ "debian/stamp/dep-build-arch"         -> "debian/stamp/do-build-arch"       [dir=back color="Red"]
+// "CUSTOM-9"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-9"                          -> "debian/stamp/BUILD/foo-arch"      [dir=back]
+ "debian/stamp/do-pre-build-indep"     -> "debian/stamp/do-build-indep"      [dir=back]
+ "debian/stamp/dep-build-indep"        -> "debian/stamp/do-build-indep"      [dir=back color="Red"]
+// "CUSTOM-10"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-10"                         -> "debian/stamp/BUILD/bar-indep"     [dir=back]
+ "debian/stamp/do-build-arch"          -> "build-arch"                       [dir=back]
+ "debian/stamp/do-build-indep"         -> "build-indep"                      [dir=back]
+ "debian/stamp/do-build-arch"          -> "build"                            [dir=back]
+ "debian/stamp/do-build-indep"         -> "build"                            [dir=back]
+// "debian/stamp/do-build-arch"        -> "debian/stamp/post-build-arch"     [dir=back]
+ "debian/stamp/do-build-arch"          -> "debian/stamp/do-post-build-arch"  [dir=back]
+ "debian/stamp/do-build-indep"         -> "debian/stamp/do-post-build-indep" [dir=back]
+ "debian/stamp/post-build-arch"        -> "debian/stamp/do-post-build-arch"  [dir=back color="Red"]
+// "CUSTOM-11"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-11"                         -> "debian/stamp/post-build-arch"     [dir=back]
+ "debian/stamp/post-build-indep"       -> "debian/stamp/do-post-build-indep" [dir=back color="Red"]
+// "CUSTOM-12"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-12"                         -> "debian/stamp/post-build-indep"    [dir=back]
+// "debian/stamp/do-post-build-arch"   -> "debian/stamp/pre-inst-arch"       [dir=back]
+ "debian/stamp/pre-inst-common"        -> "debian/stamp/do-pre-inst-arch"    [dir=back color="Red"]
+// "CUSTOM-13"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-13"                         -> "debian/stamp/pre-inst-common"     [dir=back]
+ "debian/stamp/do-post-build-arch"     -> "debian/stamp/do-pre-inst-arch"    [dir=back]
+ "debian/stamp/pre-inst-arch"          -> "debian/stamp/do-pre-inst-arch"    [dir=back color="Red"]
+// "CUSTOM-14"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-14"                         -> "debian/stamp/pre-inst-arch"       [dir=back]
+// "debian/stamp/do-post-build-indep"  -> "debian/stamp/pre-inst-indep"      [dir=back]
+ "debian/stamp/pre-inst-common"        -> "debian/stamp/do-pre-inst-indep"   [dir=back color="Red"]
+ "debian/stamp/do-post-build-indep"    -> "debian/stamp/do-pre-inst-indep"   [dir=back]
+ "debian/stamp/pre-inst-indep"         -> "debian/stamp/do-pre-inst-indep"   [dir=back color="Red"]
+// "CUSTOM-15"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-15"                         -> "debian/stamp/pre-inst-indep"      [dir=back]
+// "debian/stamp/do-pre-inst-arch"     -> "debian/stamp/INST/foo-arch"       [dir=back]
+// "debian/stamp/do-pre-inst-indep"    -> "debian/stamp/INST/bar-indep"      [dir=back]
+// "debian/stamp/do-pre-inst-arch"     -> "debian/stamp/dep-install-arch"    [dir=back]
+ "debian/stamp/INST/foo-arch"          -> "debian/stamp/dep-install-arch"    [dir=back]
+// "debian/stamp/do-pre-inst-indep"    -> "debian/stamp/dep-install-indep"   [dir=back]
+ "debian/stamp/INST/bar-indep"         -> "debian/stamp/dep-install-indep"   [dir=back]
+ "debian/stamp/do-pre-inst-arch"       -> "debian/stamp/do-install-arch"     [dir=back]
+ "debian/stamp/dep-install-arch"       -> "debian/stamp/do-install-arch"     [dir=back color="Red"]
+// "CUSTOM-16"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-16"                         -> "debian/stamp/INST/foo-arch"       [dir=back]
+ "debian/stamp/do-pre-inst-indep"      -> "debian/stamp/do-install-indep"    [dir=back]
+ "debian/stamp/dep-install-indep"      -> "debian/stamp/do-install-indep"    [dir=back color="Red"]
+// "CUSTOM-17"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-17"                         -> "debian/stamp/INST/bar-indep"      [dir=back]
+ "debian/stamp/do-install-arch"        -> "install-arch"                     [dir=back]
+ "debian/stamp/do-install-indep"       -> "install-indep"                    [dir=back]
+ "debian/stamp/do-install-arch"        -> "install"                          [dir=back]
+ "debian/stamp/do-install-indep"       -> "install"                          [dir=back]
+// "debian/stamp/do-install-arch"      -> "debian/stamp/pre-bin-arch"        [dir=back]
+ "debian/stamp/do-install-arch"        -> "debian/stamp/do-pre-bin-arch"     [dir=back]
+ "debian/stamp/pre-bin-common"         -> "debian/stamp/do-pre-bin-arch"     [dir=back color="Red"]
+// "CUSTOM-18"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-18"                         -> "debian/stamp/pre-bin-common"      [dir=back]
+ "debian/stamp/pre-bin-arch"           -> "debian/stamp/do-pre-bin-arch"     [dir=back color="Red"]
+// "CUSTOM-19"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-19"                         -> "debian/stamp/pre-bin-arch"        [dir=back]
+// "debian/stamp/do-install-indep"     -> "debian/stamp/pre-bin-indep"       [dir=back]
+ "debian/stamp/pre-bin-common"         -> "debian/stamp/do-pre-bin-indep"    [dir=back color="Red"]
+ "debian/stamp/do-install-indep"       -> "debian/stamp/do-pre-bin-indep"    [dir=back]
+ "debian/stamp/pre-bin-indep"          -> "debian/stamp/do-pre-bin-indep"    [dir=back color="Red"]
+// "CUSTOM-20"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-20"                         -> "debian/stamp/pre-bin-indep"       [dir=back]
+// "debian/stamp/do-pre-bin-arch"      -> "debian/stamp/BIN/foo-arch"        [dir=back]
+// "debian/stamp/do-pre-bin-indep"     -> "debian/stamp/BIN/bar-indep"       [dir=back]
+// "debian/stamp/pre-bin-arch"         -> "debian/stamp/dep-binary-arch"     [dir=back]
+ "debian/stamp/BIN/foo-arch"           -> "debian/stamp/dep-binary-arch"     [dir=back]
+// "debian/stamp/do-pre-bin-indep"     -> "debian/stamp/dep-binary-indep"    [dir=back]
+ "debian/stamp/BIN/bar-indep"          -> "debian/stamp/dep-binary-indep"    [dir=back]
+ "debian/stamp/do-pre-bin-arch"        -> "debian/stamp/do-binary-arch"      [dir=back]
+ "debian/stamp/dep-binary-arch"        -> "debian/stamp/do-binary-arch"      [dir=back color="Red"]
+// "CUSTOM-21"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-21"                         -> "debian/stamp/BIN/foo-arch"        [dir=back]
+ "debian/stamp/do-pre-bin-indep"       -> "debian/stamp/do-binary-indep"     [dir=back]
+ "debian/stamp/dep-binary-indep"       -> "debian/stamp/do-binary-indep"     [dir=back color="Red"]
+// "CUSTOM-22"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-22"                         -> "debian/stamp/BIN/bar-indep"       [dir=back]
+ "debian/stamp/do-binary-arch"         -> "binary-arch"                      [dir=back]
+ "debian/stamp/do-binary-indep"        -> "binary-indep"                     [dir=back]
+ "debian/stamp/do-binary-arch"         -> "binary"                           [dir=back]
+ "debian/stamp/do-binary-indep"        -> "binary"                           [dir=back]
+
+
+ "debian/stamp/dummy-config-common" -> "debian/stamp/pre-config-common"  [style="invis"]
+ "debian/stamp/do-pre-config-common"   -> "debian/stamp/pre-config-arch"  [style="invis"]
+ "debian/stamp/do-pre-config-common"   -> "debian/stamp/pre-config-indep"  [style="invis"]
+ "debian/stamp/do-pre-config-arch" -> "debian/stamp/CONFIG/foo-arch"  [style="invis"]
+ "debian/stamp/do-pre-config-indep" -> "debian/stamp/CONFIG/bar-indep"  [style="invis"]
+
+ "debian/stamp/dep-configure-arch"  -> "configure" [style="invis"]
+ "debian/stamp/dep-configure-indep"  -> "configure" [style="invis"]
+ "debian/stamp/dep-configure-arch"  -> "configure-arch" [style="invis"]
+ "debian/stamp/dep-configure-indep"  -> "configure-arch" [style="invis"]
+ "debian/stamp/dep-configure-arch"  -> "configure-indep" [style="invis"]
+ "debian/stamp/dep-configure-indep"  -> "configure-indep" [style="invis"]
+ "configure-arch"  -> "configure" [style="invis"]
+ "configure-indep"  -> "configure" [style="invis"]
+ "configure" ->  "debian/stamp/pre-build-common"  [style="invis"]
+
+
+ "debian/stamp/pre-build-common"   -> "debian/stamp/pre-build-indep"         [style="invis"]
+ "debian/stamp/pre-build-common"    -> "debian/stamp/pre-build-arch"         [style="invis"]
+
+ "debian/stamp/do-pre-build-arch"    -> "debian/stamp/BUILD/foo-arch"         [style="invis"]
+ "debian/stamp/do-pre-build-indep"    -> "debian/stamp/BUILD/bar-indep"         [style="invis"]
+ "debian/stamp/do-build-arch"    -> "debian/stamp/post-build-arch"         [style="invis"]
+ "debian/stamp/do-build-indep"    -> "debian/stamp/post-build-indep"         [style="invis"]
+ "debian/stamp/do-post-build-arch"    -> "build-arch"         [style="invis"]
+ "debian/stamp/do-post-build-arch"    -> "build"         [style="invis"]
+ "debian/stamp/do-post-build-indep"    -> "build-indep"         [style="invis"]
+ "debian/stamp/do-post-build-indep"    -> "build"         [style="invis"]
+ "build-arch"                               -> "build"  [style="invis"]
+ "build-indep"                               -> "build"  [style="invis"]
+
+ "build"                               -> "debian/stamp/pre-inst-common"  [style="invis"]
+
+ "debian/stamp/pre-inst-common"   -> "debian/stamp/pre-inst-indep"         [style="invis"]
+ "debian/stamp/pre-inst-common"    -> "debian/stamp/pre-inst-arch"         [style="invis"]
+ "debian/stamp/do-pre-inst-arch"    -> "debian/stamp/INST/foo-arch"         [style="invis"]
+ "debian/stamp/do-pre-inst-indep"    -> "debian/stamp/INST/bar-indep"         [style="invis"]
+
+ "install-arch"                               -> "install"  [style="invis"]
+ "install-indep"                               -> "install"  [style="invis"]
+
+ "debian/stamp/pre-bin-common"         -> "debian/stamp/pre-bin-indep"         [style="invis"]
+ "debian/stamp/pre-bin-common"         -> "debian/stamp/pre-bin-arch"         [style="invis"]
+
+  "install"                               -> "debian/stamp/pre-bin-common"  [style="invis"]
+ "debian/stamp/do-pre-bin-arch"    -> "debian/stamp/BIN/foo-arch"         [style="invis"]
+ "debian/stamp/do-pre-bin-indep"    -> "debian/stamp/BIN/bar-indep"         [style="invis"]
+
+ "binary-arch"                               -> "binary"  [style="invis"]
+ "binary-indep"                               -> "binary"  [style="invis"]
+
+}
--- vm-8.1.0.orig/debian/common/pkgvars.mk
+++ vm-8.1.0/debian/common/pkgvars.mk
@@ -0,0 +1,168 @@
+############################ -*- Mode: Makefile -*- ###########################
+## pkgvars.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 02:56:30 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Thu Jun 15 12:05:46 2006
+## Last Machine Used: glaurung.internal.golden-gryphon.com
+## Update Count     : 11
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : This is what allows us toseparate out the top level
+##                    targets, by determining which packages needto be built.
+## 
+## arch-tag: 75fcc720-7389-4eaa-a7ac-c556d3eac331
+## 
+## 
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+##
+###############################################################################
+
+# The maintainer information.
+maintainer := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Maintainer: | \
+                sed 's/^Maintainer: *//')
+email := srivasta@debian.org
+
+# Priority of this version (or urgency, as dchanges would call it)
+urgency := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Urgency: | \
+             sed 's/^Urgency: *//')
+
+# Common useful variables
+DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control      |       \
+                                      cut -f 2 -d ':'))
+DEB_VERSION        := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |       \
+                                      egrep '^Version:' | cut -f 2 -d ' '))
+DEB_ISNATIVE       := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |       \
+                       perl -ne 'print if (m/^Version:/g && ! m/^Version:.*\-/);'))
+DEB_DISTRIBUTION  := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |        \
+                                      egrep '^Distribution:' | cut -f 2 -d ' '))
+
+DEB_PACKAGES := $(shell perl -e '                                                    \
+                  $$/="";                                                            \
+                  while(<>){                                                         \
+                     $$p=$$1 if m/^Package:\s*(\S+)/;                                \
+                     die "duplicate package $$p" if $$seen{$$p};                     \
+                     $$seen{$$p}++; print "$$p " if $$p;                             \
+                  }' debian/control )
+
+DEB_INDEP_PACKAGES := $(shell perl -e '                                              \
+                         $$/="";                                                     \
+                         while(<>){                                                  \
+                            $$p=$$1 if m/^Package:\s*(\S+)/;                         \
+                            die "duplicate package $$p" if $$seen{$$p};              \
+                            $$seen{$$p}++;                                           \
+                            $$a=$$1 if m/^Architecture:\s*(\S+)/m;                   \
+                            next unless ($$a eq "all");                              \
+                            print "$$p " if $$p;                                     \
+                         }' debian/control )
+
+DEB_ARCH_PACKAGES := $(shell perl -e '                                               \
+                         $$/="";                                                     \
+                         while(<>){                                                  \
+                            $$p=$$1 if m/^Package:\s*(\S+)/;                         \
+                            die "duplicate package $$p" if $$seen{$$p};              \
+                            $$seen{$$p}++;                                           \
+                            $$c="";                                                  \
+	                    if (/^Architecture:\s*(.*?)\s*$$/sm) {                   \
+                              @a = split /\s+/, $$1 };                               \
+	                      for my $$b (@a) {                                      \
+                                next unless ($$b eq "$(DEB_HOST_ARCH)" ||            \
+                                             $$b eq "any");                          \
+                                $$c="$$p";                                           \
+                            }                                                        \
+                            print "$$c " if $$c;                                     \
+                         }' debian/control )
+
+# This package is what we get after removing the psuedo dirs we use in rules
+package   = $(notdir $@)
+DEBIANDIR = $(dir $(firstword $(MAKEFILE_LIST)))
+
+ifeq  (,$(filter parallel=%,$(FAILS_PARALLEL_BUILD)))
+  ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    NUMJOBS = $(patsubst parallel=%,-j%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+  endif
+endif
+
+# Define canned sequences used to strip executables and libraries,
+# keeping in mind the directives in DEB_BUILD_OPTIONS
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+define strip-exec
+find $(TMPTOP) -type f | while read i; do                                    \
+   if file -b $$i | egrep -q "^ELF.*executable"; then                        \
+     strip --strip-all --remove-section=.comment --remove-section=.note $$i; \
+   fi;                                                                       \
+ done
+endef
+
+define strip-lib
+find $(TMPTOP) -type f | while read i; do                                         \
+   if file -b $$i | egrep -q "^ELF.*shared object"; then                          \
+     strip --strip-unneeded --remove-section=.comment --remove-section=.note $$i; \
+   fi;                                                                            \
+done
+endef
+else
+define strip-exec
+@echo Not strippping executables as asked
+endef
+
+define strip-lib
+@echo Not strippping libraries as asked
+endef
+
+endif
+
+# this canned command specifies how to run dpkg-shlibs to add things
+# to debian/substvars by scanning executables and libraries; this
+# should suffice for the common case. Some rules files might need some
+# changes to the command sequence, though
+define get-shlib-deps
+k=`find $(TMPTOP) -type f | ( while read i; do          \
+    if file -b $$i |                                    \
+      egrep -q "^ELF.*(executable.*dynamically linked|shared object)"; then   \
+        j="$$j $$i";                                     \
+    fi;                                                  \
+done; echo $$j; )`; if [ -n "$$k" ]; then dpkg-shlibdeps $$k; fi
+endef
+
+# This canned sequence checks to see if all the libraries we link to
+# actually provide some symbols needed by some executable ot library
+# in the package itself.
+ifeq (,$(strip $(filter nocheck,$(DEB_BUILD_OPTIONS))))
+  ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+define check-libraries
+echo Checking libs
+xtra=$$($(SHELL) debian/common/checklibs); \
+if [ -n "$$extra" ]; then                  \
+  echo "Extra libraries: $$extra";         \
+  exit 1;                                  \
+fi
+endef
+  else
+define check-libraries
+echo Not checking libs
+endef
+  endif
+else
+define check-libraries
+echo Not checking libs
+endef
+endif
+
+
+#Local variables:
+#mode: makefile
+#End:
--- vm-8.1.0.orig/debian/examples/README
+++ vm-8.1.0/debian/examples/README
@@ -0,0 +1,13 @@
+The files dot.vm, dot.emacs and dot.abbrevs are mine; dot.vm.2 was
+contributed by a friend as an alternative example.  Edit them to your
+personal requirements before trying to use them!
+
+If there is demand it should be trivial to write a program to
+translate between other addressbook formats and the abbrev file
+format.  (There's no reason you have to use abbrevs for your address
+book, but I like it;-)
+
+README.windows, full_screen and summary_{bottom,right,top} are from
+the windows package distributed with the upstream vm source.
+
+1995-08-19 Richard Kettlewell <richard@elmail.co.uk>
--- vm-8.1.0.orig/debian/examples/full_screen
+++ vm-8.1.0/debian/examples/full_screen
@@ -0,0 +1,9 @@
+;-*-emacs-lisp-*-
+
+;; startup = full screen summary
+;; reading-message = full screen folder
+;; composing-message = full screen composition
+;; editing-message = full screen edit
+;; vm-summarize = full screen summary
+
+((editing-message ((((visibility . t) (top . 80) (left . 200) (unsplittable) (minibuffer . t) (modeline . t) (width . 80) (height . 40) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((0 1 80 39) ((nil edit)) ((nil nil nil t)))))) (startup ((((visibility . t) (top . 140) (left . 140) (unsplittable) (minibuffer . t) (modeline . t) (width . 80) (height . 40) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((0 1 80 39) ((nil summary)) ((nil nil nil t)))))) (reading-message ((((visibility . t) (top . 80) (left . 200) (unsplittable) (minibuffer . t) (modeline . t) (width . 80) (height . 40) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((0 1 80 39) ((nil message)) ((nil nil nil t)))))) (comp
--- vm-8.1.0.orig/debian/examples/dot.abbrevs
+++ vm-8.1.0/debian/examples/dot.abbrevs
@@ -0,0 +1,16 @@
+;-*-emacs-lisp-*-
+;
+; Rather than editing abbrevs files directly, it's better to use
+; commands like M-X define-mail-abbrev and M-X edit-abbrevs, then save
+; them back with M-X write-abbrev-file
+;
+; (err, this may not be the best way to do it.  Watch this space.)
+;
+
+(define-abbrev-table 'mail-abbrevs '(
+    ("debian-bugs-done" "debian-bugs-done@pixar.com" mail-abbrev-expand-hook 0)
+    ("debian-announce" "debian-announce@pixar.com" mail-abbrev-expand-hook 0)
+    ("debian-user" "debian-user@pixar.com" mail-abbrev-expand-hook 0)
+    ("debian-devel" "debian-devel@pixar.com" mail-abbrev-expand-hook 0)
+    ("rjk" "Richard Kettlewell <richard@elmail.co.uk>" mail-abbrev-expand-hook 0)
+    ))
--- vm-8.1.0.orig/debian/examples/dot.vm-color
+++ vm-8.1.0/debian/examples/dot.vm-color
@@ -0,0 +1,80 @@
+I find font-locking email very useful for colouring quoted text
+differently to the new text. In fact, Gnus manages to colour every
+quoted message differently, which is very handy once you get three or
+four different people quoting each other. Can you get VM to do this?
+
+FWIW, here is the relevant bit of my .vm file (i use XEmacs which may
+(not) be relevant). Before anyone asks i don't know why i need to use
+both vm-mail-mode-hook and mail-setup-hook, but it works for me, and i
+can't be bothered to sort it out.
+
+
+(require 'highlight-headers)
+;;colours
+(set-face-foreground 'message-headers "darkslateblue")
+(set-face-foreground 'message-header-contents "brown")
+(set-face-foreground 'message-highlighted-header-contents "black")
+(set-face-foreground 'message-cited-text "darkgreen")
+(make-face-bold      'message-highlighted-header-contents)
+(make-face-unitalic  'message-header-contents)
+
+;;highlighting
+(defconst kmc-vm-mail-font-lock-keywords
+  (purecopy
+   (list
+    '("^\\([-a-zA-Z0-9]+:\\)[ ]*\\(.*\\)$" 1 message-headers t)
+    '("^\\([-a-zA-Z0-9]+:\\)[ ]*\\(.*\\)$" 2 message-header-contents t)
+    '("Subject[ \t]*:[ ]*\\(.*\\)$" 1 message-highlighted-header-contents t)
+    (list (concat highlight-headers-citation-regexp
+         "\\(.*\\)$") 2 'message-cited-text t)
+    (list (concat "\\("
+                  highlight-headers-citation-header-regexp
+                  "\\)") 1 'message-headers t)
+    )))
+
+(add-hook 'vm-mail-mode-hook
+          (lambda ()
+          (setq font-lock-keywords kmc-vm-mail-font-lock-keywords)
+	))
+(add-hook 'mail-setup-hook
+          (lambda ()
+            (setq font-lock-keywords kmc-vm-mail-font-lock-keywords)
+	)
+
+
+======================================================================
+> I've found it useful when you can display the quoted portion in a
+> grey-ish color, rather than my default white on black.  It seems to
+> make it easier to focus in on the reply parts.  Certainly not
+> critical, but I'd find it a very nice feature.
+
+
+I had to add a new hook to VM for making that:
+vm-presentation-mode-hook. Then, I use the following. It fontifies the
+"From" and "Subject" lines, as well as URLs, quoted text and auto-MIME
+decode zones.
+======================================================================
+
+(setq vm-font-lock-words
+      '(("^Subject: \\(.*\\)$" . font-lock-reference-face)
+	("^From: \\(.*\\)" . font-lock-type-face)
+	("^[>|}].*" . font-lock-comment-face)
+	("^.*\\\[Click .*\\\]$" . font-lock-variable-name-face)
+	("\\(file\\|ftp\\|gopher\\|http\\|https\\|news\\|wais\\|www\\)://[^ \t\n\f\r\"<>|()]*[^ \t\n\f\r\"<>|.!?(){}]" . font-lock-string-face)
+	)
+)
+
+(defun vm-fontify ()
+	(make-local-variable 'font-lock-defaults)
+	(setq font-lock-defaults '(vm-font-lock-words t))
+	(turn-on-font-lock))
+
+(add-hook 'vm-mode-hook
+          '(lambda ()
+	     (local-set-key "r" 'vm-followup)
+	     (vm-fontify)))
+
+(add-hook 'vm-presentation-mode-hook
+          '(lambda ()
+	     (vm-fontify)))
+
--- vm-8.1.0.orig/debian/examples/README.windows
+++ vm-8.1.0/debian/examples/README.windows
@@ -0,0 +1,47 @@
+Here are some window configuration files to get your started.
+There are comments at the top of each file that describe what
+they make VM do.
+
+Pick one of these files and copy it somewhere, like say
+~/.vm.windows.  Then put
+
+(setq vm-window-configuration-file "~/.vm.windows")
+
+in your .vm file.
+
+VM's window configuration system works by assigning
+configurations to actions.  Nearly every VM command can have its
+own separate configuration.  However, there are also
+configurations for classes of actions, like 'startup' and
+'composing-message'.  These configuration classes cover all the
+commands that fit into the class.  For example, all the commands
+that send out mail fall under the 'composing-message' config.
+
+If there is no command specific configuration, the class
+configuration for that command is used.  If there is no class
+configuration, then the 'default' configuration is used.  If
+there is no 'default' configuration, VM does <something> to get
+its buffers displayed, and <something> is undefined.  If you
+don't set up a window configuration VM might start displaying your
+folders by skywriting or some such.  So, for your privacy's sake,
+you should set up window configurations. :)
+
+To set a configuration, you should use normal Emacs window and
+buffer selection and sizing commands to make the screen look like
+you want it to look for a particular action.  Then run
+vm-save-window-configuration.  This is bound to W S in vm-mode
+buffers, and C-c C-v W S in VM mail-mode and edit-message buffers.
+You can of course use M-x vm-save-window-configuration from any
+other buffer.  You will be asked for a configuration name, and
+there is completion for the names.  If a configuration for the
+name you select already exists, it will be overwritten.
+
+To delete a configuration, use vm-delete-window-configuration,
+bound to W D in vm-mode buffer.  The action that you specify will
+no longer have a configuration associated with it.
+
+vm-apply-window-configuration (W W) makes the screen look like a
+particular configuration.  You might use this as an aid to
+setting up configurations based on some common framework.  W W is
+an easy way to call up a config instead of recreating it each
+time.
--- vm-8.1.0.orig/debian/examples/dot.emacs
+++ vm-8.1.0/debian/examples/dot.emacs
@@ -0,0 +1,53 @@
+;-*-emacs-lisp-*-
+;
+; Various mail-related things I put in my .emacs file
+;
+
+; use abbrevs in (Resent-)?(To|Cc|Bcc): lines
+
+(add-hook 'mail-setup-hook 'mail-abbrevs-setup)
+
+; load my address book
+
+(load-file "~/.abbrevs")
+
+; set my email address
+
+(setq user-mail-address "richard@elmail.co.uk")
+
+; set quoting character for replies
+
+(setq mail-yank-prefix ">")
+
+; set default Fcc folder
+
+(setq mail-archive-file-name "~/mail/sent-mail")
+
+; see /usr/doc/examples/vm/README.hilit19 for what's going on here
+
+(cond (window-system
+       (setq hilit-mode-enable-list  '(not text-mode)
+	     hilit-background-mode   'light
+	     hilit-inhibit-hooks     nil
+	     hilit-inhibit-rebinding nil)
+       (require 'hilit19)
+       (add-hook 'vm-summary-pointer-update-hook 'hilit-rehighlight-buffer)
+       (add-hook 'vm-select-message-hook 'hilit-rehighlight-buffer)
+       (hilit-translate comment 'firebrick-bold)
+       (hilit-set-mode-patterns
+	'outline-mode
+	'(("^\*.*$" nil defun)
+	  ))
+       ))
+;; This will return a list of all the buffers in VM mode:
+; (let ((buffers (buffer-list))
+;       (vm-buffers '()))
+;   (while buffers
+;     (if (eq (save-excursion
+; 	      (set-buffer (car buffers))
+; 	      major-mode)
+; 	    'vm-mode)
+; 	(setq vm-buffers
+; 	      (cons (car buffers) vm-buffers)))
+;     (setq buffers (cdr buffers)))
+;   (nreverse vm-buffers))
--- vm-8.1.0.orig/debian/examples/dot.vm-manoj-current
+++ vm-8.1.0/debian/examples/dot.vm-manoj-current
@@ -0,0 +1,653 @@
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;; To read mail with VM from an IMAP spool, an entry specifying the   ;;;
+;;; maildrop is needed in vm-spool-files. This can be configured       ;;;
+;;; using, for example:                                                ;;;
+;;;                                                                    ;;;
+;;;     (add-to-list 'vm-spool-files                                   ;;;
+;;;                  '("~/mail/IMAP-INBOX"                             ;;;
+;;;                    "imap:HOST:PORT:MAILBOX:AUTH:USER:PASSWORD"     ;;;
+;;;                    "~/mail/IMAP-INBOX.CRASH"))                     ;;;
+;;;                                                                    ;;;
+;;; where PORT is normally 143. To use IMAP over SSL, use, instead:    ;;;
+;;;                                                                    ;;;
+;;;     (add-to-list 'vm-spool-files                                   ;;;
+;;;                  '("~/mail/IMAP-INBOX"                             ;;;
+;;;                    "imap-ssl:HOST:PORT:MAILBOX:AUTH:USER:PASSWORD" ;;;
+;;;                    "~/mail/IMAP-INBOX.CRASH"))                     ;;;
+;;;                                                                    ;;;
+;;; where PORT is normally 993. In both cases, if PASSWORD is given    ;;;
+;;; as *, it will be prompted for the first time that mail is          ;;;
+;;; retrieved.                                                         ;;;
+;;;                                                                    ;;;
+;;; By default, messages are removed from the IMAP server after        ;;;
+;;; retrieving them. This is controlled by the variable                ;;;
+;;; vm-imap-expunge-after-retrieving, but per-maildrop settings can    ;;;
+;;; be made in vm-imap-auto-expunge-alist.                             ;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;; To read mail with VM from a POP spool, an entry specifying the    ;;;
+;;; maildrop is needed in vm-spool-files. This can be configured      ;;;
+;;; using, for example:                                               ;;;
+;;;                                                                   ;;;
+;;;     (add-to-list 'vm-spool-files                                  ;;;
+;;;                  '("~/mail/POP-INBOX"                             ;;;
+;;;                    "pop:HOST:PORT:AUTH:USER:PASSWORD"             ;;;
+;;;                    "~/mail/POP-INBOX.CRASH"))                     ;;;
+;;;                                                                   ;;;
+;;; where PORT is normally 110. To use POP over SSL, use, instead:    ;;;
+;;;                                                                   ;;;
+;;;     (add-to-list 'vm-spool-files                                  ;;;
+;;;                  '("~/mail/POP-INBOX"                             ;;;
+;;;                    "pop-ssl:HOST:PORT:AUTH:USER:PASSWORD"         ;;;
+;;;                    "~/mail/POP-INBOX.CRASH"))                     ;;;
+;;;                                                                   ;;;
+;;; where PORT is normally 995. In both cases, if PASSWORD is given   ;;;
+;;; as *, it will be prompted for the first time that mail is         ;;;
+;;; retrieved.                                                        ;;;
+;;;                                                                   ;;;
+;;; AUTH will normally be "pass". See the docstring                   ;;;
+;;; of vm-spool-files for the other acceptable values and their       ;;;
+;;; meanings.                                                         ;;;
+;;;                                                                   ;;;
+;;; By default, messages are removed from the POP server after        ;;;
+;;; retrieving them. This is controlled by the variable               ;;;
+;;; vm-pop-expunge-after-retrieving, but per-maildrop settings can be ;;;
+;;; made in vm-pop-auto-expunge-alist.                                ;;;
+;;;                                                                   ;;;
+;;; Other variables controlling POP behaviour include:                ;;;
+;;;                                                                   ;;;
+;;;     vm-pop-bytes-per-session                                      ;;;
+;;;     vm-pop-max-message-size                                       ;;;
+;;;     vm-pop-messages-per-session                                   ;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(require 'message)
+(load-library "vm-autoloads")
+
+(require 'vm-pine)
+(require 'vm-rfaddons)
+(require 'vm-thread)
+(require 'vm-virtual)
+(require 'vm-delete)
+(require 'vm-sort)
+(require 'bbdb-vm)
+(require 'vm-misc)
+(require 'vm-mime)
+(if window-system
+    (require 'vm-mouse))
+(bbdb-insinuate-vm)
+
+
+(vm-rfaddons-infect-vm)
+
+(require 'u-vm-color)
+(add-hook 'vm-summary-mode-hook 'u-vm-color-summary-mode)
+(add-hook 'vm-select-message-hook 'u-vm-color-fontify-buffer)
+(defadvice vm-decode-mime-message (after u-vm-color activate)
+  (u-vm-color-fontify-buffer-even-more))
+(defadvice vm-fill-paragraphs-containing-long-lines
+            (after u-vm-color activate)
+            (u-vm-color-fontify-buffer))
+
+(setq-default vm-summary-show-threads t)
+
+(setq
+ vm-auto-center-summary 0
+ vm-auto-decode-mime-messages t
+ vm-auto-displayed-mime-content-types
+        '("text" "multipart" "message/rfc822" "plain text" "mail message"
+          "text/x-vcard" "text/enriched" )
+
+ vm-crash-inbox (concat my-mail-dir "/INBOX.CRASH")
+ vm-delete-after-archiving t
+ vm-delete-after-bursting t
+ vm-delete-after-saving t
+ vm-folder-directory (concat my-mail-dir "/")
+ vm-follow-summary-cursor t
+ vm-forwarding-subject-format "Forwarded message from %F, %h %w,%d %m %y"
+ vm-highlighted-header-regexp (if window-system nil "^From\\|^Subject")
+ vm-honor-page-delimiters t
+ vm-honor-mime-content-disposition t
+ ;; vm-in-reply-to-format "%i:%F's message of %h %w,%d %m %y "
+ vm-included-text-headers '("\\bFrom\\b" "\\bSubject\\b" "\\bDate\\b")
+ vm-inhibit-startup-message t
+ vm-keep-sent-messages 2
+ vm-mail-header-from (or user-mail-address (concat (user-login-name)
+                                                   "@acm.org"))
+ vm-mime-internal-content-types
+        '("text" "multipart" "message/rfc822" "plain text" "mail message"
+          "text/x-vcard" "text/enriched" )
+
+ vm-mime-8bit-composition-charset "utf-8"
+ vm-mime-qp-decoder-program "qp-decode"
+ vm-mime-qp-encoder-program "qp-encode"
+ vm-mime-base64-decoder-program "base64-decode"
+ vm-mime-base64-encoder-program "base64-encode"
+ vm-move-after-deleting t
+ vm-move-after-killing t
+ vm-preferences-file "~/etc/vm.preferences"
+ vm-popup-menu-on-mouse-3 t
+ vm-preview-read-messages nil
+ vm-primary-inbox (concat my-mail-dir "/INBOX")
+ vm-reply-ignored-addresses (list (concat "\\b" (regexp-quote
+                                                 (user-login-name)) "\\b"))
+ vm-reply-subject-prefix "Re: "
+ vm-search-using-regexps t
+ vm-skip-deleted-messages 0
+ vm-skip-read-messages nil
+ vm-spool-files
+ (list
+  (list "INBOX"  "~/mbox"  "INBOX.CRASH" )
+  (list "INBOX" (concat "/var/mail/" (user-login-name)) "INBOX.CRASH" )
+  (list "INBOX" (concat "/var/spool/mail/" (user-login-name))
+        "INBOX.CRASH" )
+  (list "INBOX" (concat "/usr/mail/" (user-login-name)) "INBOX.CRASH" )
+  (list "INBOX" (concat "/usr/spool/mail/" (user-login-name))
+        "INBOX.CRASH" )
+  (list "INBOX" (concat real-home-directory "/var/spool/mail/important")
+        "INBOX.CRASH" )
+  (list "ADMIN" (concat real-home-directory "/var/spool/mail/admin")
+        "ADMIN.CRASH")
+  (list "BCAST" (concat real-home-directory "/var/spool/mail/bcast")
+        "BCAST.CRASH")
+  (list "CONSULT" (concat real-home-directory "/var/spool/mail/consult")
+        "CONSULT.CRASH")
+  (list "DIGITAL" (concat real-home-directory "/var/spool/mail/digital")
+        "DIGITAL.CRASH")
+  (list "GCIF" (concat real-home-directory "/var/spool/mail/gcif")
+        "GCIF.CRASH")
+  (list "GCIFC" (concat real-home-directory "/var/spool/mail/gcifcases")
+        "GCIFC.CRASH")
+  (list "spam" (concat real-home-directory "/var/spool/mail/spam")
+        "spam.CRASH")
+  (list "grey" (concat real-home-directory "/var/spool/mail/grey.mbox")
+        "grey.CRASH")
+  (list "MISC" (concat real-home-directory "/var/spool/mail/misc")
+        "MISC.CRASH")
+  (list "orders" (concat real-home-directory "/var/spool/mail/orders")
+        "orders.CRASH")
+  )
+ vm-startup-with-summary 1
+ vm-strip-reply-headers t
+ vm-summary-format "%2n%UA%*%a %-17.17UB %-3.3m %2d %4l/%-5c %I\"%s\"\n"
+ vm-summary-uninteresting-senders (concat "\\b" (regexp-quote
+                                                 (user-login-name)) "\\b")
+ vm-summary-uninteresting-senders-arrow "==> "
+ vm-use-menus t
+ vm-visit-when-saving 'okay
+ vm-virtual-folder-alist
+ '(
+   ("misc"
+    (("ADMIN" "BCAST" "MISC" ) ;;;;
+     (any)))
+   )
+ vm-window-configuration-file "~/etc/vm.windows"
+)
+
+;;; (setq vm-mime-default-face-charsets
+;;;  '("us-ascii" "iso-8859-1" "iso-8859-2" "iso-8859-3" "iso-8859-4"
+;;;    "iso-8859-5" "iso-8859-6" "iso-8859-7" "iso-8859-8" "iso-8859-9"
+;;;    "windows-1251" "windows-1252" "koi8-r" "us-ascii" "X-roman8"
+;;;   )
+;;; )
+;;; (add-to-list 'vm-mime-default-face-charsets "Windows-1251")
+;;; (add-to-list 'vm-mime-default-face-charsets "Windows-1252")
+;;; (add-to-list 'vm-mime-default-face-charsets "Windows-1257")
+
+;; Show all:
+(setq vm-mime-default-face-charsets t)
+
+(setq vm-mime-type-converter-alist
+   '(
+      ("text/html" "text/plain" "links -force_html -dump /dev/stdin")
+    ))
+
+;;;;(require 'browse-url)
+;;;;(defvaralias 'vm-url-browser 'browse-url-browser-function))
+
+;;;; Then tell VM that it should not display text/html internally.
+;(setq vm-mime-internal-content-type-exceptions '("text/html"))
+;(add-to-list 'vm-mime-external-content-types-alist
+;	     '("text/html" "mozilla -remote 'openFILE(%f)' || mozilla %f"))
+; setq vm-mime-type-converter-alist
+; 	     ;; w3 takes a loong time ... so:
+; 	     '(
+;	       ("text/html" "text/plain" "w3m -T \"text/html\" -dump")
+;	       ))
+
+(setq 
+ vm-netscape-program "firefox"
+ vm-url-browser 'vm-mouse-send-url-to-netscape
+ vm-netscape-program-switches nil
+ )
+
+
+;(add-to-list 'vm-mime-external-content-types-alist
+;	     '("image/*" "display %f"))
+
+(defun vm-summary-function-A (m)
+  (if (string-match "Manoj Srivastava" (vm-su-to m)) "+" " "))
+
+;;"%2n %*%a %-17.17F %-3.3m %2d %4l/%-5c \"%s\"\n"
+;;"%2n %*%a %-17.17U %-3.3m %2d %4l/%-5c \"%s\"\n"
+
+(defun my-vm-mode-function ()
+  "Added quitting, no  backups, and load a few libs."
+  (interactive)
+  (make-local-variable 'version-control)
+  (setq version-control 'never); keep minimal backups
+;;  (load-library "jwz-vm-summary")
+  (require 'sendmail)
+;;  (load-library "ml-alias")
+;;  (require 'vm-sort)
+  (require 'message)
+  (add-hook 'local-write-file-hooks 'bbdb-offer-save)
+  )
+
+(setq vm-mode-hooks 'my-vm-mode-function)
+(add-hook 'vm-quit-hook 'vm-expunge-folder)
+(add-hook 'vm-quit-hook 'bbdb-save-db)
+;;(bbdb/vm-set-auto-folder-alist)
+
+
+;;; For a while, I used to do a BBDB save only when quitting out of my
+;;; primary "in" box.  For that, I did this:
+;;;   (add-hook 'vm-quit-hook
+;;;           (function
+;;;            (lambda ()
+;;;              (if (string-equal (buffer-name (current-buffer)) "INBOX")
+;;;                  (progn
+;;;                    (bbdb-save-db))))))
+
+(setq mail-yank-ignored-headers
+      (concat
+       "^Content-Length:\\|"
+       "^Content-Type:\\|"
+       "^Email-Version:\\|"
+       "^End-of-Header:\\|"
+       "^End-of-Protocol:\\|"
+       "^Full-Name:\\|"
+       "^Message-Version:\\|"
+       "^Message-Service:\\|"
+       "^Reply-Path:\\|"
+       "^Reply-To:\\|"
+       "^>To:\\|"
+       "^UA-Content-ID:\\|"
+       "^UA-Message-ID:\\|"
+       "^X-at-.*:\\|"
+       mail-yank-ignored-headers)
+      )
+
+
+(defvar vm-ml-ids
+	'(
+	  "info-vm-request"
+          "info-mm"
+	  "ange-ftp-lovers"
+	  "info-gnuplot-request"
+	  "lucid-emacs"
+	  "Gutenberg"
+	  "hyperbole"
+          "auc-tex"
+	  "owner-supercite"
+	  "fsp-discussion"
+	  )
+	"*List of strings naming the mailing lists that VM should know
+ about. VM archives mailing-lists that appear in vm-mailing-lists in
+ their own folder. See also info on function vm-make-mailinglist-regexp.")
+
+(defun vm-make-mailing-list-regexp (listname)
+       "This function is used only to construct the variable
+ vm-auto-folder-alist. It returns the cons of a regexp and a
+ foldername. The regexp is supposed to match the To, Cc, or Sender
+ field in the message. The foldername is the LISTNAME prepended with
+ \"M-\" and the result is used as the name of the folder to append the
+ message to."
+       (cons
+	(concat
+	 "\\<" listname
+	 "\\|" (upcase listname)
+	 "\\|" listname "-list"
+	 "\\|" (upcase listname) "-LIST"
+	 "\\>")
+	(concat "M-" listname)))
+
+
+(setq
+ vm-auto-folder-alist
+ (list
+  ;; First we check if this is a mailing-list. The name of the
+  ;; mailing-list is usually in the To-field, but sometimes in the Cc-
+ ;; or Sender-field:
+
+
+   (cons "To"     (mapcar 'vm-make-mailing-list-regexp vm-ml-ids))
+   (cons "Cc"     (mapcar 'vm-make-mailing-list-regexp vm-ml-ids))
+   (cons "Sender" (mapcar 'vm-make-mailing-list-regexp vm-ml-ids))
+   ;; if it's not a mailing list, then use sender's name as folder name:
+   (list "Newsgroups"
+    (cons "gnu.emacs.sources"  "emacs")
+    )
+   (list "Subject"
+    (cons ".*[oO]pen ?[lL]ook.*"  "xnews")
+    (cons ".*\\(MOTIF\\|X11\\| X \\).*"  "x11")
+    (cons ".*\\(OSF\\).*"  "osf1")
+    (cons ".*[vV][mM].*"  "vm")
+    (cons ".*[cC]\\+\\+.*"  "c++")
+    (cons "Returned mail"  "Receipts")
+    )
+   (list "From"
+	 (cons my-login-name-regexp
+	       '(list (list "To"
+			    '( "ART" . "gaylord")
+			    ;; match id with IN%
+			    '( "IN%\"\\([^>@%]+\\)" .
+			       (buffer-substring
+				(match-beginning 1) (match-end 1)))
+			    ;; match id in <>
+			    '( "<\\([^>@%]+\\)" .
+			       (buffer-substring
+				(match-beginning 1) (match-end 1)))
+			    ;; match id with @
+			    '( "\\([^@%:]+\\)[@%]" .
+			       (buffer-substring
+				(match-beginning 1) (match-end 1)))
+			    ;; match id with ::
+			    '("[^:]+\:\:\\(\\w+\\|\\w+\\W\\w+\\)" .
+			      (buffer-substring
+			       (match-beginning 1) (match-end 1)))
+			    ;; match first word
+			    '("\\(\\w+\\)" .
+			      (buffer-substring
+			       (match-beginning 1) (match-end 1)))
+			    )
+
+		  ))
+	 '("IN%\"\\([^>@%]+\\)" .
+	   (buffer-substring (match-beginning 1) (match-end 1)))
+	 ;; Kyle's catch-all:
+	 '( "ART" . "gaylord")
+	 ;; match id with IN%
+	 '("<\\([^ \t\n\f@%()<>]+\\)[@%]\\([^ \t\n\f<>()]+\\)>" .
+	   (buffer-substring (match-beginning 1) (match-end 1)))
+	 '("<\\([^>]+\\)>" .
+	   (buffer-substring (match-beginning 1) (match-end 1)))
+;;	 '("\\([^ \t\n\f@%()<>]+\\)\\([@%]\\([^ \t\n\f<>()]+\\)\\)?"
+;;	   (buffer-substring (match-beginning 1) (match-end 1)))
+    ;; match id in <>
+	 '("<\\([^>@%]+\\)" .
+	   (buffer-substring (match-beginning 1) (match-end 1)))
+	 ;; match id with @
+	 '("\\([^@%:]+\\)[@%]" .
+	   (buffer-substring (match-beginning 1) (match-end 1)))
+	 ;; match id with ::
+	 '("[^:]+\:\:\\(\\w+\\|\\w+\\W\\w+\\)" .
+	   (buffer-substring (match-beginning 1) (match-end 1)))
+	 ;; match first word
+	 '("\\(\\w+\\)" .
+	   (buffer-substring (match-beginning 1) (match-end 1)))
+	 )
+   ))
+
+(if (eq 'x window-system)
+    (progn
+
+
+      (defun vm-highlight-headers (message window)
+	"Using font-lock; highlight From: and Subject: fields in mail
+ messages displayed by VM."
+	(save-excursion
+	  ;; As of v18.52, this call to save-window-excursion is needed!
+	  ;; Somehow window point can get fouled in here, and drag the
+	  ;; buffer point along with it.  This problem only manifests
+	  ;; itself when operating VM from the summary buffer, subsequent
+	  ;; to using vm-beginning-of-message or vm-end-of-message.
+	  ;; After running a next or previous message command, point
+	  ;; somehow ends up at the end of the message.
+	  (save-window-excursion
+	    (font-lock-mode 1)
+	    )))
+      ))
+
+(setq  tm-vm/automatic-mime-preview nil)
+
+(defun vm-folder-count ()
+  "Count buffers visiting mail folders."
+  (save-excursion
+    (let ((folder-count 0))
+      (mapcar (function
+	       (lambda (buf)
+		 (set-buffer buf)
+		 (and (eq major-mode 'vm-mode)
+		      (setq folder-count (+ folder-count 1)))))
+	      (buffer-list))
+      folder-count)))
+
+
+(add-hook 'vm-presentation-mode-hook
+	  (lambda ()
+	    (or buffer-display-table
+		;; Don't let disp-table.el overwrite standard-display-table:
+		(let ((standard-display-table standard-display-table))
+		  (setq buffer-display-table (make-display-table))))
+	    ;; Make A0 (\240) (non-breaking space) display as normal space
+	    (aset buffer-display-table ?\xA0 [\? ])
+	    (aset buffer-display-table ?\x91 [?\'])
+	    (aset buffer-display-table ?\x92 [?\'])
+	    (aset buffer-display-table ?\x93 [?\"])
+	    (aset buffer-display-table ?\x94 [?\"])
+	    (aset buffer-display-table ?\x96 [?\-])
+	    (aset buffer-display-table ?\x97 [?\-?\-])
+	    ;; Make ^M invisible:
+	    (aset buffer-display-table ?\x0D [])))
+
+
+(require 'time-date)
+(defun my-vm-print-message-with-faces (&optional filename)
+  "Print the current message to a PostScript printer (or file) with
+  font information"
+  (interactive)
+  (vm-select-folder-buffer)
+  (let* ((msg (vm-real-message-of (car vm-message-pointer)))
+	 (buffer (set-buffer (if (vm-mime-plain-message-p msg)
+				 (vm-buffer-of msg)
+			       vm-presentation-buffer)))
+	 (subject-line (or (vm-get-header-contents msg "Subject:")
+			   "<No Subject>">))
+	 (from-line (concat "From: " (or
+				      (vm-get-header-contents msg "From:")
+				      "<No Sender>")))
+	 (date-line (vm-get-header-contents msg "Date:"))
+	 (time (if date-line (date-to-time date-line) (current-time)))
+	 (dd-mon-yy (format-time-string "%d %b %y" time))
+	 (hh:mm:ss (format-time-string "%T" time))
+	 (ps-left-header (list 'subject-line 'from-line))
+	 (ps-right-header (list "/pagenumberstring load" 'dd-mon-yy 'hh:mm:ss))
+	 (ps-header-lines 2)
+	 (ps-print-header-frame t))
+    (if (null filename)
+	(ps-print-buffer-with-faces)
+      (ps-print-buffer-with-faces filename)
+      )))
+
+
+(require 'vm-vcard)
+
+(setq vm-spamassassin-cmd "/usr/bin/spamassassin")
+
+(defun vm-spamassassin-report-spam ()
+  "Report mail as spam by piping the message to spamassassin in reporting
+mode."
+  (interactive)
+   (if (y-or-n-p "Are you sure you want to report this message as spam? ")
+       (vm-pipe-message-to-command
+	(concat vm-spamassassin-cmd " -r -w "  user-mail-address)
+	nil)))
+
+(defun vm-spamassassin-add-to-whitelist ()
+  "Add the sender of the message to the spamassassin auto-whitelist, so 
+that mail from them is not classified as spam again."
+  (interactive)
+  (vm-pipe-message-to-command (concat vm-spamassassin-cmd " -W") nil))
+
+(require 'vm-menu)
+(setq vm-menu-dispose-menu 
+      (append vm-menu-dispose-menu  
+	      '(
+		"---" 
+		["Add to whitelist" vm-spamassassin-add-to-whitelist vm-message-list ]
+		["Report as spam" vm-spamassassin-report-spam vm-message-list ])))
+
+;;;   ;;; Peronality crisis
+;;;   (setq rwh-vm-pcrisis-use-vm-mail-wraparound t)
+;;;   (defadvice mail-text (before call-automorph-with-mail-text activate)
+;;;           (rwh-vm-pcrisis-automorph) )
+;;;   (add-hook 'vm-mail-mode-hook
+;;;           '(lambda () (local-set-key [f7] 'rwh-vm-pcrisis-automorph)))
+;;;
+;;;   ;;;  An action-list can take many forms.  The first item in an action-list
+;;;   ;;;  is a string, which may be any of the following:
+;;;
+;;;   ;;;     * "pre-function"
+;;;   ;;;     * "reply-buffer-function"
+;;;   ;;;     * "signature"
+;;;   ;;;     * "pre-signature"
+;;;   ;;;     * "set-to-to"
+;;;   ;;;     * If none of the above, a string containing the name of a header to
+;;;   ;;;       add or change in your reply.
+;;;
+;;;(add-to-list 'rwh-vm-pcrisis-headers-to-save "Original-Sender")
+;;;   (setq rwh-vm-pcrisis-profiles
+;;;    '(
+;;;      ( ;;This first recipe causes the contents of the file ~/.sig
+;;;        ;;  to be inserted as the signature in absolutely all replies.
+;;;       ("From" ".*")
+;;;       ("signature" "~/.sig")
+;;;      )
+;;;      ( ;;you DO NOT include a :
+;;;       ("From" "^president@whitehouse\\.gov$")
+;;;       ("X-Subliminal-Header-Message" "Please lower my taxes.")
+;;;      )
+;;;      ( ;;the function names should not be placed in quotes.
+;;;       ("Content-type" "iso-8859-2") ;; Note 3
+;;;       ("pre-function" my-vm-variable-changer-8859-2)
+;;;       ("reply-buffer-function" my-change-kbd-layout-to-polish)
+;;;      )
+;;;      ( ;;To understand this, read *Note pcp Note 4::
+;;;       ("Content-type" "html")
+;;;       ("From" "\"The HTML Police\" <me@my.mail.address>")
+;;;       ("pre-signature" "~/formletters/why_html_is_bad.txt")
+;;;      )
+;;;      (
+;;;       ("Reply-To" "bad_list@some.listserv.com") ;;match-list
+;;;      ("set-to-to" "Original-Sender")) ;;action-list
+;;;      )
+;;;     ) )
+;;;
+;;;
+;;;    rwh-vm-pcrisis-automorph-profil
+;;;
+;;;   rwh-vm-pcrisis-newmail-profiles
+;;;
+
+
+
+;;; From: kyle_jones@wonderworks.com (Kyle Jones)
+
+;;;  > Is there anyway I can get a 50/50 split on everything, without having to
+;;;  > explicitly save to *all* window configurations?
+
+;;; Yes.  You only need to save to the main classes: startup,
+;;; reading-message, composing-message, editing-message, and for the
+;;; command config for vm-summarize.
+
+;;; ;;;;
+;;; ;;;; Wastebasket support
+;;; ;;;;
+;;; ;;;; By default, deleted mail goes into the "wastebasket" directory,
+;;; ;;;; which is a subdirectory of vm-folder-directory.  There is a
+;;; ;;;; wastebasket file for each month; the file name format is
+;;; ;;;; wastebasket-yymm.
+;;; ;;;;
+
+;;; (require 'cl)
+
+;;; (defvar *vm-wastebasket-directory*
+;;;   (concat (file-name-as-directory vm-folder-directory)
+;;;           (format "wastebasket/wastebasket")))
+
+;;; (defvar *vm-wastebasket-months*
+;;;   '("Jan" "Feb" "Mar" "Apr" "May" "Jun"
+;;;     "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"))
+
+;;; (defvar *vm-wastebasket-date-regexp*
+;;;   (concat "\\(" (mapconcat 'identity *vm-wastebasket-months* "\\|") "\\)"
+;;;           ".*"
+;;;           "[0-9][0-9]\\([0-9][0-9]\\)"))
+
+;;; (defun vm-wastebasket ()
+;;;   (format
+;;;    "%s-%s"
+;;;    *vm-wastebasket-directory*
+;;;    (if (fboundp 'time-yymm)             ;Use my private hack first
+;;;        (time-yymm)
+;;;        (let ((time (current-time-string)))
+;;;          (string-match *vm-wastebasket-date-regexp* time)
+;;;          (unless (and (match-beginning 1) (match-beginning 2))
+;;;            (error "Unable to extract month and year from current-time-string"))
+;;;          (let* ((month (substring time (match-beginning 1) (match-end 1)))
+;;;                 (month-number (1+ (position month *vm-wastebasket-months*
+;;;                                             :test 'string-equal)))
+;;;                 (year (substring time (match-beginning 2) (match-end 2))))
+;;;            (concat year (format "%02d" month-number)))))))
+
+;;; (defun vm-save-in-wastebasket (&rest ignore)
+;;;   (interactive)
+;;;   (vm-save-message (vm-wastebasket)))
+
+;;; (defun vm-visit-wastebasket (prefix &optional read-only-p)
+;;;   (interactive "P")
+;;;   (vm-visit-folder (vm-wastebasket) (or prefix read-only-p)))
+
+;;; ;;; Move the "d" key to "D", and add "T" to read the wastebasket
+;;; (define-key vm-mode-map "D" 'vm-delete-message)
+;;; (define-key vm-mode-map "d" 'vm-save-in-wastebasket)
+;;; (define-key vm-mode-map "T" 'vm-visit-wastebasket)
+(define-key vm-mode-map "#" 'vm-expunge-folder)
+
+
+;; Pop mail service using ssh
+;;; # ssh -C -L 4711:mail.server.at.your.domain:110 other.server.at.your.domain
+
+;;;  The above statement will setup a local port (4711) that is
+;;;  forwarded to the POP port on your mailserver
+;;;  (mail.server.at.your.domain) via another machine
+;;;  (other.server.at.your.domain). (The -C flags is not necessary, it
+;;;  only makes the communication compressed.)
+
+;;; You can then setup your vm-spool-files to point out this local port like this:
+
+;;; (setq vm-spool-files
+;;; (list (list vm-primary-inbox "localhost:4711:pass:username:*" vm-crash-box)))
+
+
+;;;  This will return a list of all the buffers in VM mode:
+
+;;;  (let ((buffers (buffer-list))
+;;;        (vm-buffers '()))
+;;;    (while buffers
+;;;      (if (eq (save-excursion
+;;;  	      (set-buffer (car buffers))
+;;;  	      major-mode)
+;;;  	    'vm-mode)
+;;;  	(setq vm-buffers
+;;;  	      (cons (car buffers) vm-buffers)))
+;;;      (setq buffers (cdr buffers)))
+;;;    (nreverse vm-buffers))
+
+;;; Local Variables:
+;;; mode: emacs-lisp
+;;; comment-start: ";;; "
+;;; End:
+
--- vm-8.1.0.orig/debian/examples/dot.vm-hide-ref
+++ vm-8.1.0/debian/examples/dot.vm-hide-ref
@@ -0,0 +1,26 @@
+In .emacs
+
+(defun hide-references-hook ()
+  (save-excursion
+    (let (lim)
+      (goto-char (point-min))
+      (re-search-forward (concat "^" (regexp-quote mail-header-separator) "$"))
+      (setq lim (match-beginning 0))
+      (goto-char (point-min))
+      (cond ((re-search-forward "^References:.*\n\\([ \t].*\n\\)*" lim t)
+	     (let ((o (make-overlay (match-beginning 0) (match-end 0))))
+	       (overlay-put o 'invisible t)))))))
+
+(defun hide-in-reply-to-hook ()
+  (save-excursion
+    (let (lim)
+      (goto-char (point-min))
+      (re-search-forward (concat "^" (regexp-quote mail-header-separator) "$"))
+      (setq lim (match-beginning 0))
+      (goto-char (point-min))
+      (cond ((re-search-forward "^In-Reply-To:.*\n\\([ \t].*\n\\)*" lim t)
+	     (let ((o (make-overlay (match-beginning 0) (match-end 0))))
+	       (overlay-put o 'invisible t)))))))
+
+(add-hook 'vm-mail-mode-hook 'hide-references-hook)
+(add-hook 'vm-mail-mode-hook 'hide-in-reply-to-hook)
--- vm-8.1.0.orig/debian/examples/summary_top
+++ vm-8.1.0/debian/examples/summary_top
@@ -0,0 +1,9 @@
+;-*-emacs-lisp-*-
+
+;; startup = full screen summary
+;; reading-message = folder on bottom, summary on top
+;; composing-message = composition on bottom, summary on top
+;; editing-message = edit on bottom, summary on top
+;; vm-summarize = full screen summary
+
+((editing-message ((((visibility . t) (top . 50) (left . 170) (unsplittable) (minibuffer . t) (modeline . t) (width . 80) (height . 40) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((- (0 1 80 10) (0 10 80 39)) ((nil summary) (nil edit)) ((nil nil nil nil) (nil nil nil t)))))) (startup ((((visibility . t) (top . 140) (left . 140) (unsplittable) (minibuffer . t) (modeline . t) (width . 80) (height . 40) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((0 1 80 39) ((nil summary)) ((nil nil nil t)))))) (reading-message ((((visibility . t) (top . 80) (left . 200) (unsplittable) (minibuffer . t) (modeline . t) (width . 80) (height . 40) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((- (0 
--- vm-8.1.0.orig/debian/examples/dot.vm-hide-ref-2
+++ vm-8.1.0/debian/examples/dot.vm-hide-ref-2
@@ -0,0 +1,34 @@
+Here's a hook function that will hide the References header in
+VM's mail-mode buffers.  This is for Good 'Ol Emacs only; this
+won't work under XEmacs.  You will notice the cursor behaves as
+if the References header is still there... that's because it is
+still there.
+
+(defun hide-references-hook ()
+  (save-excursion
+    (let (lim)
+      (goto-char (point-min))
+      (re-search-forward (concat "^" (regexp-quote mail-header-separator) "$"))
+      (setq lim (match-beginning 0))
+      (goto-char (point-min))
+      (cond ((re-search-forward "^References:.*\n\\([ \t].*\n\\)*" lim t)
+	     (let ((o (make-overlay (match-beginning 0) (match-end 0))))
+	       (overlay-put o 'invisible t)))))))
+
+(add-hook 'vm-mail-mode-hook 'hide-references-hook)
+
+Here's the XEmacs version of that function.  Required change was
+replacing make-overlay with make-extent, and overlay-put with
+set-extent-property.
+
+(defun hide-references-hook ()
+  (save-excursion
+    (let (lim)
+      (goto-char (point-min))
+      (re-search-forward (concat "^" (regexp-quote mail-header-separator) "$"))
+      (setq lim (match-beginning 0))
+      (goto-char (point-min))
+      (cond ((re-search-forward "^References:.*\n\\([ \t].*\n\\)*" lim t)
+	     (let ((o (make-extent (match-beginning 0) (match-end 0))))
+	       (set-extent-property o 'invisible t)))))))
+
--- vm-8.1.0.orig/debian/examples/dot.vm.2
+++ vm-8.1.0/debian/examples/dot.vm.2
@@ -0,0 +1,148 @@
+;-*-emacs-lisp-*-
+;From: Ian Jackson <iwj10@cus.cam.ac.uk>
+;To: richard@elmail.co.uk (Richard Kettlewell)
+;Subject: Re: ~/.vm
+;Date: Sat, 12 Aug 95 16:28 BST
+;
+;Richard Kettlewell writes ("~/.vm"):
+;> Do you have a ~/.vm file you would like to contribute to the Debian vm
+;> package?
+;
+;I keep my vm startup stuff in ~/emacs/ian.el.  It could probably do
+;with a bit of tweaking, but here it is.
+;
+;Ian.
+
+; In Emacs 19 only, to override the default mouse bindings (which
+; I don't like):
+(add-hook 'vm-mode-hook 'unset-down-mouse-3)
+(add-hook 'vm-mail-mode-hook 'unset-down-mouse-3)
+
+; In my term-setup-hook function:
+(global-set-key "m" 'vm-mail)
+(global-set-key "4m" 'vm-mail-other-window)
+(global-set-key "9" 'vm-visit-folder)
+
+; To purge deleted messages automatically:
+(add-hook 'vm-mode-hook
+          '(lambda ()
+             (local-set-key "Q" 'vm-quit)
+             (local-set-key "q" "#Q")))
+
+; ^X 4 m  does the right thing ...
+(defun vm-mail-other-window ()
+  "Like `vm-mail' command, but display buffer in another window."
+  (interactive)
+  (switch-to-buffer-other-window (current-buffer))
+  (vm-mail))
+
+; All my general variables
+(setq vm-included-text-attribution-format "%F writes (\"%s\"):\n"
+      vm-reply-subject-prefix "Re: "
+      vm-folder-directory "~/mail/"
+      vm-delete-after-saving t
+      vm-delete-empty-folders t
+      vm-mutable-windows nil
+      vm-preview-lines nil
+      vm-included-text-prefix "> "
+      vm-confirm-quit 1
+      vm-auto-center-summary t
+      vm-confirm-new-folders t
+      vm-circular-folders nil
+      vm-visit-when-saving t
+      vm-move-after-deleting t
+      vm-keep-sent-messages t
+      vm-follow-summary-cursor t
+      vm-frame-per-composition nil
+      vm-frame-per-edit nil
+      vm-frame-per-summary nil
+      vm-frame-per-folder nil
+      vm-primary-inbox (concat vm-folder-directory "INBOX")
+      vm-uninteresting-senders "ian"
+      vm-spool-files '("~/mbox" "~/mail/Outbound" "~/mail/Record"
+                       "~/mail/Import" "/usr/spool/mail/ian" "~/News/r")
+      vm-startup-with-summary nil
+      vm-summary-format "%3n %a %2d %3m  %-19.19F  %s\n"
+      mail-archive-file-name "~/mail/Outbound")
+
+
+
+; A whole lot of stuff for setting the Precedence header ...
+(setq mail-precedence-key-alist
+      '((?0  . "special-delivery")
+        (?1  . "air-mail")
+        (?2  . "first-class")
+        (?3  . "second-class")
+        (?5  . "third-class")
+        (?\  . nil)
+        (?6  . "bulk")
+        (?9  . "junk")))
+;
+(defun mail-precedence-as-key ()
+  "Set precedence by looking up last command char in mail-precedence-key-alist"
+  (interactive)
+  (message "%s" (concat "Precedence ["
+                        (mapconcat '(lambda (c) (char-to-string (car c)))
+                                   mail-precedence-key-alist "")
+                        "] ?"))
+  (let* ((key (read-char))
+         (prec (assoc key mail-precedence-key-alist)))
+    (if prec (mail-precedence (cdr prec))
+      (error "mail-precedence-as-key `%s' not found" key))))
+;
+(defun mail-precedence-as-key-send-and-exit (arg)
+  "Set precedence by looking up last command char in mail-precedence-key-alist,
+then call send-and-exit."
+  (interactive "P")
+  (mail-precedence-as-key)
+  (execute-kbd-macro ""))
+;
+(defun mail-precedence (prec)
+  (save-excursion
+    (mail-position-on-field "Precedence")
+    (let ((p (point)))
+      (beginning-of-line)
+      (delete-region (point) p)
+      (if prec
+          (insert "Precedence: " prec)
+        (delete-char 1)))))
+;
+(defun mail-mode-setup-keys ()
+  (local-set-key "" 'mail-precedence-as-key)
+  (local-set-key "p" 'mail-precedence-as-key-send-and-exit))
+(add-hook 'mail-mode-hook 'mail-mode-setup-keys)
+(add-hook 'vm-mail-mode-hook 'mail-mode-setup-keys)
+;
+
+
+
+; A quick tutorial on VM's MIME display variables.
+
+; vm-display-using-mime controls whether MIME is displayed specially
+; at all.  Default value is t.
+
+; vm-auto-decode-mime-messages controls whether a MIME message is
+; decoded when the message is selected.  Decoding means parsing the
+; message to figure out what MIME types are in it.  This can be
+; slow for large messages, so you might not want it to happen
+; automatically.  Default value is t.
+
+; vm-auto-displayed-mime-content-types controls which MIME types
+; are displayed immediately after the message is decoded.
+; Default value is ("text" "multipart").
+
+; vm-auto-displayed-mime-content-type-exceptions lists exceptions
+; to the auto-displayed types.  So you can specify "text" as an
+; auto-displayed type and '("text/html") as the exceptions list to avoid
+; immediate display of text/html.  Default value is nil.
+
+
+
+
+
+
+
+
+
+
+
--- vm-8.1.0.orig/debian/examples/summary_right
+++ vm-8.1.0/debian/examples/summary_right
@@ -0,0 +1,12 @@
+;-*-emacs-lisp-*-
+
+;; This is designed for a very wide display.  I used a 163 column
+;; window under X for this.  The screen is split horizontally.
+
+;; startup = full screen summary
+;; reading-message = folder on left, summary on right
+;; composing-message = composition on left, folder on right
+;; editing-message = edit on left, summary on right
+;; vm-summarize = full screen summary
+
+((editing-message ((((visibility . t) (top . 50) (left . 8) (unsplittable) (minibuffer . t) (modeline . t) (width . 163) (height . 50) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((| (0 1 80 49) (80 1 163 49)) ((nil edit) (nil summary)) ((nil nil nil t) (nil nil nil nil)))))) (startup ((((visibility . t) (top . 140) (left . 140) (unsplittable) (minibuffer . t) (modeline . t) (width . 80) (height . 40) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((0 1 80 39) ((nil summary)) ((nil nil nil t)))))) (reading-message ((((visibility . t) (top . 50) (left . 8) (unsplittable) (minibuffer . t) (modeline . t) (width . 163) (height . 50) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((| (0 1
--- vm-8.1.0.orig/debian/examples/dot.vm-auto-spool
+++ vm-8.1.0/debian/examples/dot.vm-auto-spool
@@ -0,0 +1,13 @@
+;; Set vm-spool-files based on all filenames in vm-spool-directory.
+;; You probably don't want to do this unless you've set vm-spool-directory
+;; to point to a directory used exclusively for your own spool files.
+
+(cond ((string-equal vm-folder-directory vm-spool-directory)
+       (error "vm-folder-directory and vm-spool-directory must be different."))
+      (t
+       (setq vm-spool-files
+	     (mapcar '(lambda(spool-name)
+			(list (concat vm-folder-directory spool-name)
+			      (concat vm-spool-directory spool-name)
+			      (concat vm-folder-directory spool-name ".CRASH")))
+		     (directory-files vm-spool-directory nil "^[^.]")))))
--- vm-8.1.0.orig/debian/examples/dot.vm
+++ vm-8.1.0/debian/examples/dot.vm
@@ -0,0 +1,52 @@
+;-*-emacs-lisp-*-
+;
+; Example configuration for VM.
+;
+; Copy this file into ~/.vm and edit to taste; it will be run when vm
+; starts up.  See the vm manual - under VM in info - for more details.
+;
+; NOTE to administrators: vm works perfectly OK without this file in
+; everyone's home directory.  There's no call for it to be copied to
+; /etc/skel.
+;
+
+(setq vm-startup-with-summary t)
+(setq vm-skip-deleted-messages nil)
+(setq vm-circular-folders nil)
+(setq vm-preview-lines nil)
+(setq vm-highlighted-header-regexp "^From\\|^Subject")
+(setq vm-included-text-prefix ">")
+(setq vm-reply-subject-prefix "Re: ")
+(setq vm-folder-directory "~/mail/")
+(setq vm-delete-after-saving t)
+(setq vm-move-after-deleting t)
+(setq vm-delete-empty-folders)
+(setq vm-visible-headers '("Resent-From:" "From:" "Sender:" "To:" "Apparently-To:" "Cc:" "Subject:" "Date:"))
+
+; A quick tutorial on VM's MIME display variables.
+
+; vm-display-using-mime controls whether MIME is displayed specially
+; at all.  Default value is t.
+
+; vm-auto-decode-mime-messages controls whether a MIME message is
+; decoded when the message is selected.  Decoding means parsing the
+; message to figure out what MIME types are in it.  This can be
+; slow for large messages, so you might not want it to happen
+; automatically.  Default value is t.
+
+; vm-auto-displayed-mime-content-types controls which MIME types
+; are displayed immediately after the message is decoded.
+; Default value is ("text" "multipart").
+
+; vm-auto-displayed-mime-content-type-exceptions lists exceptions
+; to the auto-displayed types.  So you can specify "text" as an
+; auto-displayed type and '("text/html") as the exceptions list to avoid
+; immediate display of text/html.  Default value is nil.
+
+
+
+; For text/html handling you probably want to do this:
+
+; (add-to-list 'vm-mime-internal-content-type-exceptions "text/html")
+; (add-to-list 'vm-mime-external-content-types-alist
+; 	     '("text/html" "netscape -remote 'openFILE(%f)' || netscape %f"))
--- vm-8.1.0.orig/debian/examples/summary_bottom
+++ vm-8.1.0/debian/examples/summary_bottom
@@ -0,0 +1,9 @@
+;-*-emacs-lisp-*-
+
+;; startup = full screen summary
+;; reading-message = folder on top, summary on bottom
+;; composing-message = composition on top, summary on bottom
+;; editing-message = edit on top, summary on bottom
+;; vm-summarize = full screen summary
+
+((editing-message ((((visibility . t) (top . 52) (left . 172) (unsplittable) (minibuffer . t) (modeline . t) (width . 80) (height . 40) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((- (0 1 80 31) (0 31 80 39)) ((nil edit) (nil summary)) ((nil nil nil t) (nil nil nil nil)))))) (startup ((((visibility . t) (top . 140) (left . 140) (unsplittable) (minibuffer . t) (modeline . t) (width . 80) (height . 40) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((0 1 80 39) ((nil summary)) ((nil nil nil t)))))) (reading-message ((((visibility . t) (top . 52) (left . 172) (unsplittable) (minibuffer . t) (modeline . t) (width . 80) (height . 40) (menu-bar-lines . 1) (cursor-type . box) (auto-lower) (auto-raise) (icon-type) (vertical-scroll-bars . t) (internal-border-width . 2) (border-width . 2))) (((- (0 
--- vm-8.1.0.orig/info/version.texi
+++ vm-8.1.0/info/version.texi
@@ -0,0 +1 @@
+@set VERSION 8.1.0
--- vm-8.1.0.orig/src/Makefile.in
+++ vm-8.1.0/src/Makefile.in
@@ -8,6 +8,8 @@
 
 OBJECTS = $(SOURCES:.c=.o)
 
+MANS = $(wildcard *.1)
+
 ##############################################################################
 # location of required programms
 prefix = @prefix@
@@ -16,11 +18,13 @@
 RM   = @RM@
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA	= @INSTALL_DATA@
 
 prefix = @prefix@
 top_srcdir = @top_srcdir@
 srcdir = @srcdir@
 bindir= @bindir@
+mandir= @mandir@
 
 ##############################################################################
 all: $(SOURCES:.c=)
@@ -31,6 +35,11 @@
 	  echo "Installing $$i in $(DESTDIR)$(bindir)" ;           \
           $(INSTALL_PROGRAM) $$i "$(DESTDIR)$(bindir)" ;           \
         done ;
+	@test -d $(DESTDIR)$(mandir)      ||                       \
+           mkdir -p -m 0755 "$(DESTDIR)$(mandir)/man1";            \
+        for i in $(MANS) ; do                                      \
+          $(INSTALL_DATA) $$i "$(DESTDIR)$(mandir)/man1" ;         \
+        done
 	@echo VM helper binaries successfully installed\!
 
 ##############################################################################
--- vm-8.1.0.orig/src/base64-decode.c
+++ vm-8.1.0/src/base64-decode.c
@@ -4,6 +4,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 #ifdef _WIN32
 #ifndef WIN32
@@ -19,10 +20,10 @@
 unsigned char alphabet[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
 
 int
-main()
+main(void)
 {
-	static char inalphabet[256], decoder[256];
-	int i, bits, c, char_count, errors = 0;
+    static char inalphabet[256], decoder[256];
+    int i, bits, char_count, errors = 0;
 
 #ifdef WIN32
 	_setmode( _fileno(stdout), _O_BINARY);
@@ -33,45 +34,62 @@
 	decoder[alphabet[i]] = i;
 	}
 
-	char_count = 0;
-	bits = 0;
-	while ((c = getchar()) != EOF) {
-	if (c == '=')
-	  break;
-	if (c > 255 || ! inalphabet[c])
-	  continue;
-	bits += decoder[c];
-	char_count++;
-	if (char_count == 4) {
-		putchar((bits >> 16));
-		putchar(((bits >> 8) & 0xff));
-		putchar((bits & 0xff));
-		bits = 0;
-		char_count = 0;
-	} else {
-		bits <<= 6;
-	}
-	}
-	if (c == EOF) {
-	if (char_count) {
-		fprintf(stderr, "base64 encoding incomplete: at least %d bits truncated",
-			((4 - char_count) * 6));
-		errors++;
-	}
-	} else { /* c == '=' */
-	switch (char_count) {
-	  case 1:
-		fprintf(stderr, "base64 encoding incomplete: at least 2 bits missing");
-		errors++;
-		break;
-	  case 2:
-		putchar((bits >> 10));
-		break;
-	  case 3:
-		putchar((bits >> 16));
-		putchar(((bits >> 8) & 0xff));
-		break;
-	}
-	}
-	exit(errors ? 1 : 0);
+#define BUFLEN 72*500 // must be multiple of 4
+
+    int len;
+    char buf[BUFLEN];
+    char outbuf[BUFLEN];
+
+    while(!feof(stdin)) {
+        unsigned char c;
+
+        int pos=0;
+        char *out=outbuf;
+        len=fread(buf, sizeof(c), BUFLEN, stdin);
+        if(!len) continue;
+
+cont_buffer:
+        char_count = 0;
+        bits = 0;
+        while(pos<len) {
+            c=buf[pos++];
+            if (c == '=')
+                break;
+            if (! inalphabet[c])
+                continue;
+            bits += decoder[c];
+            char_count++;
+            if (char_count == 4) {
+                *out++ = ((bits >> 16));
+                *out++ = (((bits >> 8) & 0xff));
+                *out++ = ((bits & 0xff));
+                bits = 0;
+                char_count = 0;
+            } else {
+                bits <<= 6;
+            }
+        }
+        switch (char_count) {
+            case 1:
+                fprintf(stderr, "base64-decode: base64 encoding incomplete: at least 2 bits missing");
+                errors++;
+                break;
+            case 2:
+                *out++ = ((bits >> 10));
+                break;
+            case 3:
+                *out++ = ((bits >> 16));
+                *out++ = (((bits >> 8) & 0xff));
+                break;
+            case 0:
+                break;
+            default:
+                fprintf(stderr, "base64-decode: base64 encoding incomplete: at least %d bits truncated",
+                        ((4 - char_count) * 6));
+        }
+        if(pos<len) // did not proceed the whole thing, continue
+            goto cont_buffer;
+        fwrite(outbuf, sizeof(char), (out-outbuf), stdout);
+    }
+    exit(errors ? 1 : 0);
 }
--- vm-8.1.0.orig/src/qp-decode.1
+++ vm-8.1.0/src/qp-decode.1
@@ -0,0 +1,51 @@
+.\"                             -*- Mode: Nroff -*- 
+.\" Copyright (C) 2000 Manoj Srivastava <srivasta@debian.org>.
+.\"
+.\" Permission is granted to make and distribute verbatim copies of
+.\" this manual provided the copyright notice and this permission notice
+.\" are preserved on all copies.
+.\" 
+.\" Permission is granted to copy and distribute modified versions of this
+.\" manual under the conditions for verbatim copying, provided that the entire
+.\" resulting derived work is distributed under the terms of a permission
+.\" notice identical to this one.
+.\" 
+.\" Permission is granted to copy and distribute translations of this manual
+.\" into another language, under the above conditions for modified versions,
+.\" except that this permission notice may be stated in a translation approved
+.\" by the Author.
+.\"
+.\" Author: Manoj Srivastava
+.\"
+.\" arch-tag: cfe27e82-b7a5-4171-bef6-f7bc28306374
+.\"
+.TH QP\-DECODE 1 "Sep 2 2000" "Debian" "Debian GNU/Linux manual"
+.SH NAME 
+qp\-decode \- Fast Quoted Printable decoder
+.SH SYNOPSIS
+.B qp\-decode 
+< 
+.I qp\-encoded data
+> 
+.I converted output
+.SH DESCRIPTION
+The
+.B qp\-decode
+utility takes Quoted Printable data on the standard input and converts
+it to the  standard output. 
+.PP
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.SH OPTIONS
+.B qp\-encode
+does not take any arguments or options.
+.SH BUGS
+None known.
+.SH SEE ALSO
+.I qp\-encode (1)
+.SH AUTHORS
+.B qp\-decode
+was written by Kyle Jones. and placed by him into the public domain.
+This manual page was written by Manoj Srivastava <srivasta@debian.org>,
+for the Debian GNU/Linux system.
+
--- vm-8.1.0.orig/src/base64-decode.1
+++ vm-8.1.0/src/base64-decode.1
@@ -0,0 +1,50 @@
+.\"                             -*- Mode: Nroff -*- 
+.\" Copyright (C) 2000 Manoj Srivastava <srivasta@debian.org>.
+.\"
+.\" Permission is granted to make and distribute verbatim copies of
+.\" this manual provided the copyright notice and this permission notice
+.\" are preserved on all copies.
+.\" 
+.\" Permission is granted to copy and distribute modified versions of this
+.\" manual under the conditions for verbatim copying, provided that the entire
+.\" resulting derived work is distributed under the terms of a permission
+.\" notice identical to this one.
+.\" 
+.\" Permission is granted to copy and distribute translations of this manual
+.\" into another language, under the above conditions for modified versions,
+.\" except that this permission notice may be stated in a translation approved
+.\" by the Author.
+.\"
+.\" Author: Manoj Srivastava
+.\"
+.\" arch-tag: e94acb5a-38da-416b-b01d-9196c0836599
+.\"
+.TH BASE64\-DECODE 1 "Sep 2 2000" "Debian" "Debian GNU/Linux manual"
+.SH NAME 
+base64\-decode \- Fast BASE64 decoder
+.SH SYNOPSIS
+.B base64\-decode 
+< 
+.I base64\-encoded data
+> 
+.I converted output
+.SH DESCRIPTION
+The
+.B base64\-decode
+utility takes BASE64 data on the standard input and converts
+it to the  standard output. 
+.PP
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.SH OPTIONS
+.B base64\-encode
+does not take any arguments or options.
+.SH BUGS
+None known.
+.SH SEE ALSO
+.I base64\-encode (1)
+.SH AUTHORS
+.B base64\-decode
+was written by Kyle Jones. and placed by him into the public domain.
+This manual page was written by Manoj Srivastava <srivasta@debian.org>,
+for the Debian GNU/Linux system.
--- vm-8.1.0.orig/src/qp-decode.c
+++ vm-8.1.0/src/qp-decode.c
@@ -5,6 +5,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 #ifdef _WIN32
 #ifndef WIN32
@@ -17,11 +18,11 @@
 #include <fcntl.h>
 #endif
 
-char *hexdigits  = "0123456789ABCDEF";
-char *hexdigits2 = "0123456789abcdef";
+const char *hexdigits  = "0123456789ABCDEF";
+const char *hexdigits2 = "0123456789abcdef";
 
 int
-main()
+main(void)
 {
     char line[2000], *start, *stop, *copy;
     char *d1, *d2, c;
@@ -90,11 +91,8 @@
 		for (stop++; *stop && (*stop == ' ' || *stop == '\t'); stop++)
 		    ;
 	    } else {
-		fprintf(stderr, "Error: line %d: '%c' is something other than line break or hex digit after = in quoted-printable encoding\n", lineno, *stop);
-		putchar('=');
-		putchar(*stop);
-		stop++;
-		/* 		exit(1); */
+		fprintf(stderr, "qp-decode:line %d: something other than line break or hex digits after = in quoted-printable encoding\n", lineno);
+		exit(1);
 	    }
 	    start = stop;
 	    goto keep_processing;
--- vm-8.1.0.orig/src/base64-encode.c
+++ vm-8.1.0/src/base64-encode.c
@@ -8,6 +8,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 #ifdef _WIN32
 #ifndef WIN32
@@ -23,7 +24,7 @@
 unsigned char alphabet[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
 
 int
-main()
+main(void)
 {
 	int cols, bits, c, char_count;
 
--- vm-8.1.0.orig/src/base64-encode.1
+++ vm-8.1.0/src/base64-encode.1
@@ -0,0 +1,51 @@
+.\"                             -*- Mode: Nroff -*- 
+.\" Copyright (C) 2000 Manoj Srivastava <srivasta@debian.org>.
+.\"
+.\" Permission is granted to make and distribute verbatim copies of
+.\" this manual provided the copyright notice and this permission notice
+.\" are preserved on all copies.
+.\" 
+.\" Permission is granted to copy and distribute modified versions of this
+.\" manual under the conditions for verbatim copying, provided that the entire
+.\" resulting derived work is distributed under the terms of a permission
+.\" notice identical to this one.
+.\" 
+.\" Permission is granted to copy and distribute translations of this manual
+.\" into another language, under the above conditions for modified versions,
+.\" except that this permission notice may be stated in a translation approved
+.\" by the Author.
+.\"
+.\" Author: Manoj Srivastava
+.\"
+.\" arch-tag: 6563f4a9-302a-4d17-986a-42be5fb1d1c9
+.\"
+.TH BASE64\-ENCODE 1 "Sep 2 2000" "Debian" "Debian GNU/Linux manual"
+.SH NAME 
+base64\-encode \- Fast Base 64 encoder
+.SH SYNOPSIS
+.B base64\-encode 
+< 
+.I input 
+> 
+.I base64\-encoded output
+.SH DESCRIPTION
+The
+.B base64\-encode
+utility takes arbitrary data on the standard input and converts
+it to BASE64 data on standard output. UNIX's newline convention is
+used, i.e. one ASCII control-j (10 decimal). 
+.PP
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.SH OPTIONS
+.B base64\-encode
+does not take any arguments or options.
+.SH BUGS
+None known.
+.SH SEE ALSO
+.I base64\-decode (1)
+.SH AUTHORS
+.B base64\-encode
+was written by Kyle Jones. and placed by him into the public domain.
+This manual page was written by Manoj Srivastava <srivasta@debian.org>,
+for the Debian GNU/Linux system.
--- vm-8.1.0.orig/src/qp-encode.c
+++ vm-8.1.0/src/qp-encode.c
@@ -8,6 +8,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 #ifdef _WIN32
 #ifndef WIN32
@@ -20,10 +21,10 @@
 #include <fcntl.h>
 #endif
 
-char *hexdigits  = "0123456789ABCDEF";
+const char *hexdigits  = "0123456789ABCDEF";
 
 int
-main()
+main(void)
 {
 	int c;
 	int cols = 0;
--- vm-8.1.0.orig/src/qp-encode.1
+++ vm-8.1.0/src/qp-encode.1
@@ -0,0 +1,51 @@
+.\"                             -*- Mode: Nroff -*- 
+.\" Copyright (C) 2000 Manoj Srivastava <srivasta@debian.org>.
+.\"
+.\" Permission is granted to make and distribute verbatim copies of
+.\" this manual provided the copyright notice and this permission notice
+.\" are preserved on all copies.
+.\" 
+.\" Permission is granted to copy and distribute modified versions of this
+.\" manual under the conditions for verbatim copying, provided that the entire
+.\" resulting derived work is distributed under the terms of a permission
+.\" notice identical to this one.
+.\" 
+.\" Permission is granted to copy and distribute translations of this manual
+.\" into another language, under the above conditions for modified versions,
+.\" except that this permission notice may be stated in a translation approved
+.\" by the Author.
+.\"
+.\" Author: Manoj Srivastava
+.\"
+.\"  arch-tag: bc2b7485-8846-4a92-9e54-8fd22a778663
+.\"
+.TH QP\-ENCODE 1 "Sep 2 2000" "Debian" "Debian GNU/Linux manual"
+.SH NAME 
+qp\-encode \- Fast Quoted Printable encoder
+.SH SYNOPSIS
+.B qp\-encode 
+< 
+.I input 
+> 
+.I qp\-encoded output
+.SH DESCRIPTION
+The
+.B qp\-encode
+utility takes arbitrary data on the standard input and converts
+it to Quoted Printable data on standard output.
+.PP
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.SH OPTIONS
+.B qp\-encode
+does not take any arguments or options.
+.SH BUGS
+None known.
+.SH SEE ALSO
+.I qp\-decode (1)
+.SH AUTHORS
+.B qp\-encode
+was written by Kyle Jones. and placed by him into the public domain.
+This manual page was written by Manoj Srivastava <srivasta@debian.org>,
+for the Debian GNU/Linux system.
+
--- vm-8.1.0.orig/lisp/Makefile.in
+++ vm-8.1.0/lisp/Makefile.in
@@ -126,12 +126,14 @@
 
 ##############################################################################
 # GNU Emacs's vm-autoload file
+# Since Debian compiles the files on the fly on the target machine, 
+# Do not depend on the absolute file path of the source directory to exist
 vm-autoloads.el: $(SOURCES:%=@srcdir@/%)
 	-$(RM) -f $@
 	echo > $@
 	(build_dir="`pwd`"; cd "@srcdir@"; \
 	 "$(EMACS_PROG)" $(FLAGS) -l autoload \
-		-f vm-built-autoloads "@abs_builddir@/$@" "`pwd`")
+		-f vm-built-autoloads "`pwd`/$@" "`pwd`")
 	echo "(custom-add-load 'vm 'vm-cus-load)" >> $@
 	echo "(setq vm-configure-datadir \"${datadir}\")" >> $@
 	echo "(setq vm-configure-pixmapdir \"${pixmapdir}\")" >> $@
--- vm-8.1.0.orig/lisp/vm.el
+++ vm-8.1.0/lisp/vm.el
@@ -1294,8 +1294,6 @@
 (autoload 'tapestry-replace-tapestry-element "tapestry")
 (autoload 'tapestry-nullify-tapestry-elements "tapestry")
 (autoload 'tapestry-remove-frame-parameters "tapestry")
-(autoload 'vm-easy-menu-define "vm-easymenu" nil 'macro)
-(autoload 'vm-easy-menu-do-define "vm-easymenu")
 
 (provide 'vm)
 
