Maildir delivery for Sendmail

This commit is contained in:
Jamie Cameron
2007-12-21 23:00:48 +00:00
parent 721ee65e27
commit f50f7d0444
46 changed files with 57 additions and 2 deletions

View 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) {

View 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).

View File

@ -27,3 +27,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -26,3 +26,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -28,3 +28,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -28,3 +28,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -28,3 +28,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -31,3 +31,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -31,3 +31,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -36,3 +36,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -36,3 +36,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -26,3 +26,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -34,3 +34,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -31,3 +31,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -31,3 +31,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -30,3 +30,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -27,3 +27,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -31,3 +31,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -30,3 +30,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -27,3 +27,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -26,3 +26,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -26,3 +26,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -36,3 +36,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -36,3 +36,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -36,3 +36,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -34,3 +34,4 @@ columns=2
show_cmts=0
prefix_cmts=0
sendmail_smf=network/smtp:sendmail
mail_type=0

View File

@ -35,3 +35,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -35,3 +35,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -28,3 +28,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -29,3 +29,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -28,3 +28,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View File

@ -27,3 +27,4 @@ columns=2
show_cmts=0
prefix_cmts=0
mail_type=0

View 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