Oswald Buddenhagen
406e967430
don't let wildcards match INBOX, unless it lives under Path
...
it's counter-intuitive to have '*' match the (always present) INBOX
when the rest of the mailboxes lives in a different namespace.
12 years ago
Oswald Buddenhagen
d1900941f4
introduce -DC option to only install a crash handler
12 years ago
Oswald Buddenhagen
c23d251092
consider hierarchy delimiter flattening when deciding what to list
...
flattened sub-folders of INBOX actually end up in Path, so list that
instead.
REFMAIL: 6c0ecbff0d025387020281c5d2f5e6e8@smallsys.org
13 years ago
Oswald Buddenhagen
66895f9cce
try harder to list all necessary boxes
...
the pattern "INB*" may or may not refer to something in the INBOX. even
just "*" may. so list both the INBOX and the Path in case of
uncertainty.
13 years ago
Oswald Buddenhagen
f11504aa07
update copyrights
...
make the wrapper's help string also mention copyrights pertaining only
to the actual syncer, as this is the only string many people will ever
see.
13 years ago
Oswald Buddenhagen
d4c786823d
replace FSF address with something more ... contemporary
13 years ago
Oswald Buddenhagen
dfd7516b9a
introduce ability to flatten the hierarchy of Stores
13 years ago
Oswald Buddenhagen
2585dd3324
add support for hierarchical mailboxes
13 years ago
Oswald Buddenhagen
28cccf4b35
fix error handling of invalid SyncState *
...
when we find that the store is incompatible with in-store sync state,
we want to fail the whole channel. however, we must not claim that the
store died, otherwise it won't be disposed of properly.
13 years ago
Oswald Buddenhagen
233f563569
deal with concurrent maildir modifications during listing
...
files may be renamed (due to new -> cur transition or flag changes),
which may lead to two effects if ignored:
- we see both the old and the new name, so we report a spurious
duplicate UID
- we see neither name, so we report a spurious deletion
as countermeasure, record and compare directory modification times. upon
mismatch, we just start over - as usual.
13 years ago
Oswald Buddenhagen
2aae866e80
remove Ontty flag
...
i can't figure out why i added it in the first place. it doesn't seem to
make any sense ...
13 years ago
Oswald Buddenhagen
7867eb9009
add simple mainloop implementation
...
not used so far
13 years ago
Oswald Buddenhagen
b0bbd23512
replace DRV_STORE_BAD with a separate bad_callback()
...
that way we don't have to piggy-back (possibly asynchronous) fatal
errors to particular commands.
internally, the drivers still use synchronous return values as well,
so they don't try to access the invalidated store after calling back.
13 years ago
Oswald Buddenhagen
d2e13f147c
de-duplicate code a bit
13 years ago
Oswald Buddenhagen
c66afdc0a8
move setting of ctx->listed outside the drivers
...
it's essentially an external state flag
13 years ago
Oswald Buddenhagen
4afd31a457
avoid preprocessor warnings on missing features: #if => #ifdef
14 years ago
Oswald Buddenhagen
9e10e871fd
don't hang if store cannot be opened asynchronously
14 years ago
Oswald Buddenhagen
e6a356ffc7
add extra verbose mode which dumps the message contents
...
i needed that to debug the line ending issues. maybe it will find other
uses as well ...
15 years ago
Oswald Buddenhagen
2f62a7f608
don't overlook 2nd and later single-letter options in last argument.
...
reported by fedora
-REF: <1197916586.13945.120.camel@localhost.localdomain>
17 years ago
Oswald Buddenhagen
42ca262e39
#ifdef __linux__ for the crash handler. it compiles on other platforms,
...
but the functionality is bound to linux' /proc structure.
18 years ago
Oswald Buddenhagen
6800f1636e
initialize mvars->t[1] to 1. helps enormously ... :}
18 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
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
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
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
1453e61840
update fsf's postal address. i think it's sort of useless nowadays
...
anyway, but heck ...
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
9c6c158ef3
undocumented flag -J to skip committing the new sync state.
19 years ago
Oswald Buddenhagen
a1a5a817bb
merge Quiet, Verbose & Debug into DFlags
19 years ago
Oswald Buddenhagen
808001c0a9
whoops
19 years ago
Oswald Buddenhagen
4ec56f8cf6
- instead of having {m,s}foo, we have foo[2] now, so we can do
...
everything with loops instead of symmetric function calls
- added some const
19 years ago
Oswald Buddenhagen
633869d040
trailing whitespace
19 years ago
Oswald Buddenhagen
130664b622
The Big Rewrite. too many change to list them all.
...
as opposed to earlier threats, BerkDB was not entirely dropped; i
suppose the isync 0.7 -> 0.8 change had a reason, so i added an
alternative UID storage scheme.
note that BDB 4.0 is not sufficient, as the db->open function changed in
an incompatible way ...
i updated the debian packaging except for a changelog entry.
note that i removed the upgrade blurb, as upstream now has a smooth
upgrade path down to at least isync 0.4.
21 years ago
Oswald Buddenhagen
e5894bdf04
once again: (slightly) better output.
...
make maildir flag setting failure non-fatal. maildir sucks ...
21 years ago
Oswald Buddenhagen
f80f91d98b
make Tag int, move it to imap.c
21 years ago
Oswald Buddenhagen
b5307f0e16
another message output cleanup, still not perfect (info messages will be
...
interleaved with progress dots).
support specifying -q twice to suppress warnings as well.
21 years ago
Theodore Ts'o
0121220339
Optimized isync by not fetching the sizes of messages if they are
...
unneeded (i.e., if MaxSize is not specified in the config file).
Patch and idea originally from Nicolas Boullis <nboullis@debian.org>,
modified/polished by Theodore Ts'o per comments by Oswald Buddenhagen.
21 years ago
Oswald Buddenhagen
3de16206e7
ignore anything that does not look remotely like a maildir when
...
collecting mailboxes for OneToOne.
21 years ago
Oswald Buddenhagen
424db34ff2
make imaps: on the command line adjust the port and ssl options as well
21 years ago
Oswald Buddenhagen
b535af4fc4
- make it work without SSL
...
- switch from -Ds in Makefile to config.h
- small header cleaup
22 years ago
Oswald Buddenhagen
28e240a36b
don't free any config strings - who cares for a few bytes?
...
this fixes some crashes at exit.
22 years ago
Oswald Buddenhagen
38d46cc03e
accumulate status over multiple mailboxes, i.e., don't abort after first
...
failure
22 years ago
Oswald Buddenhagen
6f2550117a
- update copyrights. 2003 didn't begin yet, but who cares? :)
22 years ago
Oswald Buddenhagen
b10718cf20
- took over maintenance
...
- moved to sourceforge
- reorganized cvs structure
22 years ago
Michael Elkins
d228fae394
Updated the copyright notice to allow an exception for linking with OpenSSL,
...
which has a non-GPL compatible license.
23 years ago