Maildir delivery for Sendmail
authorJamie Cameron <jcameron@webmin.com>
Fri, 21 Dec 2007 23:00:48 +0000 (23:00 +0000)
committerJamie Cameron <jcameron@webmin.com>
Fri, 21 Dec 2007 23:00:48 +0000 (23:00 +0000)
46 files changed:
mailboxes/mailboxes-lib.pl
sendmail/CHANGELOG
sendmail/config-aix
sendmail/config-cobalt-linux
sendmail/config-coherent-linux
sendmail/config-corel-linux
sendmail/config-debian-linux
sendmail/config-debian-linux-2.1-2.2
sendmail/config-debian-linux-3.0-*
sendmail/config-freebsd
sendmail/config-freebsd-4.0-*
sendmail/config-generic-linux
sendmail/config-gentoo-linux
sendmail/config-hpux
sendmail/config-irix
sendmail/config-macos
sendmail/config-macos-1.3-*
sendmail/config-mandrake-linux
sendmail/config-mandrake-linux-8.2
sendmail/config-mandrake-linux-9.0-*
sendmail/config-msc-linux
sendmail/config-netbsd
sendmail/config-open-linux
sendmail/config-open-linux-2.5
sendmail/config-open-linux-3.1e
sendmail/config-openbsd
sendmail/config-openserver
sendmail/config-osf1
sendmail/config-redhat-linux
sendmail/config-redhat-linux-10.0-*
sendmail/config-redhat-linux-7.1-7.3
sendmail/config-redhat-linux-7.4-9.0
sendmail/config-slackware-linux
sendmail/config-slackware-linux-8.0
sendmail/config-slackware-linux-8.1-*
sendmail/config-sol-linux
sendmail/config-solaris
sendmail/config-solaris-10-*
sendmail/config-solaris-7
sendmail/config-solaris-8-9
sendmail/config-suse-linux
sendmail/config-suse-linux-8.2-*
sendmail/config-turbo-linux
sendmail/config-united-linux
sendmail/config-unixware
sendmail/config.info

index a4fd94c..abd9d92 100644 (file)
@@ -198,10 +198,19 @@ if (!defined(@mail_style_cache)) {
                        # Can get paths from Sendmail module config
                        local %sconfig = &foreign_config("sendmail");
                        if ($sconfig{'mail_dir'}) {
-                               return ($sconfig{'mail_dir'}, $sconfig{'mail_style'}, undef, undef);
+                               # File under /var/mail
+                               return ($sconfig{'mail_dir'},
+                                       $sconfig{'mail_style'}, undef, undef);
+                               }
+                       elsif ($sconfig{'mail_type'}) {
+                               # Maildir under home directory
+                               return (undef, $sconfig{'mail_style'},
+                                       undef, $sconfig{'mail_file'});
                                }
                        else {
-                               return (undef, $sconfig{'mail_style'}, $sconfig{'mail_file'}, undef);
+                               # mbox under home directory
+                               return (undef, $sconfig{'mail_style'},
+                                       $sconfig{'mail_file'}, undef);
                                }
                        }
                elsif ($config{'mail_system'} == 0) {
index a138305..9024d8b 100644 (file)
@@ -29,3 +29,5 @@ Cleaned up the code and UIs for all mapping lists, to fit in better with the Web
 ---- Changes since 1.300 ----
 The count of messages in the mail queue on the module's main page no longer includes those that the current user does not have access to.
 Added access control for the Spam Control page.
+---- Changes since 1.390 ----
+Added a Module Config option to support ~/Maildir mailboxes (even though Sendmail doesn't support this natively).
index b926996..0fe2373 100644 (file)
@@ -27,3 +27,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 8ec116b..c35307b 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 45c58f1..0537479 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 1d2145a..e205ec5 100644 (file)
@@ -26,3 +26,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 410c40e..1256a00 100644 (file)
@@ -28,3 +28,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 252fd88..76bd28a 100644 (file)
@@ -28,3 +28,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 7f20f66..e27025c 100644 (file)
@@ -28,3 +28,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index bd39eb2..96409e1 100644 (file)
@@ -31,3 +31,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 7a0dcef..5aada62 100644 (file)
@@ -31,3 +31,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 3da6fb1..59a4665 100755 (executable)
@@ -36,3 +36,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index ef9465b..4a07949 100755 (executable)
@@ -36,3 +36,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 99df3a5..27a3904 100644 (file)
@@ -26,3 +26,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 9f1f161..481013d 100644 (file)
@@ -34,3 +34,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 0a300de..712b49b 100644 (file)
@@ -31,3 +31,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index b96f297..6ff73ca 100644 (file)
@@ -31,3 +31,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 1f13cf6..c63ce83 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 979320f..f51ff52 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index ace097a..715ae44 100644 (file)
@@ -30,3 +30,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 2ca14ad..2ba7a45 100644 (file)
@@ -27,3 +27,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index a721364..102becf 100644 (file)
@@ -31,3 +31,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 2ae4cf0..2741769 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 19af811..452b3e4 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 19af811..452b3e4 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index c15a2d2..a06ff50 100644 (file)
@@ -30,3 +30,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index abb769c..28636ff 100644 (file)
@@ -27,3 +27,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 33c7ee1..315fb28 100644 (file)
@@ -26,3 +26,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 774f4e7..303538e 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index d8e4a4b..0f21957 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index cb45aac..1a685f0 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 45c58f1..0537479 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index af21b93..0a6061d 100644 (file)
@@ -26,3 +26,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 3da6fb1..59a4665 100755 (executable)
@@ -36,3 +36,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 29e423d..1fce53d 100755 (executable)
@@ -36,3 +36,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index b793d05..b99b00a 100644 (file)
@@ -36,3 +36,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 3938857..1ac9bad 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 3959028..5d62fc6 100755 (executable)
@@ -34,3 +34,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 sendmail_smf=network/smtp:sendmail
+mail_type=0
index 4cdb6a4..5d326c8 100644 (file)
@@ -35,3 +35,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index c6ee485..3168fa6 100644 (file)
@@ -35,3 +35,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 950d8bb..c5fb158 100644 (file)
@@ -28,3 +28,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 8f40a79..21d01c1 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index e3161f2..3aa6f51 100644 (file)
@@ -29,3 +29,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 950d8bb..c5fb158 100644 (file)
@@ -28,3 +28,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index 459ef3b..8109588 100644 (file)
@@ -27,3 +27,4 @@ columns=2
 show_cmts=0
 prefix_cmts=0
 
+mail_type=0
index f9ae246..b6caf9b 100644 (file)
@@ -31,6 +31,7 @@ access_file=Source file for the access database,3,Same as DBM
 domains_file=Source file for the domains database,3,Same as DBM
 mail_dir=User mail file location,3,File under home directory
 mail_file=Mail file in home directory,0
+mail_type=Mail storage type,1,1-Maildir,0-mbox
 mail_style=Mail file directory style,4,0-mail/username,1-mail/u/username,2-mail/u/us/username,3-mail/u/s/username
 mail_sync=User mail file synchronization,2,create-Create with user,delete-Delete with user,modify-Rename with user
 smrsh_dir=SMRSH directory,3,None