On Sep 25, 5:44pm, Alan Edmonds wrote:
} Ive got some large lists that people like to maintain via majorcool.
} They would like to see the list of subscribers alphabetically sorted.
} Now, this could be done in majorcool when the list is presented, but
} it might also be useful when the list is stored.
} Any ideas on this? Any reason why majordomo couldn't sort the list
} before writing it out?
Sorting is a presentation issue, not a storage issue. If the MTA
could actually utilize sorted files to its advantage, I would agree
that saving as sorted would be good. But since it isn't, the sort
should only be a display issue relative to Majordomo's "who"
command and nothing more.
[At one time, I added a who_sort option to the Majordomo list
config files. If 'yes', then "who" output would be alpha-sorted.
But there is a minor problem: what does sorting mean with respect
to a list of addresses? What do you do with RFC822 comments?
Upper- vs lowercase? Do you sort on username or domain name
component? That is why MajorCool allows you to define your own
sort function if a straight alpha-sort is not good enough.]