Gossamer Forum
Home : Products : Links 2.0 : Customization :

E-Mail address sorting

Quote Reply
E-Mail address sorting
Hello,
I'm wondering how to turn off the sorting in the newsletter e-mail database so the last person signing up will be at the bottom of the list.
Thanks

Quote Reply
Re: E-Mail address sorting In reply to
There is no way to do that once they have been added to the subscribers list. The subscribe.cgi, sub subscribe routine adds people to the list alphabetically by email address. The code is:
Code:
foreach (sort keys %{$users_r}) {
print LIST "$_$db_delim${$users_r}{$_}\n";
}
So you will have to modify that code to just add the people to the end of the email.db file instead of rewriting the whole file. Note that email.db is read in by a call to sub get_users in the subroutine (at the top). More than just the above code would need to be changed.

I hope this helps.

- Bobsie
bobsie@orphanage.com
http://goodstuff.orphanage.com/
Quote Reply
Re: E-Mail address sorting In reply to
Thanks, after looking into it I guess I would be better off with an external mail list application that already has this feature rather than making so many changes on my own and risking damage. I thought it might have been an easier fix.