Subject: The mailing list for listmasters using Sympa
List archive
- From: Aumont <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] Brackets in custom subject
- Date: Mon, 26 Aug 2002 09:31:25 +0200
address@concealed wrote:
>
> Is there a mean to get rid of the brackets when specifying a custom mail
> subject for a list ?
This is just the usual way to tag subject in many MLM. We did
it that way because angle brakets are use by sympa parser in
templates so it was rather difficult to leave it in the
custom_subject list parameter.
>
> If there is no mean to suppress them, what are their use ? Can I suppress
> them safely from the source code ?
Yes, here is a diff -c : you just need to change one line.
But don't use "[]" in list templates.
Serge
*** src/List.pm.no_braket Mon Aug 26 09:26:13 2002
--- src/List.pm Wed Aug 21 16:28:59 2002
***************
*** 1969,1975 ****
## Add Custom Subject
if ($admin->{'custom_subject'}) {
! my $tag = $admin->{'custom_subject'};
my $subject_field = $msg->head->get('Subject');
$subject_field =~ s/^\s*(.*)\s*$/$1/;
if (index(&MIME::Words::decode_mimewords($subject_field), $tag)
<0) {
--- 1969,1975 ----
## Add Custom Subject
if ($admin->{'custom_subject'}) {
! my $tag = '['.$admin->{'custom_subject'}.']';
my $subject_field = $msg->head->get('Subject');
$subject_field =~ s/^\s*(.*)\s*$/$1/;
if (index(&MIME::Words::decode_mimewords($subject_field), $tag)
<0) {
--
-----------------------------------------------------------
Serge Aumont Comité Réseaux des Universités
Campus Beaulieu
35042 Rennes Cedex
-
Brackets in custom subject,
ad . l, 08/26/2002
- Re: [sympa-users] Brackets in custom subject, Aumont, 08/26/2002
Archive powered by MHonArc 2.6.19+.