Commit 54200808 54200808b9f32d097e8fb11bf59283bed9055391 by Sergey Poznyakoff

Updated

1 parent 35862246
1 2004-12-05 Sergey Poznyakoff
2
3 * Makefile.am: Added sql/
4 * configure.ac: Rewritten sql-related part. Allow to specify
5 several SQL libraries simultaneously.
6
7 * sql: New directory
8 * sql/Makefile.am: New file
9 * sql/.cvsignore: New file
10 * sql/sql.c: New file
11 * sql/mysql.c: New file
12 * sql/postgres.c: New file
13
14 * auth/mysql.c: Removed
15 * auth/pgsql.c: Removed
16 * auth/sql.c: Rewritten using general SQL interface.
17 * auth/Makefile.am: Removed mysql.c and pgsql.c
18 * include/mailutils/sql.h: New file
19 * include/mailutils/Makefile.am: Added sql.h
20
21 * include/mailutils/errno.h: Added new error codes.
22 * mailbox/muerrno.c: Likewise.
23
24 * mail.local/mail.local.h (quota_query): New variable
25 * mail.local/mailquota.c: Retrieve quotas from SQL database
26 * mail.local/main.c: New option --quota-query
27
28 * scripts/sqlmod.sh: New file
29 * scripts/Makefile.am: Added sqlmod.sh
30
31 * doc/texinfo/programs.texi: Documented mailbox quotas
32
33 * NEWS: Updated
34 * README: Updated
35 * po/POTFILES.in: Updated
36
1 2004-12-02 Sergey Poznyakoff 37 2004-12-02 Sergey Poznyakoff
2 38
3 * doc/texinfo/programs.texi: Documented movemail. 39 * doc/texinfo/programs.texi: Documented movemail.
......
...@@ -13,7 +13,7 @@ Version 0.5.1: ...@@ -13,7 +13,7 @@ Version 0.5.1:
13 The option disables any authentication commands until the client party 13 The option disables any authentication commands until the client party
14 establishes TLS connection with the server. 14 establishes TLS connection with the server.
15 15
16 ** Pop3d server accepts new option `--disable-expired'. 16 ** Pop3d server accepts new option `--delete-expired'.
17 17
18 This option is to be used together with `--expire'. It enables 18 This option is to be used together with `--expire'. It enables
19 automatic deletion of expired messages before closing the 19 automatic deletion of expired messages before closing the
...@@ -21,7 +21,13 @@ mailbox. Previous versions of pop3d relied on a cron job that ...@@ -21,7 +21,13 @@ mailbox. Previous versions of pop3d relied on a cron job that
21 was supposed to purge users' mailboxes, but such usage is extremely 21 was supposed to purge users' mailboxes, but such usage is extremely
22 ineffective for mail servers with considerable number of users. 22 ineffective for mail servers with considerable number of users.
23 23
24 * Mainly bug fixes 24 ** The package can be compiled with support for both MySQL and PostgreSQL
25 simultaneously. Which of the interfaces to use is defined at run time
26 by --sql-interface option.
27
28 ** Mail.local is able to retrieve mailbox quotas from SQL database.
29
30 * Bug fixes
25 31
26 32
27 Version 0.5: 33 Version 0.5:
......
...@@ -56,19 +56,42 @@ specific configuration options: ...@@ -56,19 +56,42 @@ specific configuration options:
56 56
57 Do not build thread-safe libraries. 57 Do not build thread-safe libraries.
58 58
59 --with-sql=MODLIST
60
61 Enable support for authentication using given SQL modules. MODLIST
62 is a colon-separated list of SQL modules to use. Available modules
63 are 'mysql' and 'postgres'. E.g.:
64
65 --with-sql=mysql:postgres
66
67
68 Note that depending
69 on how your SQL systems are installed, this may require adding
70 appropriate directories to the library and include paths, e.g.
71
72
73 ./configure LIBS='-L/usr/local/mysql/lib -L/usr/local/pgsql/lib' \
74 CPPLAGS='-I/usr/local/mysql/include \
75 -I/usr/local/pgsql/include'
76 --with-sql=mysql:postgres
77
78
59 --with-mysql 79 --with-mysql
60 80
61 Enable support for authentication via MySQL. Note that depending 81 Equivalent to --with-sql=mysql
62 on how your MySQL system is installed, this may require adding 82
63 appropriate directories to the library and include paths, e.g.: 83 Note that depending on how your MySQL system is installed, this
84 may require adding appropriate directories to the library and
85 include paths, e.g.:
64 86
65 ./configure LIBS='-L/usr/local/mysql/lib' \ 87 ./configure LIBS='-L/usr/local/mysql/lib' \
66 CPPLAGS='-I/usr/local/mysql/include' --with-mysql 88 CPPLAGS='-I/usr/local/mysql/include' --with-mysql
67 89
68 --with-postgres 90 --with-postgres
69 91
70 Enable support for authentication via PostgreSQL. You may 92 Equivalent to --with-sql=postgres
71 have to explicitly specify LIBS and CPPFLAGS (see above). 93
94 You may have to explicitly specify LIBS and CPPFLAGS (see above).
72 95
73 --enable-mh-utils 96 --enable-mh-utils
74 97
......
...@@ -3,9 +3,10 @@ ...@@ -3,9 +3,10 @@
3 # Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. 3 # Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
4 # 4 #
5 5
6 auth/mysql.c 6 sql/mysql.c
7 sql/postgres.c
8
7 auth/pam.c 9 auth/pam.c
8 auth/pgsql.c
9 auth/sql.c 10 auth/sql.c
10 auth/tls.c 11 auth/tls.c
11 auth/virtual.c 12 auth/virtual.c
......