Oswald Buddenhagen
f6f2d2461c
add comment
19 years ago
Oswald Buddenhagen
21abb22c98
seen messages are eligible for expiration even if they are recent in the
...
mailbox.
19 years ago
Oswald Buddenhagen
8a748d046d
no/empty mailbox name means INBOX
19 years ago
Oswald Buddenhagen
168e5f3282
make the driver model, sync_chans() and sync_boxes() fully async.
...
async drivers to follow ...
19 years ago
Oswald Buddenhagen
bdcc285403
unscrew lf=>crlf conversion and tuid insertion
19 years ago
Oswald Buddenhagen
16eaf903db
ok, mismerging and not running the reg-tests is lame. unscrew expunging
...
again.
19 years ago
Oswald Buddenhagen
c7903f8003
don't enter trash loop if not trashing at all. also, move expunge
...
message where it belongs. not adding info("trashing"), as it will be
replaced in a moment anyway.
19 years ago
Oswald Buddenhagen
b5d70aa596
async merge: aggregate most variables of main() & sync_boxes() in
...
main_vars_t resp. sync_vars_t.
also some minor var renames, whitespace, comments.
19 years ago
Oswald Buddenhagen
f90b290650
split box list preparation from "consumption".
19 years ago
Oswald Buddenhagen
72a2d4b690
info() about opening of stores
19 years ago
Oswald Buddenhagen
b7389cb36f
do not repeatedly get namespace from server.
19 years ago
Oswald Buddenhagen
340bfcc4a8
handle socket() failure and correctly report gethostbyname() failure.
19 years ago
Oswald Buddenhagen
3e3cf3ac9a
update copyrights
19 years ago
Oswald Buddenhagen
7f9ece8e7e
move whole responsibility for recycling open stores/server connections
...
to the drivers.
19 years ago
Oswald Buddenhagen
47e592b603
keep the result of driver->list() and a flag whether it is valid in the store.
19 years ago
Oswald Buddenhagen
861dd7468e
aggregate all (two ...) drivers in an array instead of naming them in
...
each (one ...) location explicitly.
19 years ago
Oswald Buddenhagen
492ca8d332
whitespace and code verbosity
19 years ago
Oswald Buddenhagen
31fc41a32c
merge imap_t into imap_store_t - there is really no point in having them
...
separated.
19 years ago
Oswald Buddenhagen
d7126dca5e
"fprintf( stderr," => "error(". new functions debugn() and infon()
...
for messages with missing newline; warn() and error() act upon this.
19 years ago
Oswald Buddenhagen
bb7bbcf5b1
make config parsing more robust against bogus input and report errors
...
more clearly.
19 years ago
Oswald Buddenhagen
fbbb86738b
factor out box selection from sync_boxes to avoid code dupe
19 years ago
Oswald Buddenhagen
bc39f10a1e
lock the sync state open the journal before opening the master. this is
...
a bit ugly for the "SyncState *" case, as we have to create a directory
without making it a maildir right away. however, this makes the code
quite a bit simpler to understand and simpler to parallelize.
19 years ago
Oswald Buddenhagen
7726ce3e0f
don't barf at directories with none of {tmp,new,cur}/ and turn them
...
into maildirs instead. see next commit.
19 years ago
Oswald Buddenhagen
5224b5bc9f
don't commit state file when a fatal error occurs
19 years ago
Oswald Buddenhagen
630a04ad3e
unbelieveable, but close() can actually fail
19 years ago
Oswald Buddenhagen
d7b8621f05
add copyright + license
19 years ago
Oswald Buddenhagen
1453e61840
update fsf's postal address. i think it's sort of useless nowadays
...
anyway, but heck ...
19 years ago
Oswald Buddenhagen
4e8fabf7e5
typos
19 years ago
Oswald Buddenhagen
8174bdcbd4
bump version. no, i'm not releasing yet ... :)
19 years ago
Oswald Buddenhagen
d76c827a45
include run-tests.pl in distribution
19 years ago
Oswald Buddenhagen
e567cc6919
and now don't clobber the mails ...
19 years ago
Oswald Buddenhagen
850addecd5
wrap message storing into transactions. nice side effect: drivers don't
...
need to deal with line end conversion any move.
19 years ago
Oswald Buddenhagen
19128f1587
major overhaul of flag change propagation and MaxMessages handling:
...
- wrap message (un)expirations into transactions
- no redundand flag propagations in conjunction with expirations
- better prepared for the upcoming async operation
19 years ago
Oswald Buddenhagen
ab11737b33
crash handler that launches gdb. activated when started with -D option.
...
simplifies debugging crashes during the reg-tests.
19 years ago
Oswald Buddenhagen
bbc0a877c8
less cluttered debug output
19 years ago
Oswald Buddenhagen
58db1d05ac
cosmetics: move around variable declarations and remove obsolete comment
19 years ago
Oswald Buddenhagen
905ded175f
versioned journal. the commands and their meanings change all the time,
...
so better handle that case.
ps: yes, i think not upgrading mbsync between interrupting and resuming
a run is a reasonable requirement.
19 years ago
Oswald Buddenhagen
8728dfdf21
make the sync entry search in the journal replay wrap around at the end
...
of the list. the "always forward" assumption is violated in some cases.
19 years ago
Oswald Buddenhagen
5e01034aee
much improved journal replay testing.
...
some clenup.
19 years ago
Oswald Buddenhagen
d1c4f8a069
orphan/kill all affected entries after expunge
19 years ago
Oswald Buddenhagen
97f48f56ed
deal with branches in "make log"
19 years ago
Oswald Buddenhagen
1a536a3415
M_EXPIRED -> M_EXPIRE
19 years ago
Oswald Buddenhagen
40fc6a6ac8
sanitize S_DEL
19 years ago
Oswald Buddenhagen
e205eb62f5
remove superfluous temporary rflags from sync_boxes
19 years ago
Oswald Buddenhagen
c7d938f965
now that messages know their sync records, M_SYNCES is superfluous.
19 years ago
Oswald Buddenhagen
2277ecefb6
establish bi-directional mapping between mails and sync records. use it
...
to merge the --renew case into the --new case.
19 years ago
Oswald Buddenhagen
24910e2cdf
declaring ex[M] instead of ex[2] is, indeed, no good. long live watchpoints.
19 years ago
Oswald Buddenhagen
a41ea8f9f1
whoops - 'isync -w' would write .mbsyncrc to a wrong directory
19 years ago
Oswald Buddenhagen
c1c7cb6d8e
move fetching new messages in front of syncing old entries. this alone
...
does not buy us a whole lot ...
19 years ago
Oswald Buddenhagen
635b2d7b76
test for journalling and journal replay.
19 years ago