[Mailman-Developers] bug in confirmation mesaage headers
Fil
fil@bok.net
Tue, 24 Oct 2000 11:55:02 +0200
Here's the patch :
*** Mailman/Handlers/CookHeaders.py 2000/10/06 21:06:28 1.16
--- Mailman/Handlers/CookHeaders.py 2000/10/24 09:53:10
*************** def process(mlist, msg, msgdata):
*** 100,115 ****
listid = mlist.description + ' ' + listid
requestaddr = mlist.GetRequestEmail()
subfieldfmt = '<%s>, <mailto:%s?subject=%ssubscribe>'
! listinfo = mlist.GetScriptURL('listinfo')
#
# TBD: List-Id is not in the RFC, but it was in an earlier draft so we
# leave it in for historical reasons.
headers = {
'List-Id' : listid,
'List-Help' : '<mailto:%s?subject=help>' % requestaddr,
'List-Unsubscribe': subfieldfmt % (listinfo, requestaddr, 'un'),
'List-Subscribe' : subfieldfmt % (listinfo, requestaddr, ''),
'List-Post' : '<mailto:%s>' % mlist.GetListEmail(),
}
#
# First we delete any pre-existing headers because the RFC permist only
--- 100,115 ----
listid = mlist.description + ' ' + listid
requestaddr = mlist.GetRequestEmail()
subfieldfmt = '<%s>, <mailto:%s?subject=%ssubscribe>'
! listinfo = mlist.GetScriptURL('listinfo', absolute=1)
#
# TBD: List-Id is not in the RFC, but it was in an earlier draft so we
# leave it in for historical reasons.
headers = {
'List-Id' : listid,
'List-Help' : '<mailto:%s?subject=help>' % requestaddr,
'List-Unsubscribe': subfieldfmt % (listinfo, requestaddr, 'un'),
'List-Subscribe' : subfieldfmt % (listinfo, requestaddr, ''),
'List-Post' : '<mailto:%s>' % mlist.GetListEmail(),
}
#
# First we delete any pre-existing headers because the RFC permist only
* Fil (fil@bok.net) écrivait :
>
> A bug : the confirmation message (aka verify.txt) headers are bad in
> 2.0b6
>
> List-Subscribe: <../listinfo/listname>, ...
> List-Unsubscribe: <../listinfo/listname>, ...