Oswald Buddenhagen
a49893f32e
fix strftime() %z conversion specifier check
...
only glibc does something sane with gmtime()+strftime(). on bsd (incl.
mac os), strftime() can be used only with localtime().
11 years ago
Oswald Buddenhagen
2b27216b86
ignore automake's "compile" script
11 years ago
Oswald Buddenhagen
945e05cfdd
use autoreconf instead of calling separate tools
...
this has been the correct way since a long time.
Pointed-out-by: Felipe Contreras <felipe.contreras@gmail.com>
11 years ago
Oswald Buddenhagen
32def5dc0a
add/fix comments and improve debug messages
11 years ago
Oswald Buddenhagen
a9a331c98a
simplify condition
...
... and document the cases.
11 years ago
Oswald Buddenhagen
03f8bfdfb2
micro-optimization/-clarification
11 years ago
Oswald Buddenhagen
00076a6971
move initializations for clarity
11 years ago
Oswald Buddenhagen
61ef099cd5
MaxMessages: make condition exactly symmetrical to condition below
11 years ago
Oswald Buddenhagen
080740f867
rewrite condition for readability and consistency
11 years ago
Oswald Buddenhagen
b10fd0c21c
remove assumption about value of M constant
11 years ago
Oswald Buddenhagen
a893cba483
fix enum abuse
...
amends 9c86ec344
.
S_FIND was for the sync record status field. it has no business in the
sync vars status fields. its value coincided with ST_SELECTED, which
luckily only means that we always tried to match up TUIDs even if there
was nothing to do.
the need for TUID matching arises in two mostly independent
circumstances, so add two separate flags ST_FIND_{OLD,NEW}.
11 years ago
Oswald Buddenhagen
9a0e65f899
create unseen messages in /new/
...
seen messages still go to /cur/.
this is consistent with the actual maildir driver.
11 years ago
Oswald Buddenhagen
0a684bd933
be a bit more verbose
11 years ago
Oswald Buddenhagen
394aca03a2
properly handle unexpected exit while replaying journal
11 years ago
Oswald Buddenhagen
07377cb753
ensure that the journal replay pass really does nothing
11 years ago
Oswald Buddenhagen
100f9487f4
sort messages by serial number instead of UID in box dumper
...
the input data is sorted that way, so it's easier to compare.
11 years ago
Oswald Buddenhagen
2568459a7b
fix error message in sync state dumper
11 years ago
Oswald Buddenhagen
b570c17766
deal with messages disappearing between being listed and fetched
11 years ago
Oswald Buddenhagen
17c4748dfa
support backslash-escaping in the config file
...
note that no attempt is made at making this work in the compat wrapper.
11 years ago
Oswald Buddenhagen
2213d6976c
support backslashes and quotes in quoted IMAP strings
...
the RFCs require it - well hidden in the BNF at the bottom.
patch somewhat inspired by "guns" <self@sungpae.com>.
11 years ago
Oswald Buddenhagen
c0bf867669
make next_arg() more readable & efficient
11 years ago
Oswald Buddenhagen
3ceb553102
IPv6 support
...
inspired by a patch by "Todd T. Fries" <todd@fries.net>.
11 years ago
Oswald Buddenhagen
4a39cae8c4
support multi-homed servers
11 years ago
Oswald Buddenhagen
0b59ee0df3
support multi-character path separators
...
this applies to both the IMAP PathDelimiter (which is needed by Lotus
Domino), as well as the Flatten-ed separators.
11 years ago
Oswald Buddenhagen
1b67c49965
CHECK before FETCH after STORE
...
m$ exchange does not seem to update the index in time otherwise.
11 years ago
Oswald Buddenhagen
eb1f10762f
added sync support for the arrival date of messages
...
initial patch by Marc Hoersken <info@marc-hoersken.de>
11 years ago
Oswald Buddenhagen
6577bf3e61
warn if we cannot find some messages by TUID
11 years ago
Oswald Buddenhagen
1847a4e12d
make better use of ATTR_UNUSED
11 years ago
Oswald Buddenhagen
6dfccb76a5
be somewhat stricter about the LIST response syntax
...
the first token *must* be a list.
11 years ago
Oswald Buddenhagen
a0dc37339e
allow the mailbox names in LIST responses to be literals
...
Lotus Domino seems to send them like that.
11 years ago
Oswald Buddenhagen
fc77feacc5
make parse_list() callback based
...
this allows us to parse IMAP literals ({}) in every list.
11 years ago
Oswald Buddenhagen
bf049d6466
add PassCmd option to query IMAP password dynamically
...
inspired by patches by
Aurélien Francillon <aurelien.francillon@eurecom.fr>,
Martin Stenberg <martin@gnutiken.se> and
sbfnk@users.sf.net .
11 years ago
Oswald Buddenhagen
5ad83b4e6a
don't unnecessarily use continue
11 years ago
Oswald Buddenhagen
e4243debb6
use INT_MAX instead of zero for "no size limit"
...
this simplifies the actual conditions
11 years ago
Oswald Buddenhagen
ca3a319e60
update copyrights
12 years ago
Oswald Buddenhagen
01358ec8b4
man page fixups
12 years ago
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
e7c96f8891
always list INBOX when asked for it
...
it's there even if it's not there. says IMAP. no need to contradict.
12 years ago
Oswald Buddenhagen
daaf950878
split maildir_list_part()
...
the boolean argument switched two entirely separate functions.
12 years ago
Oswald Buddenhagen
167de3e438
remove some temporaries in maildir_list_part()
12 years ago
Oswald Buddenhagen
842aa402c3
fix CRAM-MD5 authentication
...
the decoded challenge may be padded, so we really need to use strlen()
rather than just the decoded length.
12 years ago
Oswald Buddenhagen
e07de2a336
more consistency in char signedness
12 years ago
Felipe Contreras
aad7f903ec
maildir: fix trash path double-free
...
It should be freed at the very end.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
12 years ago
Felipe Contreras
ff9bf4d91b
Fix build with recent autoconf and modernize configure.ac
...
configure.ac:2: warning: macro 'AM_CONFIG_HEADERS' not found in library
configure.ac:7: error: 'AM_PROG_CC_STDC': this macro is obsolete.
You should simply use the 'AC_PROG_CC' macro instead.
Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
but upon 'ac_cv_prog_cc_stdc'.
configure.ac:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
12 years ago
Felipe Contreras
10a146e1b9
Rename configure.in to the modern equivalent
...
Fixes:
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
12 years ago
Oswald Buddenhagen
89c81e382e
discourage use of MapInbox
12 years ago
Oswald Buddenhagen
4ab55dc468
don't try to fetch status of minus one message
...
this would happen if we were trying to find newly pushed messages, but
none actually arrived.
as imap's ranges are not ordered, this would actually fetch one message.
12 years ago
Oswald Buddenhagen
9261897629
don't record newuid in the sync state
...
this value is only ever used to find just pushed messages by TUID, so we
can simply use the UIDNEXT value from before we started pushing - and of
course, we need to record that in the journal. it makes no sense to log
the new value after completing a search, as there won't be a next search
before we push the next messages.
12 years ago
Oswald Buddenhagen
96be183acb
rename sync_vars_t::uidnext => newuid & fix comment
...
the purpose of this variable is to hold the UIDNEXT value from before
we started pushing new messages, i.e., the minimal uid we can expect
them to have.
12 years ago
Oswald Buddenhagen
15d57b95b7
make paths relative to CWD, after all
...
the test suite actually relies on it. it would be possible to adjust it,
but there is not much reason to make paths relative to HOME (as we
support convenient tilde expansion). so use the least invasive approach,
which is simply the old behavior. adjust the documentation accordingly.
This reverts commit da5ce5d8f4
.
12 years ago