Commit ff9293be ff9293be0477fd7c7ae81913c0c61e76ca86090b by Alain Magloire

2001-04-14 Alain Magloire

	* mailbox/folder_imap.c: When calling imap_writeline () the
	cookie for the tag should be unsigned %d --> %u.
	(imap_send) : The number of bytes in memmove was wrong.
	* mailbox/mbx_imap.c: Some duplicate degug calls MAILBOX_DEBUG0()
	removed.
	(attribute_string): IMAP does not have a \\Read flag it should be
	the same as \\Seen so attribute_read() == attribute_seen().
	(flag_string): New function.
	(imap_attr_set_flags): Use flag_string(), instead.
	* mailbox/include/imap0.h:  CLEAR_STATE() should also deselect
	the current mailbox.

	* mailbox/mbx_pop.c (pop_write): The number of bytes in the memmove
	was wrong.

	* imap4d/imap4d.h: Add HAVE_SECURITY_PAM_APPL_H.
	* imap4d/login.c: PAM_ERROR wrongly define.
	* imap4d/expunge.c: Initialise variable sp.
	* imap4d/logout.c: Initialise variable sp.
	* imap4d/noop.c: Initialise variable sp.

	* configure.in: AC_REP_FUNC(vasprintf).
	* include/mailutils/Makefile.am: Add property.h, parse822.h.
	* lib/vasprintf.c: Taken from libit.
	(AM_INIT_AUTOMAKE): Change version to 0.0.9
1 parent 0b549877
1 2001-04-13 Alain Magloire 1 2001-04-14 Alain Magloire
2 2
3 * mailbox/folder_imap.c: When calling imap_writeline () the 3 * mailbox/folder_imap.c: When calling imap_writeline () the
4 cookie for the tag should be unsigned %d --> %u. 4 cookie for the tag should be unsigned %d --> %u.
...@@ -11,10 +11,20 @@ ...@@ -11,10 +11,20 @@
11 (imap_attr_set_flags): Use flag_string(), instead. 11 (imap_attr_set_flags): Use flag_string(), instead.
12 * mailbox/include/imap0.h: CLEAR_STATE() should also deselect 12 * mailbox/include/imap0.h: CLEAR_STATE() should also deselect
13 the current mailbox. 13 the current mailbox.
14
14 * mailbox/mbx_pop.c (pop_write): The number of bytes in the memmove 15 * mailbox/mbx_pop.c (pop_write): The number of bytes in the memmove
15 was wrong. 16 was wrong.
16 * lib/vasprintf.c: Taken from libit. 17
18 * imap4d/imap4d.h: Add HAVE_SECURITY_PAM_APPL_H.
19 * imap4d/login.c: PAM_ERROR wrongly define.
20 * imap4d/expunge.c: Initialise variable sp.
21 * imap4d/logout.c: Initialise variable sp.
22 * imap4d/noop.c: Initialise variable sp.
23
17 * configure.in: AC_REP_FUNC(vasprintf). 24 * configure.in: AC_REP_FUNC(vasprintf).
25 * include/mailutils/Makefile.am: Add property.h, parse822.h.
26 * lib/vasprintf.c: Taken from libit.
27 (AM_INIT_AUTOMAKE): Change version to 0.0.9
18 28
19 2001-04-13 Sam Roberts 29 2001-04-13 Sam Roberts
20 30
......
1 dnl Process this file with autoconf to procude a configure script. -*-m4-*- 1 dnl Process this file with autoconf to procude a configure script. -*-m4-*-
2 AC_INIT(mailbox/mailbox.c) 2 AC_INIT(mailbox/mailbox.c)
3 AM_INIT_AUTOMAKE(mailutils, 0.9.9) 3 AM_INIT_AUTOMAKE(mailutils, 0.0.9)
4 AM_CONFIG_HEADER(config.h) 4 AM_CONFIG_HEADER(config.h)
5 5
6 dnl Check for programs 6 dnl Check for programs
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
24 int 24 int
25 imap4d_expunge (struct imap4d_command *command, char *arg) 25 imap4d_expunge (struct imap4d_command *command, char *arg)
26 { 26 {
27 char *sp; 27 char *sp = NULL;
28 28
29 if (util_getword (arg, &sp)) 29 if (util_getword (arg, &sp))
30 return util_finish (command, RESP_NO, "Too many args"); 30 return util_finish (command, RESP_NO, "Too many args");
......
...@@ -25,6 +25,10 @@ ...@@ -25,6 +25,10 @@
25 #define _QNX_SOURCE 25 #define _QNX_SOURCE
26 #define _GNU_SOURCE 26 #define _GNU_SOURCE
27 27
28 #ifdef HAVE_SECURITY_PAM_APPL_H
29 #include <security/pam_appl.h>
30 #endif
31
28 #ifdef HAVE_SHADOW_H 32 #ifdef HAVE_SHADOW_H
29 #include <shadow.h> 33 #include <shadow.h>
30 #endif 34 #endif
......
...@@ -29,7 +29,7 @@ static int _perr = 0; ...@@ -29,7 +29,7 @@ static int _perr = 0;
29 29
30 #define PAM_ERROR if (_perr || (pamerror != PAM_SUCCESS)) { \ 30 #define PAM_ERROR if (_perr || (pamerror != PAM_SUCCESS)) { \
31 pam_end(pamh, 0); \ 31 pam_end(pamh, 0); \
32 return ERR_BAD_LOGIN; } 32 return util_finish (command, RESP_NO, "User name or passwd rejected"); }
33 33
34 static int 34 static int
35 PAM_gnupop3d_conv (int num_msg, const struct pam_message **msg, 35 PAM_gnupop3d_conv (int num_msg, const struct pam_message **msg,
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
24 int 24 int
25 imap4d_logout (struct imap4d_command *command, char *arg) 25 imap4d_logout (struct imap4d_command *command, char *arg)
26 { 26 {
27 char *sp; 27 char *sp = NULL;
28 if (util_getword (arg, &sp)) 28 if (util_getword (arg, &sp))
29 return util_finish (command, RESP_BAD, "Too many args"); 29 return util_finish (command, RESP_BAD, "Too many args");
30 util_out (RESP_BYE, "Logging out"); 30 util_out (RESP_BYE, "Logging out");
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
21 int 21 int
22 imap4d_noop (struct imap4d_command *command, char *arg) 22 imap4d_noop (struct imap4d_command *command, char *arg)
23 { 23 {
24 char *sp; 24 char *sp = NULL;
25 if (util_getword (arg, &sp)) 25 if (util_getword (arg, &sp))
26 return util_finish (command, RESP_BAD, "Too many args"); 26 return util_finish (command, RESP_BAD, "Too many args");
27 return util_finish (command, RESP_OK, "Completed"); 27 return util_finish (command, RESP_OK, "Completed");
......
...@@ -18,6 +18,8 @@ pkginclude_HEADERS = \ ...@@ -18,6 +18,8 @@ pkginclude_HEADERS = \
18 mime.h \ 18 mime.h \
19 monitor.h \ 19 monitor.h \
20 observer.h \ 20 observer.h \
21 parse822.h \
22 property.h \
21 registrar.h \ 23 registrar.h \
22 stream.h \ 24 stream.h \
23 url.h 25 url.h
......