Skip to Content.
Sympa Menu

en - Re: [sympa-users] Custom tag for non subscriber's mail

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: Koczka Tamás <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Custom tag for non subscriber's mail
  • Date: Fri, 27 Nov 2009 17:28:28 +0100

Hi Koczka,

We think that, if headers whould be customized, it should be in a more generic way.
The problem is that we don't know which information people will want to add to the message header.

On my opinion, the best option would be to add systematically the result of a functionin Sympa, whose content would be an inclusion of a file, in which you would write perl code responsible for the generation of the string you want to add to the header.

This is roughly the plugin mechanisme we plan to add to Sympa, but it is not simple to implement.

Not ready before version 6.2, I guess.

Regards,

David

Koczka Tamás a écrit :
Hello!

I just wanted to know if there is any progress in this case.

Thanks,
Tamás

2009/10/23 Koczka Tamás <address@concealed>:
  
Hmmm.

We are tried this merge feature, but we think the solution for us
would be a computation-driven custom_subject field.

Our main problem with the merge feature is that the template is
created by the user, not the sympa. If are thinking in a merge feature
solution then sympa should modify all incoming email's subject with a
template. But we didn't find any tt2 files what could do this.

In the other hand we made a bit modification in the List.pm file. This
is the diff between revision 6265 and our test version:
"2604,2607d2603
<                                  },
<                        'email' => {'moderated' =>
defined($message->{'msg'}->head->get('X-Validation-by'))
<                                   },
<                        'user' => {'subscriber' =>
$self->is_user($message->{'sender'})"

This adds two new variables: "email.moderated", what decides the email
was moderated by someone and "user.subscriber" what decides the sender
of the email is a subscriber of the list.

The better for us is the second, "user.subscriber" variable, and we
can simply use with a custom_subject "[%list.name%][% IF
user.subscriber != 1 %] - reply in private[%END%]".

Should we send this modification as a patch for sympa?

Thanks for the help,
Tamás Koczka

2009/10/20 David Verdin <address@concealed>:
    
Hi,

No, there is not such a feature. Sympa 6.1 (still in alpha - near beta
version) implements data merging, allowing you to customize messages with
TT2 tags. For now it is with fixed data only, but it could later be
computations-driven.

regards,

David Verdin

Koczka Tamás a écrit :
      
Hi!

Is there a function in Sympa that writes a tag (for example [non
subscriber]) into the subject if the sender of the email is not
subscribed to the list?

It would be good because the list members would know that, they should
send the reply mails to the sender, not to the list.
(Or maybe change the reply-to header to the email address of the
sender instead of the email address of the list)

Thx,
Tamás Koczka

Budapest University of Technology and Economics
Schonherz Dormitory


        
--
David Verdin
Comité réseau des universités


      
  

-- 
David Verdin
Comité réseau des universités



Archive powered by MHonArc 2.6.19+.

Top of Page