Merge branch 'next'
Conflicts: Changelog.draft.rst docs/MANUAL.rst Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
@ -1,60 +0,0 @@
|
||||
.. OfflineImap API documentation
|
||||
|
||||
.. currentmodule:: offlineimap
|
||||
|
||||
Welcome to :mod:`offlineimaps`'s documentation
|
||||
==============================================
|
||||
|
||||
Within :mod:`offlineimap`, the classes :class:`OfflineImap` provides the high-level functionality. The rest of the classes should usually not needed to be touched by the user. Email repositories are represented by a :class:`offlineimap.repository.Base.BaseRepository` or derivatives (see :mod:`offlineimap.repository` for details). A folder within a repository is represented by a :class:`offlineimap.folder.Base.BaseFolder` or any derivative from :mod:`offlineimap.folder`.
|
||||
|
||||
This page contains the main API overview of OfflineImap |release|.
|
||||
|
||||
OfflineImap can be imported as::
|
||||
|
||||
from offlineimap import OfflineImap
|
||||
|
||||
The file ``SubmittingPatches.rst`` in the source distribution documents a
|
||||
number of resources and conventions you may find useful. It will eventually
|
||||
be merged into the main documentation.
|
||||
.. TODO: merge SubmittingPatches.rst to the main documentation
|
||||
|
||||
:mod:`offlineimap` -- The OfflineImap module
|
||||
=============================================
|
||||
|
||||
.. module:: offlineimap
|
||||
|
||||
.. autoclass:: offlineimap.OfflineImap(cmdline_opts = None)
|
||||
|
||||
|
||||
.. automethod:: run
|
||||
|
||||
.. automethod:: parse_cmd_options
|
||||
|
||||
.. .. autoattribute:: ui
|
||||
|
||||
:todo: Document
|
||||
|
||||
:class:`offlineimap.account`
|
||||
============================
|
||||
|
||||
An :class:`accounts.Account` connects two email repositories that are to be synced. It comes in two flavors, normal and syncable.
|
||||
|
||||
.. autoclass:: offlineimap.accounts.Account
|
||||
|
||||
.. autoclass:: offlineimap.accounts.SyncableAccount
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
.. autodata:: ui
|
||||
|
||||
Contains the current :mod:`offlineimap.ui`, and can be used for logging etc.
|
||||
|
||||
:exc:`OfflineImapError` -- A Notmuch execution error
|
||||
--------------------------------------------------------
|
||||
|
||||
.. autoexception:: offlineimap.error.OfflineImapError
|
||||
:members:
|
||||
|
||||
This execption inherits directly from :exc:`Exception` and is raised
|
||||
on errors during the offlineimap execution. It has an attribute
|
||||
`severity` that denotes the severity level of the error.
|
@ -1 +0,0 @@
|
||||
../FAQ.rst
|
@ -1 +0,0 @@
|
||||
../INSTALL.rst
|
@ -1 +0,0 @@
|
||||
../MANUAL.rst
|
@ -1,200 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# pyDNS documentation build configuration file, created by
|
||||
# sphinx-quickstart on Tue Feb 2 10:00:47 2010.
|
||||
#
|
||||
# This file is execfile()d with the current directory set to its containing dir.
|
||||
#
|
||||
# Note that not all possible configuration values are present in this
|
||||
# autogenerated file.
|
||||
#
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import sys, os
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
sys.path.insert(0,os.path.abspath('../..'))
|
||||
|
||||
from offlineimap import __version__,__author__
|
||||
# -- General configuration -----------------------------------------------------
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
|
||||
autoclass_content = "both"
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix of source filenames.
|
||||
source_suffix = '.rst'
|
||||
|
||||
# The encoding of source files.
|
||||
#source_encoding = 'utf-8'
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'OfflineImap'
|
||||
copyright = u'2002-2010, ' + __author__
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = __version__
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = __version__
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#language = None
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
#today = ''
|
||||
# Else, today_fmt is used as the format for a strftime call.
|
||||
#today_fmt = '%B %d, %Y'
|
||||
|
||||
# List of documents that shouldn't be included in the build.
|
||||
#unused_docs = []
|
||||
|
||||
# List of directories, relative to source directory, that shouldn't be searched
|
||||
# for source files.
|
||||
exclude_trees = []
|
||||
|
||||
# The reST default role (used for this markup: `text`) to use for all documents.
|
||||
#default_role = None
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
#add_function_parentheses = True
|
||||
|
||||
# If true, the current module name will be prepended to all description
|
||||
# unit titles (such as .. function::).
|
||||
add_module_names = False
|
||||
|
||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||
# output. They are ignored by default.
|
||||
#show_authors = False
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
# A list of ignored prefixes for module index sorting.
|
||||
#modindex_common_prefix = []
|
||||
|
||||
|
||||
# -- Options for HTML output ---------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. Major themes that come with
|
||||
# Sphinx are currently 'default' and 'sphinxdoc'.
|
||||
html_theme = 'default'
|
||||
#html_style = ''
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#html_theme_options = {}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
#html_theme_path = []
|
||||
|
||||
# The name for this set of Sphinx documents. If None, it defaults to
|
||||
# "<project> v<release> documentation".
|
||||
#html_title = None
|
||||
|
||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||
#html_short_title = None
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#html_logo = None
|
||||
|
||||
# The name of an image file (within the static path) to use as favicon of the
|
||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#html_favicon = None
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
#html_static_path = ['html']
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
#html_last_updated_fmt = '%b %d, %Y'
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
#html_use_smartypants = True
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#html_sidebars = {}
|
||||
|
||||
# Additional templates that should be rendered to pages, maps page names to
|
||||
# template names.
|
||||
#html_additional_pages = {}
|
||||
|
||||
# If false, no module index is generated.
|
||||
html_use_modindex = False
|
||||
|
||||
# If false, no index is generated.
|
||||
#html_use_index = True
|
||||
|
||||
# If true, the index is split into individual pages for each letter.
|
||||
#html_split_index = False
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#html_show_sourcelink = True
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
# base URL from which the finished HTML is served.
|
||||
#html_use_opensearch = ''
|
||||
|
||||
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
|
||||
#html_file_suffix = ''
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'dev-doc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output --------------------------------------------------
|
||||
|
||||
# The paper size ('letter' or 'a4').
|
||||
#latex_paper_size = 'letter'
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#latex_font_size = '10pt'
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title, author, documentclass [howto/manual]).
|
||||
latex_documents = [
|
||||
('index', 'offlineimap.tex', u'OfflineImap Documentation',
|
||||
u'OfflineImap contributors', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
# the title page.
|
||||
#latex_logo = None
|
||||
|
||||
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||
# not chapters.
|
||||
#latex_use_parts = False
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#latex_preamble = ''
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#latex_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#latex_use_modindex = True
|
||||
|
||||
|
||||
# Example configuration for intersphinx: refer to the Python standard library.
|
||||
intersphinx_mapping = {'http://docs.python.org/': None}
|
@ -1,44 +0,0 @@
|
||||
.. OfflineImap documentation master file
|
||||
.. _OfflineImap: http://offlineimap.org
|
||||
|
||||
|
||||
Welcome to :mod:`offlineimaps`'s documentation
|
||||
==============================================
|
||||
|
||||
`OfflineImap`_ synchronizes email between an IMAP server and a MailDir or between two IMAP servers. It offers very powerful and flexible configuration options, that allow things such as the filtering of folders, transposing of names via static configuration or python scripting. It plays well with mutt and other MailDir consuming email clients.
|
||||
|
||||
The documentation contains the end user documentation in a first part. It also contains use cases and example configurations. It is followed by the internal :doc:`API documentation <API>` for those interested in modifying the source code or otherwise peek into the OfflineImap internals in a second part.
|
||||
|
||||
|
||||
If you just want to get started with minimal fuzz, have a look at our `online quick start guide <http://offlineimap.org/#ref-quick-start>`_. Do note though, that our configuration options are many and powerful. Perusing our precious documentation does often pay off!
|
||||
|
||||
More information on specific topics can be found on the following pages:
|
||||
|
||||
**User documentation**
|
||||
* :doc:`installation/uninstall <INSTALL>`
|
||||
* :doc:`user manual/Configuration <MANUAL>`
|
||||
* :doc:`Folder filtering & name transformation guide <nametrans>`
|
||||
* :doc:`command line options <offlineimap>`
|
||||
* :doc:`Frequently Asked Questions <FAQ>`
|
||||
|
||||
**Developer documentation**
|
||||
* :doc:`API documentation <API>` for internal details on the
|
||||
:mod:`offlineimap` module
|
||||
|
||||
.. toctree::
|
||||
:hidden:
|
||||
|
||||
INSTALL
|
||||
MANUAL
|
||||
nametrans
|
||||
offlineimap
|
||||
FAQ
|
||||
|
||||
API
|
||||
repository
|
||||
ui
|
||||
|
||||
|
||||
.. moduleauthor:: John Goerzen, and many others. See AUTHORS and the git history for a full list.
|
||||
|
||||
:License: This module is covered under the GNU GPL v2 (or later).
|
@ -1,83 +0,0 @@
|
||||
The offlineimap 'binary' command line options
|
||||
=============================================
|
||||
|
||||
Offlineimap is invoked with the following pattern: `offlineimap [args...]`.
|
||||
|
||||
Where [args...] are as follows:
|
||||
|
||||
Options:
|
||||
--version show program's version number and exit
|
||||
-h, --help show this help message and exit
|
||||
-1 Disable all multithreading operations and use solely a
|
||||
single-thread sync. This effectively sets the
|
||||
maxsyncaccounts and all maxconnections configuration
|
||||
file variables to 1.
|
||||
-P DIR Sets OfflineIMAP into profile mode. The program will
|
||||
create DIR (it must not already exist). As it runs,
|
||||
Python profiling information about each thread is
|
||||
logged into profiledir. Please note: This option is
|
||||
present for debugging and optimization only, and
|
||||
should NOT be used unless you have a specific reason
|
||||
to do so. It will significantly slow program
|
||||
performance, may reduce reliability, and can generate
|
||||
huge amounts of data. This option implies the
|
||||
singlethreading option (-1).
|
||||
-a ACCOUNTS Overrides the accounts section in the config file.
|
||||
Lets you specify a particular account or set of
|
||||
accounts to sync without having to edit the config
|
||||
file. You might use this to exclude certain accounts,
|
||||
or to sync some accounts that you normally prefer not
|
||||
to.
|
||||
-c FILE Specifies a configuration file to use in lieu of
|
||||
~/.offlineimaprc.
|
||||
|
||||
-d type1,[type2...] Enables debugging for OfflineIMAP. This is useful if
|
||||
you are trying to track down a malfunction or figure
|
||||
out what is going on under the hood. I suggest that
|
||||
you use this with -1 in order to make the results more
|
||||
sensible. This option requires one or more debugtypes,
|
||||
separated by commas. These define what exactly will
|
||||
be debugged, and so far include the options: imap,
|
||||
thread,maildir or ALL. The imap option will enable
|
||||
IMAP protocol stream and parsing debugging. Note that
|
||||
the output may contain passwords, so take care to
|
||||
remove that from the debugging output before sending
|
||||
it to anyone else. The maildir option will enable
|
||||
debugging for certain Maildir operations.
|
||||
|
||||
-l FILE Log to FILE
|
||||
|
||||
-f folder1,[folder2...]
|
||||
Only sync the specified folders. The 'folder's are the
|
||||
*untranslated* foldernames. This command-line option
|
||||
overrides any 'folderfilter' and 'folderincludes'
|
||||
options in the configuration file.
|
||||
|
||||
-k `[section:]option=value`
|
||||
Override configuration file option. If"section" is
|
||||
omitted, it defaults to "general". Any underscores
|
||||
"_" in the section name are replaced with spaces:
|
||||
for instance, to override option "autorefresh" in
|
||||
the "[Account Personal]" section in the config file
|
||||
one would use "-k Account_Personal:autorefresh=30".
|
||||
|
||||
-o Run only once, ignoring any autorefresh setting in the
|
||||
configuration file.
|
||||
-q Run only quick synchronizations. Ignore any flag
|
||||
updates on IMAP servers.
|
||||
-u INTERFACE Specifies an alternative user interface to use. This
|
||||
overrides the default specified in the configuration
|
||||
file. The UI specified with -u will be forced to be
|
||||
used, even if checks determine that it is not usable.
|
||||
Possible interface choices are: Curses.Blinkenlights,
|
||||
TTY.TTYUI, Noninteractive.Basic, Noninteractive.Quiet,
|
||||
Machine.MachineUI
|
||||
|
||||
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`search`
|
||||
|
@ -1,68 +0,0 @@
|
||||
.. currentmodule:: offlineimap.repository
|
||||
|
||||
:mod:`offlineimap.repository` -- Email repositories
|
||||
------------------------------------------------------------
|
||||
|
||||
A derivative of class
|
||||
:class:`Base.BaseRepository` represents an email
|
||||
repository depending on the type of storage, possible options are:
|
||||
|
||||
* :class:`IMAPRepository`,
|
||||
* :class:`MappedIMAPRepository`
|
||||
* :class:`GmailRepository`,
|
||||
* :class:`MaildirRepository`, or
|
||||
* :class:`LocalStatusRepository`.
|
||||
|
||||
Which class you need depends on your account
|
||||
configuration. The helper class :class:`offlineimap.repository.Repository` is
|
||||
an *autoloader*, that returns the correct class depending
|
||||
on your configuration. So when you want to instanciate a new
|
||||
:mod:`offlineimap.repository`, you will mostly do it through this class.
|
||||
|
||||
.. autoclass:: offlineimap.repository.Repository
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
|
||||
:mod:`offlineimap.repository.Base.BaseRepository` -- Representation of a mail repository
|
||||
------------------------------------------------------------------------------------------
|
||||
.. autoclass:: offlineimap.repository.Base.BaseRepository
|
||||
:members:
|
||||
:inherited-members:
|
||||
:undoc-members:
|
||||
|
||||
.. .. note:: :meth:`foo`
|
||||
.. .. attribute:: Database.MODE
|
||||
|
||||
Defines constants that are used as the mode in which to open a database.
|
||||
|
||||
MODE.READ_ONLY
|
||||
Open the database in read-only mode
|
||||
|
||||
MODE.READ_WRITE
|
||||
Open the database in read-write mode
|
||||
|
||||
.. autoclass:: offlineimap.repository.IMAPRepository
|
||||
.. autoclass:: offlineimap.repository.MappedIMAPRepository
|
||||
.. autoclass:: offlineimap.repository.GmailRepository
|
||||
.. autoclass:: offlineimap.repository.MaildirRepository
|
||||
.. autoclass:: offlineimap.repository.LocalStatusRepository
|
||||
|
||||
:mod:`offlineimap.folder` -- Basic representation of a local or remote Mail folder
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. autoclass:: offlineimap.folder.Base.BaseFolder
|
||||
:members:
|
||||
:inherited-members:
|
||||
:undoc-members:
|
||||
|
||||
.. .. attribute:: Database.MODE
|
||||
|
||||
Defines constants that are used as the mode in which to open a database.
|
||||
|
||||
MODE.READ_ONLY
|
||||
Open the database in read-only mode
|
||||
|
||||
MODE.READ_WRITE
|
||||
Open the database in read-write mode
|
@ -1,27 +0,0 @@
|
||||
:mod:`offlineimap.ui` -- A flexible logging system
|
||||
--------------------------------------------------------
|
||||
|
||||
.. currentmodule:: offlineimap.ui
|
||||
|
||||
OfflineImap has various ui systems, that can be selected. They offer various functionalities. They must implement all functions that the :class:`offlineimap.ui.UIBase` offers. Early on, the ui must be set using :meth:`getglobalui`
|
||||
|
||||
.. automethod:: offlineimap.ui.setglobalui
|
||||
.. automethod:: offlineimap.ui.getglobalui
|
||||
|
||||
Base UI plugin
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. autoclass:: offlineimap.ui.UIBase.UIBase
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
.. .. note:: :meth:`foo`
|
||||
.. .. attribute:: Database.MODE
|
||||
|
||||
Defines constants that are used as the mode in which to open a database.
|
||||
|
||||
MODE.READ_ONLY
|
||||
Open the database in read-only mode
|
||||
|
||||
MODE.READ_WRITE
|
||||
Open the database in read-write mode
|
Reference in New Issue
Block a user