- 04 Sep, 2001 1 commit
-
-
* include/mailutils/parse822.h: Add a prototype for parse822_skip_nl(). * lib/Makefile.am: add fgetpwent.c * lib/fgetpwent.c: New file. * mail/from.c (mail_from): Use the cover functions attribute_is_xxxx() instead of getting the flag. * mailbox/attribute.c: Cleanup the mess. attribute_set_{read,delete,seen,flagged,answered}. attribute_unset_{read,delete,seen,flagged,answered}. attribute_is_{read,delete,seen,flagged,answered} should be no more then cover functions calling attribute_set_flags(), attribute_get_flags() and attribute_unset_flags(). * mailbox/folder_imap.c: MU_ATTRIBUTE_READ, is not part of IMAP protocol use \\Seen. * mailbox/mbx_imap.c: Remove the hack trying to reconnect, it does not work. * mailbox/mbx_pop.c(pop_get_messages): Set the new functions for the attribute. (pop_get_attribute): New functions. (pop_set_attribute): New functions. (pop_unset_attribute): New functions. (pop_attr_flags): Removed. * mutil.c (mu_hex2ul): GNU coding std. (parse822_time): Do not use tzname as a variable name tzname is global variable in libc, better clear away. (parse822_date_time): Likewised. * pop3d/Makefile.am: add virtual.c * pop3d/pop3d.c (main): register getpwnam_ip_virtual, getpwnam_host_virtual * pop3d/pop3d.h: declare, getpwnam_ip_virtual(), getpwnam_host_virtual(). * pop3d/virtual.c: New file.
Alain Magloire authored
-
- 02 Sep, 2001 1 commit
-
-
reserve enough space to accomodate the extra slash, when doing the sprintf(). Include <string.h>, since we use strdup().
Alain Magloire authored
-
- 31 Aug, 2001 18 commits
-
-
-
-
-
-
-
-
-
to register several functions which will be tried in turn in order to obtain struct passwd*. Changed virtual domain code in pop3d and imap4d to use this approach.
Sergey Poznyakoff authored -
-
-
-
-
-
-
mu_getpwnam calls each function in succession until it finds one which returns non-NULL value.
Sergey Poznyakoff authored -
pathname in a buffer. For a daemon, it is better to stay in "/" the root. Moving in subdirecteris, will not permit the volume to be unmounted. But we do not follow the same rule for imap4d, it should be fix. * pop3d/signal.c: Shutup unused parameter warrning from gcc. * pop3d/user.c: Define macro VIRTUAL_PWDDIR. use sprintf() to build filename instead of chdir(). (PAM_gnupop3d_conv): Shutup unused parameter warrning from gcc. Make sure variable mailbox_name is initialized. * include/mailutils/mutil.h: Typo "struct password" instead of "struct passwd". Use const appropriately in the declaration of mu_register_getpwnam() and mu_getpwnam(). * mailbox/mutil.c: Use const appropriately in the definition of mu_register_getpwnam() and mu_getpwnam(). Typo "struct password" instead of "struct passwd".
Alain Magloire authored
-
- 30 Aug, 2001 14 commits
-
-
mu_getpwnam function. The function first calls system getpwnam, if it fails, it calls application-defined getpwnam function. mu_register_getpwnam can be used to register such a function.
Sergey Poznyakoff authored -
-
-
-
-
-
-
When checking for PAM: Append to AUTHLIBS instead of just assigning to it.
Sergey Poznyakoff authored -
-
Append linker flags to AUTHLIBS, since modifying LIBS effectively breaks compilation.
Sergey Poznyakoff authored -
Return values were allocated dynamically but never freed, this caused memory leaks if authentication functions were called more than once. Made them static, so that they get reallocated at each new invocation of getM functions, thus reclaming lost storage. Made <config.h> the first file to be included and guard it with #ifdef HAVE_CONFIG_H Reindented text to conform to GNU coding style.
Sergey Poznyakoff authored -
-
-
- 29 Aug, 2001 5 commits
-
-
-
-
-
-
is rename mu_list_t, as a suggestion from Sam R. * mailbox2/list.c: All the function names are prefix with "mu_".
Alain Magloire authored
-
- 28 Aug, 2001 1 commit