# 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) {
---- 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).
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