Fork of isync with filter support
7cd74a1179
i implemented some cool stuff (tm). first, the long missing "create server-side missing mailboxes". -C now creates both local and remote boxes; -L and -R create only local/remote. second, i implemented a 1:1 remote:local folder mapping (-1) with an optional INBOX exception (inbox/-I). the remote folder is specified with the folder keyword (or -F switch) and takes precedence over the namespace setting. the local directory with the mailboxes can now be specified on the command line, too (-M). another patch: - made the -1 switch settable permanently (OneToOne). after all, you usually define your mailbox layout once forever. removed -A, as it is semantically -a modified by -1. - cleaned up message output a bit. still, the quiet variable should be used throughout the program. at best, create some generic output function, which obeys a global verbosity level variable. - optimized + cleaned up configuration parser slightly - minor cleanups add an (almost) unique id to every uploaded message and search for it right after. i thought about using the message-id, but a) it is not guaranteed to be unique in a mailbox (imagine you edit a mail and store the dupe in the same box) and b) some mails (e.g., postponed) don't even have one. a downside of the current implementation is, that this id-header remains in the mailbox, but given that it wastes only 27 bytes per mail and removing it would mean several roundtrips more, this seems acceptable. i changed the line-counting loop to use a mmapped file instead of reading it in chunks, as it makes things simpler and is probably even faster for big mails. the amount of goto statements in my code may be scary, but c is simply lacking a multi-level break statement. :) this is the "shut up" patch. :) it makes the -q option consequent, so to say. additionally it adds an -l option which gathers all defined/found mailboxes and just outputs the list. don't ask what i need it for. ;) |
||
---|---|---|
debian | ||
.cvsignore | ||
AUTHORS | ||
autogen.sh | ||
ChangeLog | ||
config.c | ||
configure.in | ||
COPYING | ||
cram.c | ||
dotlock.c | ||
dotlock.h | ||
imap.c | ||
isync.1 | ||
isync.h | ||
isync.spec.in | ||
isyncrc.sample | ||
list.c | ||
maildir.c | ||
main.c | ||
Makefile.am | ||
NEWS | ||
README | ||
sync.c | ||
TODO |
_ (_)___ _ _ _ __ ___ | / __| | | | '_ \ / __| | \__ \ |_| | | | | (__ |_|___/\__, |_| |_|\___| |___/ isync - IMAP4 to maildir mailbox synchronization program http://www.cs.hmc.edu/~me/isync/ Author: Michael Elkins <me@mutt.org> ``isync'' is a command line application which synchronizes a local maildir-style mailbox with a remote IMAP4 mailbox, suitable for use in IMAP-disconnected mode. Multiple copies of the remote IMAP4 mailbox can be maintained, and all flags are synchronized. * Features: * Fast mode for fetching new mail only * Supports imaps: (port 993) TLS/SSL connections * Supports STARTTLS (RFC2595) for confidentiality * Supports NAMESPACE (RFC2342) * Supports CRAM-MD5 (RFC2095) for authentication * Compatibility ``isync'' has been tested with the following IMAP servers: * Microsoft Exchange 2000 IMAP4rev1 server version 6.0.4417.0 * Courier-IMAP 1.2.3 * WU-IMAP 2000 * Domino IMAP4 Server Release 5.0.8 * Platforms ``isync'' has successfully be compiled under: * Linux 2.2.18 * Solaris 2.7 * OpenBSD 2.8 * FreeBSD 4.3 * Requirements OpenSSL for TLS/SSL support (optional) * INSTALLING ./configure make install * HELP Please see the man page for complete documentation.