Changes

Jump to navigation Jump to search
1,570 bytes removed ,  05:40, 19 March 2022
Line 40: Line 40:  
</tab>
 
</tab>
 
</tabs>
 
</tabs>
      
== Basic Configuration ==
 
== Basic Configuration ==
Line 56: Line 55:  
and voila, next a cron task will handle the update hourly
 
and voila, next a cron task will handle the update hourly
   −
== Advanced Configuration ==
  −
here are some properties available to configure your list
  −
  −
  −
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;
  −
  −
  −
here are some to configure the system
  −
$ezmlm{'lang'}
  −
  −
$ezmlm{'ListServerName'}
  −
those element where manually configurable in SME7 and now are templated and have config db properties you can handle.
  −
  −
  −
I have explain the basic steps to run ezmlm-www. You can read the README file under /opt/mailinglist to customize your list.
  −
  −
Open the file '''config.pm''' and replace the string '''''PUT_YOUR_LISTNAME_HERE''''' with the name of your ezmlm list.
  −
  −
And say as README file configure the following parameters:
  −
  −
==> name
  −
Full e-mail address of list
  −
 
  −
==> local_part
  −
Chars that comes before che '@' sign in list address.
  −
 
  −
==> host_part
  −
Chars that comes after che '@' sign in list address.
  −
 
  −
==> description
  −
Verbose description of list (for indexing purposes).
  −
 
  −
==> archive
  −
Mail::Ezmlm::Archive object, specify list path.
  −
 
  −
==> conceal_senders
  −
Set this to 1 (otherwise to 0) if you want domains to be replaced by
  −
'...' in e-mail addresses to prevent spammers to read them.
  −
 
  −
==> subscription_info
  −
Set this to 1 (otherwise to 0) if you want some info about
  −
subscribing and unsubscribing to be put on main list page.
  −
 
  −
==> default_sorting
  −
This may be 'thread', 'date' or 'subject'.
  −
 
  −
==> descending_by_default
  −
Set this to 1 (otherwise to 0) if you want threads to be listed in
  −
descending order by default.
  −
 
  −
==> show_html
  −
Set this to 1 (otherwise to 0) if you want to display HTML messages.
  −
 
  −
==> highlight
  −
Set this to 1 (otherwise to 0) if you want to highlight parts of messages.
  −
such as replies, signatures, URLs.
  −
 
  −
==> show_inline_images
  −
Set this to 1 (otherwise to 0) if you want to display inline images
  −
instead of just a link.
  −
 
  −
$lang must be 'br', 'en', 'es', 'de', 'no', 'pt' or 'it' depending on your chosen language.
      
Access at '''''http://yourserver/mailinlist''''' and see if run ok.
 
Access at '''''http://yourserver/mailinlist''''' and see if run ok.
   −
Open the file '''ez_indexer.pl''' under '''search''' directory and change the string '''''PUT_YOUR_LISTNAME_HERE''''' with the name of your ezmlm list, as above.
+
Note that indexing is done incrementally, so it will be faster when just updating.
   −
Now launch '''ez_indexer.pl''' from the command line to index your existing messages (it may take a while!) to use the search function:
+
== Advanced Configuration ==
 
+
here are some properties available to configure your list  for the mailinglist type of the db accounts
/opt/mailinglist/search/ez_indexer.pl --create --verbose
+
{| class="wikitable"
 
+
!property
And then add it to crontab. Create a file named '''ezw-search''' and add this content:
+
!default
 
+
!values
#!/bin/bash
+
!description
cd /opt/mailinglist/search
+
!available in manager
./ez_indexer.pl --update
+
|-
 
+
|DisplayArchives
Save and correct perms:
+
|disabled
 
+
|enabled/disabled
chmod 755 ezw-search
+
|list or not the archive in the www interface
chown root.root ezw-search
+
|
 
+
|-
Then move under '''/etc/cron.hourly'''
+
|conceal_senders
 
+
|enabled
Note that indexing is done incrementally, so it will be faster when just updating.
+
|enabled/disabled
 +
|Set this to enabled if you want domains to be replaced by
 +
'...' in e-mail addresses to prevent spammers to read them.
 +
|
 +
|-
 +
|Description
 +
|
 +
|string
 +
|Verbose description of list (for indexing purposes).
 +
|yes
 +
|-
 +
|default_sorting
 +
|thread
 +
|thread date or subject
 +
|
 +
|
 +
|-
 +
|show_html
 +
|enabled
 +
|enabled/disabled
 +
|Set this to enabled if you want to display HTML messages.
 +
|
 +
|-
 +
|highlight
 +
|enabled
 +
|enabled/disabled
 +
|Set this to enabled if you want to highlight parts of messages.
 +
such as replies, signatures, URLs.
 +
|
 +
|-
 +
|show_inline_images
 +
|enabled
 +
|enabled/disabled
 +
|Set this to enabled if you want to display inline images
 +
instead of just a link.
 +
|
 +
|-
 +
|subscription_info
 +
|disabled
 +
|enabled/disabled
 +
|Set this to enabled if you want some info about
 +
subscribing and unsubscribing to be put on main list page.
 +
|
 +
|-
 +
|descending_by_default
 +
|enabled
 +
|descending_by_default
 +
|Set this to enabled if you want threads to be listed in descending order by default.
 +
|
 +
|}
 +
here are some properties against the ezmlm key in the db configuration
 +
{| class="wikitable"
 +
!property
 +
!default
 +
!values
 +
!
 +
|-
 +
|lang
 +
|system or en
 +
|'bg', 'de', 'en', 'es' , 'fr', 'it', 'no', 'pt' , 'tr', 'zh'
 +
|interface language, if empty will try to use your system language if available or English
 +
|-
 +
|ListServerName
 +
|empty
 +
|string
 +
|display a title for you www interface, default to server name if empty
 +
|}
    
== The End ==
 
== The End ==
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu