/[smecontribs]/rpms/smeserver-ezmlm-web/contribs10/smeserver-ezmlm-web-1.1.3-bz6978-bz9468-bz11910-sme10next.patch
ViewVC logotype

Diff of /rpms/smeserver-ezmlm-web/contribs10/smeserver-ezmlm-web-1.1.3-bz6978-bz9468-bz11910-sme10next.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Sun Mar 20 06:23:09 2022 UTC Revision 1.2 by jpp, Mon Aug 1 02:17:26 2022 UTC
# Line 183  diff -Nur --no-dereference smeserver-ezm Line 183  diff -Nur --no-dereference smeserver-ezm
183  +    return;  +    return;
184   }   }
185  -  -
 diff -Nur --no-dereference smeserver-ezmlm-web-1.1.3.old/root/etc/e-smith/templates/opt/mailinglist/config.pm smeserver-ezmlm-web-1.1.3/root/etc/e-smith/templates/opt/mailinglist/config.pm  
 --- smeserver-ezmlm-web-1.1.3.old/root/etc/e-smith/templates/opt/mailinglist/config.pm  1969-12-31 19:00:00.000000000 -0500  
 +++ smeserver-ezmlm-web-1.1.3/root/etc/e-smith/templates/opt/mailinglist/config.pm      2022-03-20 02:11:36.056000000 -0400  
 @@ -0,0 +1,101 @@  
 +#---------------------------------------------------------------------------  
 +# ezmlm-www (configuration file - see README)  
 +#---------------------------------------------------------------------------  
 +  
 +#---------------------------------------------------------------------------  
 +#-- Mailing list configuration goes here:  
 +{  
 +    use esmith::AccountsDB;  
 +    my $adb = esmith::AccountsDB->open_ro();  
 +    $OUT = "";  
 +    my @sortings=('thread' , 'date' , 'subject' );  
 +    foreach my $list ($adb->get_all_by_prop(type => 'mailinglist'))  
 +    {  
 +       next if (($list->prop('DisplayArchives') || 'disabled') ne 'enabled');  
 +       my $key= $list->key;  
 +       my $dompart=$list->prop('Domain');  
 +       my $name = "$key\@$dompart" ;  
 +       my $conceal_senders = ( ( $list->prop('conceal_senders') || 'enabled' ) eq 'enabled')? 1 : 0;  
 +       my $Description = $list->prop('Description') || "no description";        
 +       my $default_sorting = ( $list->prop('default_sorting') ~~ @sortings ) ? $list->prop('default_sorting') : 'thread';  
 +       my $show_html = (( $list->prop('show_html') || 'enabled') eq 'enabled')? 1 : 0;  
 +       my $highlight = (( $list->prop('highlight') ||'enabled') eq 'enabled')? 1 : 0;  
 +        my $show_inline_images = (( $list->prop('show_inline_images') || 'enabled') eq 'enabled')? 1 : 0;  
 +       my $subscription_info = (( $list->prop('subscription_info') || 'disabled') eq 'enabled') ? 1 :  0;  
 +       my $descending_by_default = (( $list->prop('descending_by_default') ||  'enabled') eq 'enabled')? 1 : 0;  
 +        my $search = (( $list->prop('search') ||  'disabled') eq 'enabled') ? 1 :  0;  
 +  
 +       $OUT.=<<"END_TXT";  
 +push \@\$lists, {  
 +       name => '$name',  
 +       local_part => '$key',  
 +       host_part => '$dompart',  
 +       description => '$Description',  
 +       archive => Mail::Ezmlm::Archive->new('/home/e-smith/files/ezmlm/lists/$key'),  
 +       conceal_senders => $conceal_senders,  
 +       subscription_info => $subscription_info ,  
 +       descending_by_default => 1,  
 +       default_sorting => '$default_sorting',   #may be 'thread', 'date' or 'subject'  
 +       show_html => $show_html,  
 +       highlight => $highlight,  
 +       show_inline_images => $show_inline_images,  
 +       search => $search  
 +};  
 +END_TXT  
 +   }  
 +  
 +}  
 +  
 +#---------------------------------------------------------------------------  
 +#-- This option specifies the language used for localized strings:  
 +  
 +$lang = '{      
 +my @langs = ('bg', 'de', 'en', 'es' , 'fr', 'it', 'no', 'pt' , 'tr', 'zh');  
 +my $syslang = (( substr($sysconfig{'Language'}, 0, 2) || 'unknown' )  ~~ @langs ) ? substr($sysconfig{'Language'}, 0, 2) : 'en'  ;  
 +my $langu =  (( $ezmlm{'lang'}  || 'unknown') ~~ @langs) ? $ezmlm{'lang'} : $syslang;  
 +return $langu;  
 +}';  
 +  
 +#---------------------------------------------------------------------------  
 +#-- To enable vpopmail support just uncomment the following line:  
 +#-- (this will disable the configuration done with the "push @$lists"  
 +#-- syntax above, as all information will be taken from vpopmail local  
 +#-- database and the %Config defaults below.)  
 +  
 +#use vpopmail;  
 +  
 +  
 +#---------------------------------------------------------------------------  
 +#--Additional configuration options:  
 +{  
 +   my $ListServerName = $ezmlm{'ListServerName'}  || $DomainName ;  
 +    $OUT.=<<"END_TXT";  
 +%Config = (  
 +       ListServerName => '$ListServerName',  
 +  
 +       #--These settings will be used for vpopmail-based mailing lists:  
 +       # NOT IN USE WITH SME #  
 +       DefaultVpopmailSettings => {  
 +               conceal_senders => 1,  
 +               subscription_info => 1,  
 +               descending_by_default => 1,  
 +               default_sorting => 'thread',   #may be 'thread', 'date' or 'subject'  
 +               show_html => 1,  
 +               highlight => 1  
 +       },  
 +       VpopmailAccess => {  
 +               default_policy => 'allow',  
 +               allow_lists => [],  
 +               deny_lists => [],  
 +               allow_domains => [],  
 +               deny_domains => []  
 +       },  
 +        
 +       #--CSS web path:  
 +       CSSPath => 'style.css'  
 +);  
 +END_TXT  
 +  
 +}  
 +  
 +1;  
186  diff -Nur --no-dereference smeserver-ezmlm-web-1.1.3.old/root/etc/e-smith/web/functions/mailinglists smeserver-ezmlm-web-1.1.3/root/etc/e-smith/web/functions/mailinglists  diff -Nur --no-dereference smeserver-ezmlm-web-1.1.3.old/root/etc/e-smith/web/functions/mailinglists smeserver-ezmlm-web-1.1.3/root/etc/e-smith/web/functions/mailinglists
187  --- smeserver-ezmlm-web-1.1.3.old/root/etc/e-smith/web/functions/mailinglists   2022-03-20 02:09:58.725000000 -0400  --- smeserver-ezmlm-web-1.1.3.old/root/etc/e-smith/web/functions/mailinglists   2022-03-20 02:09:58.725000000 -0400
188  +++ smeserver-ezmlm-web-1.1.3/root/etc/e-smith/web/functions/mailinglists       2022-03-20 02:20:41.660000000 -0400  +++ smeserver-ezmlm-web-1.1.3/root/etc/e-smith/web/functions/mailinglists       2022-03-20 02:20:41.660000000 -0400


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed