2011-01-15 16:48:30 +01:00
|
|
|
.. -*- coding: utf-8 -*-
|
2012-07-23 18:03:43 +02:00
|
|
|
.. _OfflineIMAP: https://github.com/OfflineIMAP/offlineimap
|
|
|
|
.. _OLI_git_repo: git://github.com/OfflineIMAP/offlineimap.git
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
============
|
|
|
|
Installation
|
|
|
|
============
|
2011-01-15 16:48:30 +01:00
|
|
|
|
|
|
|
.. contents::
|
2012-01-17 01:34:56 +01:00
|
|
|
.. .. sectnum::
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2013-12-14 14:46:41 +01:00
|
|
|
-----------------
|
|
|
|
Development state
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Since several months, the official maintainers Nicolas Sebrecht and Sebatian
|
|
|
|
Spaeth are too much busy to actively contribute to this project.
|
|
|
|
|
|
|
|
In order to preserve contributions, a team of official maintainers have been
|
|
|
|
promoted to have write access to the official repository at `OfflineIMAP`_.
|
|
|
|
OfflineIMAP is now maintained by occasional contributors and the official
|
|
|
|
maintainers. All the documentation links might not be up-to-date to reflect
|
|
|
|
this change.
|
|
|
|
|
|
|
|
The best place to get the latest news about the development state is at the
|
|
|
|
mailing list.
|
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
-------------
|
2011-01-15 16:48:30 +01:00
|
|
|
Prerequisites
|
2012-01-17 01:34:56 +01:00
|
|
|
-------------
|
2011-01-15 16:48:30 +01:00
|
|
|
|
|
|
|
In order to use `OfflineIMAP`_, you need to have these conditions satisfied:
|
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
1. Your mail server must support IMAP. Mail access via POP is not
|
|
|
|
supported. A special Gmail mailbox type is available to interface
|
|
|
|
with Gmail's IMAP front-end, although Gmail has a very peculiar and
|
|
|
|
non-standard implementation of its IMAP interface.
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
2. You must have Python version 2.6 or above installed. If you are
|
|
|
|
running on Debian GNU/Linux, this requirement will automatically be
|
|
|
|
taken care of for you. If you intend to use the SSL interface,
|
|
|
|
your Python must have been built with SSL support.
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
3. If you use OfflineImap as an IMAP<->Maildir synchronizer, you will
|
|
|
|
obviously need to have a mail reader that supports the Maildir
|
|
|
|
mailbox format. Most modern mail readers have this support built-in,
|
|
|
|
so you can choose from a wide variety of mail servers. This format
|
|
|
|
is also known as the "qmail" format, so any mail reader compatible
|
|
|
|
with it will work with `OfflineIMAP`_.
|
2011-01-15 16:48:30 +01:00
|
|
|
|
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
------------
|
2011-01-15 16:48:30 +01:00
|
|
|
Installation
|
2012-01-17 01:34:56 +01:00
|
|
|
------------
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-07-23 18:05:46 +02:00
|
|
|
Installing OfflineImap should usually be quite easy, as you can simply unpack
|
|
|
|
and run OfflineImap in place if you wish to do so. There are a number of options
|
|
|
|
though:
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
#. system-wide :ref:`installation via your distribution package manager <inst_pkg_man>`
|
|
|
|
#. system-wide or single user :ref:`installation from the source package <inst_src_tar>`
|
|
|
|
#. system-wide or single user :ref:`installation from a git checkout <inst_git>`
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-07-23 18:05:46 +02:00
|
|
|
Having installed OfflineImap, you will need to configure it, to be actually
|
|
|
|
useful. Please check the :ref:`Configuration` section in the :doc:`MANUAL` for
|
|
|
|
more information on the configuration step.
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
.. _inst_pkg_man:
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
System-Wide Installation via distribution
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2012-07-23 18:05:46 +02:00
|
|
|
The easiest way to install OfflineIMAP is via your distribution's package
|
|
|
|
manager. OfflineImap is available under the name `offlineimap` in most Linux and
|
|
|
|
BSD distributions.
|
2011-01-15 16:48:30 +01:00
|
|
|
|
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
.. _inst_src_tar:
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
Installation from source package
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-07-23 18:05:46 +02:00
|
|
|
Download the latest source archive from our `download page
|
|
|
|
<https://github.com/spaetz/offlineimap/downloads>`_. Simply click the "Download
|
|
|
|
as .zip" or "Download as .tar.gz" buttons to get the latest "stable" code from
|
|
|
|
the master branch. If you prefer command line, you will want to use: wget
|
|
|
|
https://github.com/spaetz/offlineimap/tarball/master
|
|
|
|
|
|
|
|
Unpack and continue with the :ref:`system-wide installation <system_wide_inst>`
|
|
|
|
or the :ref:`single-user installation <single_user_inst>` section.
|
2011-01-15 16:48:30 +01:00
|
|
|
|
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
.. _inst_git:
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
Installation from git checkout
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-05-04 19:03:35 +02:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
Get your own copy of the `official git repository <OLI_git_repo>`_ at `OfflineIMAP`_::
|
|
|
|
|
2013-12-14 14:46:41 +01:00
|
|
|
git clone https://github.com/OfflineIMAP/offlineimap.git
|
2012-01-17 01:34:56 +01:00
|
|
|
|
|
|
|
This will download the source with history. By default, git sets up the
|
|
|
|
`master` branch up, which is most likely what you want. If not, you can
|
|
|
|
checkout a particular release like this::
|
2011-05-04 19:03:35 +02:00
|
|
|
|
|
|
|
cd offlineimap
|
2012-01-17 01:34:56 +01:00
|
|
|
git checkout v6.5.2.1
|
|
|
|
|
2012-07-23 18:05:46 +02:00
|
|
|
You have now a source tree available and proceed with either the
|
|
|
|
:ref:`system-wide installation <system_wide_inst>` or the :ref:`single-user
|
|
|
|
installation <single_user_inst>`.
|
2012-01-17 01:34:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
.. _system_wide_inst:
|
2011-05-04 19:03:35 +02:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
System-wide installation
|
|
|
|
++++++++++++++++++++++++
|
2011-05-04 19:03:35 +02:00
|
|
|
|
|
|
|
Then run these commands, to build the python package::
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2011-05-04 19:03:35 +02:00
|
|
|
make clean
|
|
|
|
make
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2011-05-04 19:03:35 +02:00
|
|
|
Finally, install the program (as root)::
|
|
|
|
|
|
|
|
python setup.py install
|
|
|
|
|
2013-12-14 14:46:41 +01:00
|
|
|
Next, proceed to below. Type `offlineimap` to invoke the program.
|
2011-05-04 19:03:35 +02:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
|
|
|
|
.. _single_user_inst:
|
|
|
|
|
|
|
|
Single-user installation
|
|
|
|
++++++++++++++++++++++++
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2011-05-04 19:03:35 +02:00
|
|
|
Download the git repository as described above. Instead of installing the
|
|
|
|
program as root, you type `./offlineimap.py`; there is no installation step
|
|
|
|
necessary.
|
2011-01-15 16:48:30 +01:00
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
---------
|
2012-01-06 19:51:58 +01:00
|
|
|
Uninstall
|
2012-01-17 01:34:56 +01:00
|
|
|
---------
|
2012-01-06 19:51:58 +01:00
|
|
|
|
|
|
|
If you installed a system-wide installation via "python setup.py
|
2012-01-17 01:34:56 +01:00
|
|
|
install", there are a few files to purge to cleanly uninstall
|
|
|
|
`OfflineImap`_ again. Assuming that `/usr/local` is the standard prefix of
|
|
|
|
your system and that you use python 2.7, you need to:
|
|
|
|
|
|
|
|
#) Delete the OfflineImap installation itself::
|
2012-01-06 19:51:58 +01:00
|
|
|
|
|
|
|
/usr/local/lib/python2.7/dist-packages/offlineimap-6.4.4.egg-info
|
|
|
|
/usr/local/lib/python2.7/dist-packages/offlineimap
|
|
|
|
|
2012-01-17 01:34:56 +01:00
|
|
|
In case, you did the single-user installation, simply delete your
|
|
|
|
offlineimap directory.
|
|
|
|
|
|
|
|
#) Delete all files that OfflineImap creates during its operation.
|
|
|
|
- The cache at (default location) ~/.offlineimap
|
|
|
|
- Your manually created (default loc) ~/.offlineimaprc
|
2012-01-06 19:51:58 +01:00
|
|
|
(It is possible that you created those in different spots)
|
|
|
|
|
|
|
|
That's it. Have fun without OfflineImap.
|