initial commit of file from CVS for e-smith-qmail on Wed 12 Jul 09:06:46 BST 2023

This commit is contained in:
Brian Read
2023-07-12 09:06:46 +01:00
parent 522798702f
commit 2d08981b2a
67 changed files with 2072 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
| [ -d ./Maildir/.junkmail/ ] || /var/qmail/bin/maildirmake ./Maildir/.junkmail/
./Maildir/.junkmail/

View File

@@ -0,0 +1,14 @@
{
# vim: ft=perl:
die "USERNAME not set." unless defined ($USERNAME);
use esmith::AccountsDB;
$adb = esmith::AccountsDB->open_ro or die "Couldn't open AccountsDB";
$user = $adb->get($USERNAME) or die "No user $USERNAME in AccountsDB";
%props = $user->props;
$props{EmailForward} ||= 'local';
$OUT = '';
}

View File

@@ -0,0 +1,20 @@
{
# vim: ft=perl:
$OUT = '';
$props{Filter} ||= 'yes';
return '# Filter property is no'
unless ($props{Filter} eq 'yes');
my $preprocessing = "";
my $dt = $qmail{DeliveryType} || '';
if ($dt eq 'program')
{
$preprocessing .= '| ';
}
$preprocessing .= $qmail{DeliveryInstruction} || '';
$OUT = "$preprocessing\n" if $preprocessing;
}

View File

@@ -0,0 +1,7 @@
{
# vim: ft=perl:
return '# Forward not set'
unless ($props{EmailForward} =~ /^(forward|both)$/);
return '&' . $props{ForwardAddress};
}

View File

@@ -0,0 +1,7 @@
{
# vim: ft=perl:
return '# No local delivery'
unless ($props{EmailForward} =~ /^(local|both)$/);
return './Maildir/';
}