[mb2md] 01/30: Imported Debian patch 3.20-1

Axel Beckert abe at deuxchevaux.org
Wed Oct 16 21:56:25 UTC 2013


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch master
in repository mb2md.

commit b12b4a743d177737b88b175c53ab810576ef6de6
Author: Noèl Köthe <noel at debian.org>
Date:   Fri Apr 9 14:29:28 2004 +0200

    Imported Debian patch 3.20-1
---
 USAGE             |  282 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/changelog  |   62 ++++++++++++
 debian/compat     |    1 +
 debian/control    |   32 ++++++
 debian/copyright  |   12 +++
 debian/dirs       |    2 +
 debian/docs       |    1 +
 debian/mb2md.sgml |  226 ++++++++++++++++++++++++++++++++++++++++++
 debian/rules      |   95 ++++++++++++++++++
 mb2md.1           |  143 +++++++++++++++++++++++++++
 10 files changed, 856 insertions(+)

diff --git a/USAGE b/USAGE
new file mode 100644
index 0000000..271ef3b
--- /dev/null
+++ b/USAGE
@@ -0,0 +1,282 @@
+# USAGE
+# =====
+#
+# Run this as the user of the mailboxes, not as root.
+#
+#
+# mb2md -h
+# mb2md [-c] -m [-d destdir]
+# mb2md [-c] -s sourcefile [-d destdir]
+# mb2md [-c] -s sourcedir [-l wu-mailboxlist] [-R|-f somefolder] [-d destdir] [-r strip_extension]
+#
+#  -c            use the Content-Length: headers (if present) to find the
+#                beginning of the next message
+#                Use with caution! Results may be unreliable. I recommend to do
+#                a run without "-c" first and only use it if you are certain,
+#                that the mbox in question really needs the "-c" option
+#
+#  -m            If this is used then the source will
+#                be the single mailbox at /var/spool/mail/blah for
+#                user blah and the destination mailbox will be the
+#                "destdir" mailbox itself.
+#
+#
+#  -s source     Directory or file relative to the user's home directory,
+#                which is where the the "somefolders" directories are located.
+#                Or if starting with a "/" it is taken as a
+#                absolute path, e.g. /mnt/oldmail/user
+#
+#                or
+#
+#                A single mbox file which will be converted to
+#                the destdir.
+#
+#  -R		 If defined, do not skip directories found in a mailbox 
+#		 directory, but runs recursively into each of them, 
+# 		 creating all wanted folders in Maildir.
+#		 Incompatible with '-f'
+#
+#  -f somefolder Directories, relative to "sourcedir" where the Mbox files
+#                are. All mailboxes in the "sourcedir"
+#                directory will be converted and placed in the
+#                "destdir" directory.  (Typically the Inbox directory
+#                which in this instance is also functioning as a
+#                folder for other mailboxes.)
+#
+#                The "somefolder" directory
+#                name will be encoded into the new mailboxes' names.
+#                See the examples below.
+#
+#                This does not save an UW IMAP dummy message file
+#                at the start of the Mbox file.  Small changes
+#                in the code could adapt it for looking for
+#                other distinctive patterns of dummy messages too.
+#
+#                Don't let the source directory you give as "somefolders"
+#                contain any "."s in its name, unless you want to
+#                create subfolders from the IMAP user's point of
+#                view.  See the example below.
+#
+#                Incompatible with '-f'
+#
+#
+#  -d destdir    Directory where the Maildir format directories will be created.
+#                If not given, then the destination will be ~/Maildir .
+#                Typically, this is what the IMAP server sees as the
+#                Inbox and the folder for all user mailboxes.
+#                If this begins with a '/' the path is considered to be
+#                absolute, otherwise it is relative to the users
+#                home directory.
+#
+#  -r strip_ext  If defined this extension will be stripped from
+#                the original mailbox file name before creating
+#                the corresponding maildir. The extension must be
+#                given without the leading dot ("."). See the example below.
+#
+#  -l WU-file    File containing the list of subscribed folders.  If
+#                migrating from WU-IMAP the list of subscribed folders will
+#                be found in the file called .mailboxlist in the users
+#                home directory.  This will convert all subscribed folders
+#                for a single user:
+#                /bin/mb2md -s mail -l .mailboxlist -R -d Maildir
+#                and for all users in a directory as root you can do the
+#                following:
+#                for i in *; do echo $i;su - $i -c "/bin/mb2md -s mail -l .mailboxlist -R -d Maildir";done
+#
+#
+#  Example
+#  =======
+#
+# We have a bunch of directories of Mbox mailboxes located at
+# /home/blah/oldmail/
+#
+#     /home/blah/oldmail/fffff
+#     /home/blah/oldmail/ggggg
+#     /home/blah/oldmail/xxx/aaaa
+#     /home/blah/oldmail/xxx/bbbb
+#     /home/blah/oldmail/xxx/cccc
+#     /home/blah/oldmail/xxx/dddd
+#     /home/blah/oldmail/yyyy/huey
+#     /home/blah/oldmail/yyyy/duey
+#     /home/blah/oldmail/yyyy/louie
+#
+# With the UW IMAP server, fffff and ggggg would have appeared in the root
+# of this mail server, along with the Inbox.  aaaa, bbbb etc, would have
+# appeared in a folder called xxx from that root, and xxx was just a folder
+# not a mailbox for storing messages.
+#
+# We also have the mailspool Inbox at:
+#
+#     /var/spool/mail/blah
+#
+#
+# To convert these, as user blah, we give the first command:
+#
+#    mb2md -m
+#
+# The main Maildir directory will be created if it does not exist.
+# (This is true of any argument options, not just "-m".)
+#
+#    /home/blah/Maildir/
+#
+# It has the following subdirectories:
+#
+#    /home/blah/Maildir/tmp/
+#    /home/blah/Maildir/new/
+#    /home/blah/Maildir/cur/
+#
+# Then /var/spool/blah file is read, split into individual files and
+# written into /home/blah/Maildir/cur/ .
+#
+# Now we give the second command:
+#
+#    mb2md  -s oldmail -R
+#
+# This reads recursively all Mbox mailboxes and creates:
+#
+#    /home/blah/Maildir/.fffff/
+#    /home/blah/Maildir/.ggggg/
+#    /home/blah/Maildir/.xxx/
+#    /home/blah/Maildir/.xxx.aaaa/
+#    /home/blah/Maildir/.xxx.bbbb/
+#    /home/blah/Maildir/.xxx.cccc/
+#    /home/blah/Maildir/.xxx.aaaa/
+#    /home/blah/Maildir/.yyyy/
+#    /home/blah/Maildir/.yyyy.huey/
+#    /home/blah/Maildir/.yyyy.duey/
+#    /home/blah/Maildir/.yyyy.louie/
+#
+#  The result, from the IMAP client's point of view is:
+#
+#    Inbox -----------------
+#        |
+#        | fffff -----------
+#        | ggggg -----------
+#        |
+#        - xxx -------------
+#        |   | aaaa --------
+#        |   | bbbb --------
+#        |   | cccc --------
+#        |   | dddd --------
+#        |
+#        - yyyy ------------
+#             | huey -------
+#             | duey -------
+#             | louie ------
+#
+# Note that although ~/Maildir/.xxx/ and ~/Maildir/.yyyy may appear
+# as folders to the IMAP client the above commands to not generate
+# any Maildir folders of these names.  These are simply elements
+# of the names of other Maildir directories. (if you used '-R', they 
+# whill be able to act as normal folders, containing messages AND folders)
+#
+# With a separate run of this script, using just the "-s" option
+# without "-f" nor "-R", it would be possible to create mailboxes which
+# appear at the same location as far as the IMAP client is
+# concerned.  By having Mbox mailboxes in some directory:
+# ~/oldmail/nnn/ of the form:
+#
+#     /home/blah/oldmail/nn/xxxx
+#     /home/blah/oldmail/nn/yyyyy
+#
+# then the command:
+#
+#   mb2md -s oldmail/nn
+#
+# will create two new Maildirs:
+#
+#    /home/blah/Maildir/.xxx/
+#    /home/blah/Maildir/.yyyy/
+#
+# Then what used to be the xxx and yyyy folders now function as
+# mailboxes too.  Netscape 4.77 needed to be put to sleep and given ECT
+# to recognise this - deleting the contents of (Win2k example):
+#
+#    C:\Program Files\Netscape\Users\uu\ImapMail\aaa.bbb.ccc\
+#
+# where "uu" is the user and "aaa.bbb.ccc" is the IMAP server
+#
+# I often find that deleting all this directory's contents, except
+# "rules.dat", forces Netscape back to reality after its IMAP innards
+# have become twisted.  Then maybe use File > Subscribe - but this
+# seems incapable of subscribing to folders.
+#
+# For Outlook Express, select the mail server, then click the
+# "IMAP Folders" button and use "Reset list".  In the "All"
+# window, select the mailboxes you want to see in normal
+# usage.
+#
+#
+# This script did not recurse subdirectories or delete old mailboxes, before addition of the '-R' parameter :)
+#
+# Be sure not to be accessing the Mbox mailboxes while running this
+# script.  It does not attempt to lock them.  Likewise, don't run two
+# copies of this script either.
+#
+#
+# Trickier usage . . .
+# ====================
+#
+# If you have a bunch of mailboxes in a directory ~/oldmail/doors/
+# and you want them to appear in folders such as:
+#
+# ~/Maildir/.music.bands.doors.Jim
+# ~/Maildir/.music.bands.doors.John
+#
+# etc. so they appear in an IMAP folder:
+#
+#    Inbox -----------------
+#        | music
+#              | bands
+#                    | doors
+#                          | Jim
+#                          | John
+#                          | Robbie
+#                          | Ray
+#
+# Then you could rename the source directory to:
+#
+#  ~/oldmail/music.bands.doors/
+#
+# then use:
+#
+#   mb2md -s oldmail -f music.bands.doors
+#
+#
+# Or simply use '-R' switch with:
+#   mb2md -s oldmail -R
+#
+#
+# Stripping mailbox extensions:
+# ============================= 
+#
+# If you want to convert mailboxes that came for example from
+# a Windows box than you might want to strip the extension of
+# the mailbox name so that it won't create a subfolder in your
+# mail clients view.
+#
+# Example:
+# You have several mailboxes named Trash.mbx, Sent.mbx, Drafts.mbx
+# If you don't strip the extension "mbx" you will get the following
+# hierarchy:
+#
+# Inbox
+#      |
+#       - Trash 
+#      |       | mbx
+#      |
+#       - Sent 
+#      |       | mbx
+#      |
+#       - Drafts 
+#              | mbx
+#
+# This is more than ugly!
+# Just use:
+#   mb2md -s oldmail -r mbx
+#
+# Note: don't specify the dot! It will be stripped off
+# automagically ;)
+#
+#------------------------------------------------------------------------------
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d8f89ce
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,62 @@
+mb2md (3.20-1) unstable; urgency=low
+
+  * new upstream release 2004-03-28
+  * added support for \r\n mboxes
+    (closes: Bug#231190)
+    (closes: Bug#231188)
+  * "follow the Maildir spec more closely"
+    (closes: Bug#208240)
+
+ -- Noèl Köthe <noel at debian.org>  Fri, 09 Apr 2004 14:29:28 +0200
+
+mb2md (3.10-6) unstable; urgency=low
+
+  * updated Standards-Version
+  * control, copyright and changelog are now utf8
+  * correct mb2md-h in manpage
+    (closes: Bug#207563)
+  * added missing USAGE to package and a hint into the manpage
+    (closes: Bug#207571)
+    (closes: Bug#207566)
+
+ -- Noèl Köthe <noel at debian.org>  Wed, 10 Sep 2003 21:40:00 +0200
+
+mb2md (3.10-5) unstable; urgency=low
+
+  * added missing build-dep docbook-to-man
+    (closes: Bug#191726)
+
+ -- Noel Koethe <noel at debian.org>  Mon,  5 Mai 2003 20:34:00 +0100
+
+mb2md (3.10-4) unstable; urgency=low
+
+  * command name is now "mb2md" without version and without .pl
+    (closes: Bug#191614)
+  * added manpage to the package
+    (closes: Bug#189608)
+
+ -- Noel Koethe <noel at debian.org>  Fri,  2 Mai 2003 11:58:00 +0100
+
+mb2md (3.10-3) unstable; urgency=low
+
+  * added patch from Glen Harris which added correct handling
+    when $MAIL isn't set.
+    (closes: Bug#187532)
+  * fixed spelling error in description
+  * updated Standards-Version to 3.5.9
+
+ -- Noel Koethe <noel at debian.org>  Sun,  6 Apr 2003 22:38:00 +0100
+
+mb2md (3.10-2) unstable; urgency=low
+
+  * corrected debian/rules for the missing Debian changelog
+
+ -- Noel Koethe <noel at debian.org>  Sat,  8 Mar 2003 12:17:00 +0100
+
+mb2md (3.10-1) unstable; urgency=low
+
+  * Initial Release.
+    (closes: Bug#183073)
+
+ -- Noel Koethe <noel at debian.org>  Fri,  7 Mar 2003 22:03:12 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..3013f0f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,32 @@
+Source: mb2md
+Section: net
+Priority: optional
+Maintainer: Noèl Köthe <noel at debian.org>
+Build-Depends: debhelper (>> 4.0.0), docbook-to-man
+Standards-Version: 3.6.1
+
+Package: mb2md
+Architecture: all
+Depends: perl5, libtimedate-perl
+Description: Converting Mbox mailboxes to Maildir format
+ A Perl script that takes one or more Mbox format mailbox files in a
+ directory and convert them to Maildir format mailboxes.As the Mbox
+ format has some drawbacks, D. J. Bernstein created the Maildir format
+ when he wrote Qmail. With the Mbox format all mail of a specific
+ folder is stored as one large text file. The Maildir format stores
+ each mail as a separate file. It is a faster and more efficient way
+ to store mail. It works particularly well over NFS, which has a long
+ history of locking-related woes.
+ The Mbox format is used by most of the POP3/IMAP servers, most mail
+ servers (MTAs) and mail readers (MUAs). The Maildir format is used
+ by Qmail, Courier-MTA and can be also used as a alternative mail
+ storage format by Postfix and Exim. A good POP3/IMAP server for
+ Maildirs is Courier IMAP.
+ .
+ Mb2md.pl does not only convert mailbox files into a Maildir but
+ also the /var/spool/mail/$USER mailspool file. It is smart enough
+ to not transfer a dummy message such as the UW IMAPD puts at the
+ start of Mbox mailboxes - and you could add your own search terms
+ into the script to make it ignore other forms of dummy first message.
+ .
+ http://batleth.sapienti-sat.org/projects/mb2md/
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5e893fc
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,12 @@
+This package was debianized by
+Noèl Köthe <noel at debian.org> on Fri,  7 Mar 2003 22:03:12 +0100.
+
+It was downloaded from http://batleth.sapienti-sat.org/projects/mb2md/
+
+Upstream Authors: Juri Haberland <juri at koschikode.com>
+
+Copyright:
+
+# mb2md-3.10.pl      Converts Mbox mailboxes to Maildir format.
+#
+# Public domain.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..e3e0567
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/doc/mb2md
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..45d9e7d
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+USAGE
diff --git a/debian/mb2md.sgml b/debian/mb2md.sgml
new file mode 100644
index 0000000..5546918
--- /dev/null
+++ b/debian/mb2md.sgml
@@ -0,0 +1,226 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+                                                                                                
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
+     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+     less'.  A typical entry in a Makefile or Makefile.am is:
+                                                                                                
+manpage.1: manpage.sgml
+        docbook-to-man $< > $@
+                                                                                                
+                                                                                                
+        The docbook-to-man binary is found in the docbook-to-man package.
+        Please remember that if you create the nroff version in one of the
+        debian/rules file targets (such as build), you will need to include
+        docbook-to-man in your Build-Depends control field.
+                                                                                                
+  -->
+                                                                                                
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Noèl</firstname>">
+  <!ENTITY dhsurname   "<surname>Köthe</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>2003-05-02</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>noel at debian.org</email>">
+  <!ENTITY dhusername  "Noèl Köthe">
+  <!ENTITY dhucpackage "<refentrytitle>MB2MD</refentrytitle>">
+  <!ENTITY dhpackage   "mb2md">
+                                                                                                
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2003</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+                                                                                                
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+                                                                                                
+    <refpurpose>Converts Mbox mailboxes to Maildir format.</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <arg><option>-h</option></arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <arg><option>-m</option></arg> <arg><option>-d <replaceable>destdir</replaceable></option></arg>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <arg>-s <replaceable>sourcedir</replaceable> <option>-R|-f <replaceable>somefolder</replaceable></option> <option>-d <replaceable>destdir</replaceable></option> <option>-r <replaceable>strip_extension</replaceable></option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+                                                                                                
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command>.</para>
+ 
+    <para><command>&dhpackage;</command> 
+    Converts Mbox mailboxes to Maildir format.</para>
+                                                                                                
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-h</option>
+        </term>
+        <listitem>
+          <para>Show summary of options.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-m</option>
+        </term>
+        <listitem>
+          <para>If this is used then the source will
+          be the single mailbox at /var/spool/mail/blah for
+          user blah and the destination mailbox will be the
+          "destdir" mailbox itself.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-s</option> <replaceable>sourcedir</replaceable>
+        </term>
+        <listitem>
+          <para>Directory, relative to the user's home directory,
+          which is where the the "somefolders" directories are located.
+          Or if directory starts with a "/" it is taken as a
+          absolute path, e.g. /mnt/oldmail/user _OR_
+          A single mbox file which will be converted to
+          the destdir.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-R</option>
+        </term>
+        <listitem>
+          <para>If defined, do not skip directories found in a mailbox
+          directory, but runs recursively into each of them,
+          creating all wanted folders in Maildir.</para>
+          <para>
+          Incompatible with '-f'</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-f</option> <replaceable>somefolder</replaceable>
+        </term>
+        <listitem>
+          <para>
+                Directories, relative to "sourcedir" where the Mbox files
+                are. All mailboxes in the "sourcedir"
+                directory will be converted and placed in the
+                "destdir" directory.  (Typically the Inbox directory
+                which in this instance is also functioning as a
+                folder for other mailboxes.)</para>
+          <para>
+                The "somefolder" directory
+                name will be encoded into the new mailboxes' names.
+                See the examples below.</para>
+          <para>
+                This does not save an UW IMAP dummy message file
+                at the start of the Mbox file.  Small changes
+                in the code could adapt it for looking for
+                other distinctive patterns of dummy messages too.</para>
+          <para>
+                Don't let the source directory you give as "somefolders"
+                contain any "."s in its name, unless you want to
+                create subfolders from the IMAP user's point of
+                view.  See the example below.</para>
+          <para>
+                Incompatible with '-R' </para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-d</option> <replaceable>destdir</replaceable>
+        </term>
+        <listitem>
+          <para>
+                Directory where the Maildir format directories will be created.
+                If not given, then the destination will be ~/Maildir .
+                Typically, this is what the IMAP server sees as the
+                Inbox and the folder for all user mailboxes.
+                If this begins with a '/' the path is considered to be
+                absolute, otherwise it is relative to the users
+                home directory.
+          </para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-d</option> <replaceable>strip_extension</replaceable>
+        </term>
+        <listitem>
+          <para>
+                If defined this extension will be stripped from
+                the original mailbox file name before creating
+                the corresponding maildir. The extension must be
+                given without the leading dot ("."). See the example below.
+          </para>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+  </refsect1>
+  <refsect1>
+    <title>USAGE</title>
+    <para>Please read the USAGE documentation
+      (zless /usr/share/doc/mb2md/USAGE.gz).</para>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+                                                                                                
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the &gnu; Free Documentation
+      License, Version 1.1 or any later version published by the Free
+      Software Foundation; with no Invariant Sections, no Front-Cover
+      Texts and no Back-Cover Texts.</para>
+                                                                                                
+  </refsect1>
+</refentry>
+                                                                                                
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3ea0289
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,95 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	#$(MAKE)
+	/usr/bin/docbook-to-man debian/mb2md.sgml > mb2md.1
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	#-$(MAKE) clean
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/mb2md.
+	#$(MAKE) install DESTDIR=$(CURDIR)/debian/mb2md
+	cp mb2md-3.20.pl $(CURDIR)/debian/mb2md/usr/bin/mb2md
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+#	dh_installexamples
+#	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman mb2md.1
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/mb2md.1 b/mb2md.1
new file mode 100644
index 0000000..89fea68
--- /dev/null
+++ b/mb2md.1
@@ -0,0 +1,143 @@
+.\" $Header: /aolnet/dev/src/CVS/sgml/docbook-to-man/cmd/docbook-to-man.sh,v 1.1.1.1 1998/11/13 21:31:59 db3l Exp $
+.\"
+.\"	transcript compatibility for postscript use.
+.\"
+.\"	synopsis:  .P! <file.ps>
+.\"
+.de P!
+.fl
+\!!1 setgray
+.fl
+\\&.\"
+.fl
+\!!0 setgray
+.fl			\" force out current output buffer
+\!!save /psv exch def currentpoint translate 0 0 moveto
+\!!/showpage{}def
+.fl			\" prolog
+.sy sed -e 's/^/!/' \\$1\" bring in postscript file
+\!!psv restore
+.
+.de pF
+.ie     \\*(f1 .ds f1 \\n(.f
+.el .ie \\*(f2 .ds f2 \\n(.f
+.el .ie \\*(f3 .ds f3 \\n(.f
+.el .ie \\*(f4 .ds f4 \\n(.f
+.el .tm ? font overflow
+.ft \\$1
+..
+.de fP
+.ie     !\\*(f4 \{\
+.	ft \\*(f4
+.	ds f4\"
+'	br \}
+.el .ie !\\*(f3 \{\
+.	ft \\*(f3
+.	ds f3\"
+'	br \}
+.el .ie !\\*(f2 \{\
+.	ft \\*(f2
+.	ds f2\"
+'	br \}
+.el .ie !\\*(f1 \{\
+.	ft \\*(f1
+.	ds f1\"
+'	br \}
+.el .tm ? font underflow
+..
+.ds f1\"
+.ds f2\"
+.ds f3\"
+.ds f4\"
+'\" t 
+.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n  
+.TH "MB2MD" "1" 
+.SH "NAME" 
+mb2md \(em Converts Mbox mailboxes to Maildir format. 
+.SH "SYNOPSIS" 
+.PP 
+\fBmb2md\fR [\fB-h\fP]  
+.PP 
+\fBmb2md\fR [\fB-m\fP]  [\fB-d \fIdestdir\fR\fP]  
+.PP 
+\fBmb2md\fR [-s \fIsourcedir\fR \fB-R|-f \fIsomefolder\fR\fP \fB-d \fIdestdir\fR\fP \fB-r \fIstrip_extension\fR\fP]  
+.SH "DESCRIPTION" 
+.PP 
+This manual page documents briefly the 
+\fBmb2md\fR. 
+.PP 
+\fBmb2md\fR  
+Converts Mbox mailboxes to Maildir format. 
+.SH "OPTIONS" 
+.IP "\fB-h\fP         " 10 
+Show summary of options. 
+.IP "\fB-m\fP         " 10 
+If this is used then the source will 
+be the single mailbox at /var/spool/mail/blah for 
+user blah and the destination mailbox will be the 
+"destdir" mailbox itself. 
+.IP "\fB-s\fP \fIsourcedir\fR         " 10 
+Directory, relative to the user's home directory, 
+which is where the the "somefolders" directories are located. 
+Or if directory starts with a "/" it is taken as a 
+absolute path, e.g. /mnt/oldmail/user _OR_ 
+A single mbox file which will be converted to 
+the destdir. 
+.IP "\fB-R\fP         " 10 
+If defined, do not skip directories found in a mailbox 
+directory, but runs recursively into each of them, 
+creating all wanted folders in Maildir. 
+.IP "" 10 
+Incompatible with '-f' 
+.IP "\fB-f\fP \fIsomefolder\fR         " 10 
+Directories, relative to "sourcedir" where the Mbox files 
+are. All mailboxes in the "sourcedir" 
+directory will be converted and placed in the 
+"destdir" directory.  (Typically the Inbox directory 
+which in this instance is also functioning as a 
+folder for other mailboxes.) 
+.IP "" 10 
+The "somefolder" directory 
+name will be encoded into the new mailboxes' names. 
+See the examples below. 
+.IP "" 10 
+This does not save an UW IMAP dummy message file 
+at the start of the Mbox file.  Small changes 
+in the code could adapt it for looking for 
+other distinctive patterns of dummy messages too. 
+.IP "" 10 
+Don't let the source directory you give as "somefolders" 
+contain any "."s in its name, unless you want to 
+create subfolders from the IMAP user's point of 
+view.  See the example below. 
+.IP "" 10 
+Incompatible with '-R'  
+.IP "\fB-d\fP \fIdestdir\fR         " 10 
+Directory where the Maildir format directories will be created. 
+If not given, then the destination will be ~/Maildir . 
+Typically, this is what the IMAP server sees as the 
+Inbox and the folder for all user mailboxes. 
+If this begins with a '/' the path is considered to be 
+absolute, otherwise it is relative to the users 
+home directory. 
+ 
+.IP "\fB-d\fP \fIstrip_extension\fR         " 10 
+If defined this extension will be stripped from 
+the original mailbox file name before creating 
+the corresponding maildir. The extension must be 
+given without the leading dot ("."). See the example below. 
+ 
+.SH "USAGE" 
+.PP 
+Please read the USAGE documentation 
+(zless /usr/share/doc/mb2md/USAGE.gz). 
+.SH "AUTHOR" 
+.PP 
+This manual page was written by Noèl Köthe noel at debian.org for 
+the \fBDebian\fP system (but may be used by others).  Permission is 
+granted to copy, distribute and/or modify this document under 
+the terms of the GNU Free Documentation 
+License, Version 1.1 or any later version published by the Free 
+Software Foundation; with no Invariant Sections, no Front-Cover 
+Texts and no Back-Cover Texts. 
+.\" created by instant / docbook-to-man, Fri 09 Apr 2004, 14:39 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/mb2md.git



More information about the Pkg-perl-cvs-commits mailing list