Nicolas Sebrecht
3c42913120
sqlite: properly serialize operations on the databases
...
1. There is one database per folder and sqlite requires to serialize the
writings. Instead of locking at LocalStatusSQLiteFolder instance level,
introduce a new DatabaseFileLock object which is shared across threads. This
fixes the concurrent writes issues that some users might experience by
duplications or flags restored to the previous state.
2. Close the database only when we are sure no other threads will use the
connection on a *per-file* basis. Previous fix 677afb8d8f
is wrong
because the same lock is shared for all the database files.
Github-fix: https://github.com/OfflineIMAP/offlineimap/issues/350
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-26 01:57:25 +02:00
Nicolas Sebrecht
5aa2a883f0
local status: deletemessagelist: remove broken code
...
This did not work and is not usefull since the purge() method was introduced in
1410a391bc
. Actually, the purge() does what deletemessagelist() was supposed to
achieve.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-25 15:06:39 +02:00
Nicolas Sebrecht
fbc3b15888
IMAP/IMAP: fix import issue about UIDMaps
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-25 05:26:57 +02:00
Nicolas Sebrecht
03859e89c3
improve error message when ssl_version must be set due to the tls_level
...
Improve the ssl documentation.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-25 03:29:25 +02:00
Nicolas Sebrecht
c992f58530
offlineimap.conf: allow non-spaces in the account list
...
Regression introduced in v7.0.0.
Github-fix: https://github.com/OfflineIMAP/offlineimap/issues/355
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-24 19:39:43 +02:00
Nicolas Sebrecht
436e82531b
website-doc.sh: fix link in announces.yml
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-22 17:57:24 +02:00
Nicolas Sebrecht
e02f1491c9
release.sh: don't mess the mainline Changelog with commits in maint
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-22 17:38:58 +02:00
Nicolas Sebrecht
63f0622d41
website-doc: order announces by date
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-22 17:21:13 +02:00
Nicolas Sebrecht
284c66b04a
v7.0.0
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-22 16:56:43 +02:00
Nicolas Sebrecht
8c36806784
Merge tag 'v6.7.0.2' into next
2016-07-22 16:42:28 +02:00
Nicolas Sebrecht
41fdd4ee78
v6.7.0.2
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-22 16:34:04 +02:00
Nicolas Sebrecht
e753766284
sqlite: close the database when no more threads need access
...
It's required to have more than one connection to the database for the
maxconnections configuration option to work with threads. However,
connection.close() is closing all the connections. Only close the connection
when no more thread need it.
Github-fix: https://github.com/OfflineIMAP/offlineimap/issues/350
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-22 16:30:38 +02:00
Nicolas Sebrecht
6d0dba0d86
release.sh: learn to merge maint branch into next before releasing
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-22 10:15:07 +02:00
Nicolas Sebrecht
677afb8d8f
sqlite: close the database when no more threads need access
...
It's required to have more than one connection to the database for the
maxconnections configuration option to work with threads. However,
connection.close() is closing all the connections. Only close the connection
when no more thread need it.
Backported-from: 856b74407bd7f634cae5a8c2d9b84e13d14c12d2
Github-fix: https://github.com/OfflineIMAP/offlineimap/issues/350
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-22 09:19:09 +02:00
Nicolas Sebrecht
034c55a278
--info: allow user to enter a password
...
Change from basic UI to ttyui.
Github-fix: https://github.com/OfflineIMAP/offlineimap/issues/352
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-22 01:44:38 +02:00
Nicolas Sebrecht
59b712ecbc
remove dead code: the description of the passes is never used
...
Some minor style fixes.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-18 18:41:41 +02:00
Nicolas Sebrecht
2f3c01f0be
offlineimap.conf: improve documentation for copy_ignore_eval
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-18 18:38:59 +02:00
Nicolas Sebrecht
80dcf76414
fix attribute name _utime_from_header
...
Code style.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-16 21:25:14 +02:00
Nicolas Sebrecht
59f5da5e9e
Maildir: OfflineImapError is missing the severity argument
...
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/350
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-16 18:02:01 +02:00
Nicolas Sebrecht
1a96d588d5
fix: configparser does not know about python types like u""
...
Github-fix: https://github.com/OfflineIMAP/offlineimap/issues/347
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-13 14:02:25 +02:00
Nicolas Sebrecht
7b425d4c87
manual: offlineimapui: fix minor rendering issue
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-12 18:10:38 +02:00
Nicolas Sebrecht
742e53a4b4
v7.0.0-rc5
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-12 16:15:33 +02:00
Ævar Arnfjörð Bjarmason
3be01d2142
code of conduct: try to clarify what item 3 might mean
...
I don't think the phrase "Free speech owns to anyone of us" is
grammatically correct, and I honestly don't know what the author
really meant, what does "owns" mean in this context? It could be that:
- You should own up to what you've said
- That we all "own" the right to free speech
I think the latter is probably more likely, in any case, submit a pull
request for this so this can be clarified.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-12 16:04:55 +02:00
Nicolas Sebrecht
ff0c1a2efc
--help: make it clear --delete-folder is for the remote repository
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-09 02:11:36 +02:00
Nicolas Sebrecht
3f059c638a
--help: move -V option up
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-09 01:28:51 +02:00
Nicolas Sebrecht
709a5b3f91
manual: offlineimap knows -V CLI option
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-09 01:26:46 +02:00
Nicolas Sebrecht
2e81331a3c
learn --delete-folder CLI option
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-08 21:34:25 +02:00
Nicolas Sebrecht
bb8e03bced
init: factorize code to get active accounts
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-08 21:34:25 +02:00
Nicolas Sebrecht
034a111e07
man: remove unkown --column CLI option
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-08 21:34:25 +02:00
Nicolas Sebrecht
d2dbe2c544
mbnames: enable action at correct time
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-08 21:31:30 +02:00
Nicolas Sebrecht
175479d919
mbnames: fix the filename extension for the intermediate files
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-06 01:15:33 +02:00
Nicolas Sebrecht
b3209e38c0
mbnames: output message on errors while reading intermediate files
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-06 00:38:43 +02:00
Nicolas Sebrecht
218b3802c0
v7.0.0-rc4
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-04 04:05:37 +02:00
Nicolas Sebrecht
44a8cf3feb
threadutil: use 'with' statements for lock
...
Improve code for waiting the accountThreads.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 20:03:14 +02:00
Nicolas Sebrecht
29e06a60f9
learn to not download UIDs defined by the user
...
Allow users to workaround offending emails that offlineimap can't download.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 20:02:45 +02:00
Nicolas Sebrecht
f0096391fc
folder: IMAP: fix wrong comment
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 20:02:45 +02:00
Nicolas Sebrecht
1086d0dd69
minor: improve "Copy message" output
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 20:02:45 +02:00
Nicolas Sebrecht
f4210dc11c
folder: IMAP: improve style of comments
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 20:02:45 +02:00
Nicolas Sebrecht
296c8a6146
UIDMaps: correctly protect from concurrent writes
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 20:00:21 +02:00
Nicolas Sebrecht
cd43cd5b3b
UIDMaps: code cleanups and improvements
...
- Use more 'with' statements.
- Remove dead code: 'dolock' was never used.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 20:00:21 +02:00
Nicolas Sebrecht
c32b409413
UIDMaps: fix copyright line and re-order imports
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 19:58:45 +02:00
Nicolas Sebrecht
7945e10a76
correctly reraise errors with six
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 19:56:14 +02:00
Nicolas Sebrecht
69c0080323
learn --mbnames-prune CLI option
...
This is usefull to remove dangling entries for removed accounts or if mbnames is
not enabled anymore.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 19:54:41 +02:00
Nicolas Sebrecht
4ef05fe6e1
minor: init: re-order imports
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 19:54:13 +02:00
Nicolas Sebrecht
932e826d7c
folder: Maildir: add comments about FMD5 issues
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 19:53:45 +02:00
Nicolas Sebrecht
6b28071b0f
don't sync folders with local separator characters in their names
...
Github-fix: https://github.com/OfflineIMAP/offlineimap/issues/148
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-07-03 19:52:34 +02:00
Nicolas Sebrecht
268adb782f
Merge branch 'ns/fix-copyright' into next
2016-07-03 19:51:32 +02:00
Nicolas Sebrecht
a86029d8ba
github issue template: add python version
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-06-29 15:23:46 +02:00
Nicolas Sebrecht
548a6a57f1
folder: Gmail: use consistent copyright line
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-06-28 02:29:30 +02:00
Nicolas Sebrecht
3293b75c9c
release.sh: get_git_who(): remove unnecessary blank line
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-06-27 16:11:44 +02:00