mirror of
https://git.freebsd.org/ports.git
synced 2025-07-09 13:29:24 -04:00
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>
63 lines
1.9 KiB
Text
63 lines
1.9 KiB
Text
Index: ChangeLog
|
|
===================================================================
|
|
--- ChangeLog (revision 2219)
|
|
+++ ChangeLog (revision 2220)
|
|
@@ -1,3 +1,9 @@
|
|
+2006-08-01 Aaron Stone <aaron@serendipity.cx>
|
|
+
|
|
+ * pipe.c:
|
|
+ Proper fix to prevent passing addresses with full names on the
|
|
+ sendmail command line (closes bug #372).
|
|
+
|
|
2006-07-30 Aaron Stone <aaron@serendipity.cx>
|
|
|
|
* sql/mysql/create_tables.mysql, migrate_from_2.0_to_2.1.mysql:
|
|
Index: pipe.c
|
|
===================================================================
|
|
--- pipe.c (revision 2219)
|
|
+++ pipe.c (revision 2220)
|
|
@@ -98,26 +98,40 @@
|
|
|
|
ialist = internet_address_parse_string(to);
|
|
ia = ialist->address;
|
|
- parsed_to = internet_address_to_string(ia, TRUE);
|
|
- internet_address_list_destroy(ialist);
|
|
+ if (ia->type != INTERNET_ADDRESS_NAME) {
|
|
+ // There isn't a valid address here. Bail...
|
|
+ internet_address_list_destroy(ialist);
|
|
+ return -1;
|
|
+ }
|
|
+ parsed_to = ia->value.addr;
|
|
|
|
if (! (escaped_to = dm_shellesc(parsed_to))) {
|
|
trace(TRACE_ERROR, "%s, %s: out of memory calling dm_shellesc",
|
|
__FILE__, __func__);
|
|
+ internet_address_list_destroy(ialist);
|
|
return -1;
|
|
}
|
|
|
|
+ internet_address_list_destroy(ialist);
|
|
+
|
|
ialist = internet_address_parse_string(from);
|
|
ia = ialist->address;
|
|
- parsed_from = internet_address_to_string(ia, TRUE);
|
|
- internet_address_list_destroy(ialist);
|
|
+ if (ia->type != INTERNET_ADDRESS_NAME) {
|
|
+ // There isn't a valid address here. Bail...
|
|
+ internet_address_list_destroy(ialist);
|
|
+ return -1;
|
|
+ }
|
|
+ parsed_from = ia->value.addr;
|
|
|
|
if (! (escaped_from = dm_shellesc(parsed_from))) {
|
|
trace(TRACE_ERROR, "%s, %s: out of memory calling dm_shellesc",
|
|
__FILE__, __func__);
|
|
+ internet_address_list_destroy(ialist);
|
|
return -1;
|
|
}
|
|
|
|
+ internet_address_list_destroy(ialist);
|
|
+
|
|
if (!sendmail_external) {
|
|
sendmail_command = g_strconcat(sendmail, " -f ", escaped_from, " ", escaped_to, NULL);
|
|
dm_free(escaped_to);
|