1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/mail/dbmail21/files/patch-2.1.7_004
Edwin Groothuis f45d770362 New port: mail/dbmail21 -current branch of DBMail
Dbmail is the name of a group of programs that enable the possiblilty
	of storing and retrieving mail messages from a database (currently
	MySQL, PostgreSQL or SQLite).

	What are the advantages?

	    * Scalability.
	      Dbmail is as scalable as the database that is used for the
	      mail storage.
	    * Manageability.
	      Dbmail is based upon a database. Dbmail can be managed by
	      changing settings in the database (f.e. using PHP/Perl/SQL).
	    * Speed.
	      Dbmail uses very efficient, database specific queries for
	      retrieving mail information. This is much faster then parsing
	      a filesystem.
	    * Security.
	      Dbmail has got nothing to do with the filesystem or interaction
	      with other programs in the Unix environment which need special
	      permissions.  Dbmail is as secure as the database it's based
	      upon.
	    * Flexibility.
	      Changes on a Dbmail system (adding of users, changing passwords
	      etc.) are effective immediately.

	WWW: http://www.dbmail.org/

PR:		ports/101356
Submitted by:	Mark Starovoytov <mark_sf@kikg.ifmo.ru>
2006-08-05 22:35:33 +00:00

53 lines
1.6 KiB
Plaintext

Index: debug.c
===================================================================
--- debug.c (revision 2214)
+++ debug.c (revision 2215)
@@ -103,6 +103,7 @@
fprintf(stderr, "%s %s", trace_to_text(level), message);
if (message[l] != '\n')
fprintf(stderr, "\n");
+ fflush(stderr);
}
if (level <= TRACE_SYSLOG) {
Index: modules/sortsieve.c
===================================================================
--- modules/sortsieve.c (revision 2214)
+++ modules/sortsieve.c (revision 2215)
@@ -187,7 +187,7 @@
extern const char * imap_flag_desc[];
const char * const * flags;
const char * mailbox;
- int msgflags[IMAP_NFLAGS];
+ int *msgflags = NULL;
mailbox = sieve2_getvalue_string(s, "mailbox");
flags = sieve2_getvalue_stringlist(s, "imapflags"); // TODO
@@ -198,9 +198,9 @@
}
/* If there were any imapflags, set them. */
- memset(&msgflags, 0, IMAP_NFLAGS * sizeof(int));
if (flags) {
int i, j;
+ msgflags = g_new0(int, IMAP_NFLASGS);
for (i = 0; flags[i]; i++) { // Loop through all script/user-specified flags.
for (j = 0; imap_flag_desc[j]; i++) { // Find the ones we support.
Index: ChangeLog
===================================================================
--- ChangeLog (revision 2214)
+++ ChangeLog (revision 2215)
@@ -1,3 +1,11 @@
+2006-07-27 Aaron Stone <aaron@serendipity.cx>
+
+ * debug.c:
+ Added fflush after fprintf (closes bug #388).
+ * modules/sortsieve.c:
+ Make sure that the msgflags pointer is NULL if there are no special
+ flags (closes bug #383).
+
2006-07-26 Paul J Stevens <paul@nfg.nl>
* debian/control, modules/sortsieve.c: