Changes

Jump to navigation Jump to search
999 bytes removed ,  19:43, 20 March 2022
Line 40: Line 40:  
</tab>
 
</tab>
 
</tabs>
 
</tabs>
      
== Basic Configuration ==
 
== Basic Configuration ==
Line 55: Line 54:     
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.
+
if one of your list is displaying but show no month, this is because it was not previously archived / indexed , the workaround :
   −
Open the file '''config.pm''' and replace the string '''''PUT_YOUR_LISTNAME_HERE''''' with the name of your ezmlm list.
+
ezmlm-archive  /home/e-smith/files/ezmlm/lists/MYLIST
   −
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. They are also all available using the web admin panel provided by the contribution [Ezmlm].
 +
{| class="wikitable"
 +
!property
 +
!default
 +
!values
 +
!description
 +
!available in manager
 +
|-
 +
|DisplayArchives
 +
|disabled
 +
|enabled/disabled
 +
|list or not the archive in the www interface
 +
|
 +
|-
 +
|conceal_senders
 +
|enabled
 +
|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
 +
|enabled/disabled
 +
|Set this to enabled if you want threads to be listed in descending order by default.
 +
|
 +
|-
 +
|search
 +
|disabled
 +
|enabled/disabled
 +
|display the search box.
 +
|
 +
|}
   −
  /opt/mailinglist/search/ez_indexer.pl --create --verbose
+
  db accounts setprop MYMAILINGLIST search enabled
 +
signal-event smeserver-ezmlm-www
   −
And then add it to crontab. Create a file named '''ezw-search''' and add this content:
     −
#!/bin/bash
+
here are some properties against the ezmlm key in the db configuration
cd /opt/mailinglist/search
+
{| class="wikitable"
./ez_indexer.pl --update
+
!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
 +
|} 
   −
Save and correct perms:
+
  config setprop ezmlm lang tr ListServerName 'My personal mailing list browsable web archive'
 
+
  expand-template /opt/mailinglist/config.pm
  chmod 755 ezw-search
  −
  chown root.root ezw-search
  −
 
  −
Then move under '''/etc/cron.hourly'''
  −
 
  −
Note that indexing is done incrementally, so it will be faster when just updating.
      
== The End ==
 
== The End ==
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu