Skip to Content.
Sympa Menu

en - Re: [sympa-users] including names from data sources?

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "Michael L. Hitch" <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] including names from data sources?
  • Date: Thu, 12 Apr 2012 14:32:03 -0600 (MDT)

On Thu, 12 Apr 2012, Robert McNicholas wrote:

I looked at the Sympa 6 documentation, and this does not seem to be
addressed in that version. Am I correct?

I believe you are correct.

Have any patches been submitted to address this issue? If not, and you
were going to fix it, what approach would you take?

We had the same desire, as our previous mailing list system had that capability.

I saw some discussion about this, either on the sympa-users mailing list, or as a feature request - it's been a couple of years so I can't remember where I saw that.

As far as I know, no one had submitted any patches for it (at least at the time I was looking).

I have modified the code locally to just take the 2nd column from the database query results and pass that as the 'gecos' entry.

Here's part of my patch at the time [we also had a requirement to take into account a confidentiallity field to conceal a subscribers entry, so
this isn't the complete patch I have].

--- /home/sympa/bin/List.pm.orig 2010-03-29 11:59:43.000000000 -0600
+++ /home/sympa/bin/List.pm 2010-03-29 16:48:58.000000000 -0600
@@ -7897,11 +7897,15 @@ sub _include_users_sql {
}

$u{'email'} = $email;
+ $u{'gecos'} = $row->[1]; ## mhitch - 2nd column is user name
$u{'date'} = time;
$u{'update_date'} = time;
$u{'id'} = join (',', split(',', $u{'id'}), $id);


Mike

---
Michael L. Hitch address@concealed
Operations Consulting, Information Technology Center
Montana State University, Bozeman, MT USA



Archive powered by MHonArc 2.6.19+.

Top of Page