Show
Ignore:
Timestamp:
05/08/08 22:09:40 (2 months ago)
Author:
anarcat
Message:

add a configuration variable to control the domain in the list urls. if
it is set, it will be used to construct the urls in the mailing list
listings. If it is unset, the list's domain name will be used.

the default behaviour is therefore reverted to the one before commit
[2097] where the list domain is used (without the prepended "mail.").

the NEWS file has more information on how to configure your installation
with the new setting.

Closes: #1131

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc-mailman/trunk/bureau/admin/mman_list.php

    r2097 r2245  
    7878                        <td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["id"]; ?>"></td> 
    7979                        <td><?php echo $val["list"]."@".$val["domain"] ?></td> 
    80                 <?php   // Use the URL of the webmail in case of IP redirection on the domain. There is probably a best way to fix this  ?> 
    81                         <td>&nbsp;<a href="https://mail.<?php echo $val["domain"]; ?>/cgi-bin/mailman/listinfo/<?php echo $val["name"] ?>"><?php __("Public page"); ?></a>&nbsp;</td> 
    82                         <td>&nbsp;<a href="https://mail.<?php echo $val["domain"]; ?>/cgi-bin/mailman/admin/<?php echo $val["name"] ?>"><?php __("List admin"); ?></a>&nbsp;</td> 
    83                         <td>&nbsp;<a href="https://mail.<?php echo $val["domain"]; ?>/cgi-bin/mailman/admindb/<?php echo $val["name"] ?>"><?php __("Pending messages"); ?></a>&nbsp;</td> 
     80                <?php   // Use the URL of the webmail in case of IP redirection on the domain. There is probably a best way to fix this 
     81    $mailman_url = variable_get('mailman_url'); 
     82    if (!empty($mailman_url)) $domaine = $mailman_url; else $domaine = $val["domain"]; 
     83    ?> 
     84                        <td>&nbsp;<a href="https://<?php echo $domaine; ?>/cgi-bin/mailman/listinfo/<?php echo $val["name"] ?>"><?php __("Public page"); ?></a>&nbsp;</td> 
     85                        <td>&nbsp;<a href="https://<?php echo $domaine; ?>/cgi-bin/mailman/admin/<?php echo $val["name"] ?>"><?php __("List admin"); ?></a>&nbsp;</td> 
     86                        <td>&nbsp;<a href="https://<?php echo $domaine; ?>/cgi-bin/mailman/admindb/<?php echo $val["name"] ?>"><?php __("Pending messages"); ?></a>&nbsp;</td> 
    8487                        <td>&nbsp;<a href="mman_members.php?id=<?php echo $val["id"] ?>"><?php __("List Members"); ?></a>&nbsp;</td> 
    8588                </tr> 
  • alternc-mailman/trunk/debian/NEWS

    r2223 r2245  
     1alternc-mailman (1.7) stable; urgency=low 
     2 
     3    add a configuration variable to control the domain in the list urls. if it 
     4    is set, it will be used to construct the urls in the mailing list 
     5    listings. If it is unset, the list's domain name will be used. 
     6 
     7    the default behaviour is therefore reverted to the one before 1.5 (svn 
     8    [2097]) where the list domain is used (without the prepended "mail."). 
     9 
     10    in case the variable is set, the administrator still needs to convert the 
     11    urls of existing lists and fix the default url in mm_cfg.py for new lists. 
     12    this can be done with a script like this in /var/lib/mailman/change_url: 
     13 
     14    def change_url(mlist): 
     15        mlist.web_page_url='https://listes.koumbit.net/cgi-bin/mailman/' 
     16        mlist.Save() 
     17        mlist.Unlock() 
     18 
     19    ... called like this: 
     20 
     21     /usr/lib/mailman/bin/withlist -l -r change_url -a 
     22      
     23     See https://alternc.org/ticket/1131 for more information. 
     24 
     25 -- Antoine Beaupré <antoine@koumbit.org>  Thu, 08 May 2008 16:02:34 -0400 
     26 
    127alternc-mailman (1.6) stable; urgency=low 
    228 
  • alternc-mailman/trunk/debian/changelog

    r2222 r2245  
     1alternc-mailman (1.7) stable; urgency=low 
     2 
     3  [ Patrick Hétu ] 
     4  * fix list URLs by adding a new variable (#1131) 
     5 
     6 -- Antoine Beaupré <antoine@koumbit.org>  Thu, 08 May 2008 16:05:56 -0400 
     7 
    18alternc-mailman (1.6) stable; urgency=low 
    29 
  • alternc-mailman/trunk/debian/postrm

    r2189 r2245  
    2020        . "$CONFIGFILE" 
    2121        mysql -f --defaults-file=/etc/alternc/my.cnf -e "DROP TABLE IF EXISTS mailman" 
     22        mysql -f --defaults-file=/etc/alternc/my.cnf -e "DELETE FROM variable WHERE name = 'mailman_url'" 
    2223    fi 
    2324    ;; 
  • alternc-mailman/trunk/mailman.sql

    r1175 r2245  
    99) TYPE=MyISAM COMMENT='Mailman mailing lists'; 
    1010 
     11INSERT IGNORE INTO `variable` (name, value, comment) VALUES ('mailman_url', 0, 
     12' This is the domaine name that will be use to construct mailman\'s interface links. Set this to 0 or a "false" string to ignore and keep the default behavior (hosted domain in the URL).');