root/alternc-mailman/trunk/patches/mailman-true-virtual-2.1.5.patch

Revision 2208, 5.2 kB (checked in by anarcat, 5 months ago)

first attempt at integrating the VirtualMailman patches

  • mailman/bin/newlist

    old new  
    133133    host_name = None 
    134134    web_page_url = None 
    135135    if '@' in listname: 
    136         listname, domain = listname.split('@', 1) 
     136        firstname, domain = listname.split('@', 1) 
    137137        host_name = mm_cfg.VIRTUAL_HOSTS.get(domain, domain) 
    138138        web_page_url = mm_cfg.DEFAULT_URL_PATTERN % domain 
    139139 
  • mailman/Mailman/Handlers/CookHeaders.py

    old new  
    164164    if msgdata.get('_nolist') or not mlist.include_rfc2369_headers: 
    165165        return 
    166166    # This will act like an email address for purposes of formataddr() 
    167     listid = '%s.%s' % (mlist.internal_name(), mlist.host_name) 
     167    #listid = '%s.%s' % (mlist.internal_name(), mlist.host_name) 
     168    # internal_name already contains the hostname with the vhost patch 
     169    listid = mlist.internal_name() 
    168170    if mlist.description: 
    169171        # Don't wrap the header since here we just want to get it properly RFC 
    170172        # 2047 encoded. 
Note: See TracBrowser for help on using the browser.