File cyrus2dovecot.spec of Package cyrus2dovecot
#
# spec file for package cyrus2dovecot
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cyrus2dovecot
Version: 1.2
Release: 0
License: Artistic-2.0
Summary: A full-featured command line tool for converting emails from Cyrus to Dovecot
Url: http://www.cyrus2dovecot.sw.fu-berlin.de/
Group: Productivity/Networking/Email/Servers
Source: http://www.cyrus2dovecot.sw.fu-berlin.de/download/cyrus2dovecot
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildARch: noarch
BuildRequires: perl
%description
Cyrus2Dovecot is a full-featured command line tool for converting the e-mails
of one or more users from Cyrus format to Dovecot Maildir++ folders. It allows
for performing a server transition which is fully transparent to both POP and
IMAP users. For details, see the feature list below, as well as the manual
page (which also includes usage examples).
Features:
- All e-mail folders of a Cyrus user are automagically converted into a
Maildir++ directory structure with appropriate subdirectories.
- Virtually all available metadata is preserved during the conversion. This
includes the UID and INTERNALDATE of each message, the IMAP folder
subscriptions, the UIDVALIDITY and UIDNEXT values for each folder, as well as
all IMAP flags (i.e., \Recent, \Seen, \Answered, \Flagged, \Draft, \Deleted),
and the first 26 user-defined keywords.
- Optionally, Maildir++ “maildirsize” files are created, either with the same
quota limits as in Cyrus or using a new default quota limit specified on the
command line.
- Cyrus' seen and subscription databases may be present either in the
“skiplist” format or as “flat” text files, and Cyrus' quota databases (if
any) may be present either in one of these formats or as “quotalegacy” files,
since Cyrus2Dovecot supports those formats out of the box. Berkeley databases
can be converted to one of the supported formats using cvt_cyrusdb(8).
- The generated e-mail filenames include the Maildir++ extensions S=<size> and
W=<vsize> (which are used by Dovecot for better performance).
- If necessary, IMAP folders can easily be renamed (or moved around) by
matching and substituting their names using regular expressions during the
conversion.
- Arbitrarily large numbers of e-mails, folders, and users are handled just
fine.
%prep
%build
pod2man %{S:0} %{name}.8
%install
install -D -m 0755 %{S:0} %{buildroot}%{_sbindir}/%{name}
install -D -m 0644 %{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8
%files
%defattr(-,root,root)
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8*
%changelog