Commit 51ea95ed 51ea95edc64e8de57a32dfcbdb4fb8ec5f41b232 by Sergey Poznyakoff

Several bugfixes. Added testsuite framework and first tests

for imap4d.
1 parent b7bac135
Showing 1 changed file with 41 additions and 0 deletions
1 2002-08-22 Sergey Poznyakoff
2
3 * configure.ac: Create imap4d/testsuite/Makefile
4 * imap4d/Makefile.am: Added testsuite
5 * imap4d/testsuite: Added to repository
6 * imap4d/testsuite/Makefile.am: Likewise.
7 * imap4d/testsuite/config: Likewise.
8 * imap4d/testsuite/config/DISTFILES: Likewise.
9 * imap4d/testsuite/config/unix.exp: Likewise.
10 * imap4d/testsuite/lib: Likewise.
11 * imap4d/testsuite/lib/DISTFILES: Likewise.
12 * imap4d/testsuite/lib/imap4d.exp: Likewise.
13 * imap4d/testsuite/imap4d: Likewise.
14 * imap4d/testsuite/imap4d/DISTFILES: Likewise.
15 * imap4d/testsuite/imap4d/anystate.exp: Likewise.
16 * imap4d/testsuite/imap4d/examine.exp: Likewise.
17 * imap4d/testsuite/imap4d/list.exp: Likewise.
18
19 * imap4d/util.c (util_uidvalidity): New function. A wrapper
20 around mailbox_uidvalidity. When a mailbox is selected whose
21 first message does not keep X-UIDVALIDITY value, the uidvalidity
22 is computed based on the return of time(). Now, if we call
23 "EXAMINE mailbox" or "STATUS mailbox (UIDVALIDITY)" the same
24 mailbox is opened second time and the uidvalidity recalculated.
25 Thus each subsequent call to EXAMINE or STATUS upon an already
26 selected mailbox will return different uidvalidity value. To
27 avoid this, util_uidvalidity() first sees if it is asked to
28 operate upon an already opened mailbox and if so, returns
29 previously computed value.
30
31 * imap4d/imap4d.h (util_uidvalidity): New function
32 * imap4d/select.c (imap4d_select_status): Use util_uidvalidity.
33 * imap4d/status.c (status_uidvalidity): Likewise.
34 * imap4d/list.c (imap4d_list): Added comment describing
35 when INBOX should be output.
36
37 * frm/frm.c: Fixed coredump when MAIL environment variable
38 has an empty value.
39 * mailbox/mutil.c (mu_tilde_expansion): Bugfix. Was freeing
40 passed homedir, which caused grief later.
41
1 2002-08-21 Jeff Bailey <jbailey@outpost.dnsalias.org> 42 2002-08-21 Jeff Bailey <jbailey@outpost.dnsalias.org>
2 43
3 * README: Make this a bit more current. 44 * README: Make this a bit more current.
......