docs: update links to the newly created github organization

Acually, these are the minimal expected changes.
More might be done and/or discussed.

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
docs: split long lines (up to 80 characters)

Not everybody has a wide screen.

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
Make sure folder filters are always respected.

* Value of sync_this is determined at Folder __init__ time so it is
  never inadvertently skipped.

* Fix omitted check for local folder's sync_this value in
  SyncableAccount.sync()

* Add should_sync_folder() method to Repository

* Eliminate DRY violations

  - Factor out the code to find a local folder given a remote folder

  - Factor out the code that reports on skipped
    folders (sync_this_verbose)

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
Add singlethreadperfolder option.

To further ensure that messages are synchronized strictly in UID
order, this option can be set to cause only one thread to be used
to synchronise an individual folder, though other folders may
be synchronized simultaneously by other threads.

Signed-off-by: James E. Blair <corvus@gnu.org>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
Sort message UID list

Return a sorted list of UIDs in getmessageuidlist.

Some MUAs (and their users) like to display messages in UID order
(or "order received").  If offlineimap is used in IMAP<->IMAP mode,
then the order messages are received by the second IMAP server will
be different because offlineimap iterates over a UID list produced
from the keys of a dictionary, which is unsorted.

This change sorts that list of UIDs so that both IMAP servers will
have their messages in the same order (except those times where
messages are appended to folders on both repositories between
syncs).

Signed-off-by: James E. Blair <corvus@gnu.org>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
Make SIGHUP singal handler equivalent to SIGTERM and SIGINT.

offlineimap has several frontends that encourage running it from a
terminal under an X session. When X session closes for a system
shutdown, the terminals exit, after sending SIGHUP to their children.

Previously SIGHUP was treated to be equivalent to SIGUSR1, i.e. wake
up and sync all accounts. This causes delays during shutdown.

According to Wikipedia [0], SIGHUP has been repurposed from a
historical meaning to one of:
 * re-read configuration files, or reinitialize (e.g. Apache, sendmail)
 * controlling pseudo or virtual terminal has been closed

I believe second meaning is more appropriate for offlineimap, and
hence this patch makes SIGHUP to be handled in the same way SIGTERM
and SIGINT are handled.

This patch also adds documentation of the current handling of
SIGTERM/SIGINT/SIGHUP signals.

[0] http://en.wikipedia.org/wiki/SIGHUP

Debian-Bug: http://bugs.debian.org/670120
Reported-By: Steve Langasek <steve.langasek@canonical.com>
Signed-off-by: Dmitrijs Ledkovs <xnox@debian.org>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
Merge branch 'da/respect-folder-filters' into pu
Merge branch 'dl/sighup-handler' into pu
Merge branch 'ns/opening' into pu
Merge branch 'jeb/singlethreadfolder' into pu
Merge branch 'jeb/sort-message-uid-list' into pu