[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic linking to a mhonarc archive
Earl Hood wrote:
> > What might be more generally useful is a way of overriding the 'sort by
> > subject' function - for example in my case I could look in the subject for a
> > bugid, so that mails would sort as I require even if the bugid wasn't the
> > first word in the subject.
>
> The current code base is not abstracted well enough to make this
> clean. It would require knowing some internals. Also, and maybe
> more important, is the sorting would be slow. You'd probably have to
> pre-extract bug id information and sort on that to avoid extracting
> the bug id everytime a key comparison is done. If you look at the
> sort_messages() routine in mhutil.pl, you will see that I do some
> pre-processing before the actual sort for subject- and author-based
> sorting to minimize the comparison computation during the sort.
Yes, a regexp evaluation per sort comparison would be kinda costly.
> A potential hack is to actual modify the subject as before, but instead
> of trying to put a hyperlink in it, you prefix it with the relevant
> bug id. This way, if you do a subject sort, you may get the kind
> of grouping you desire.
Yeah, I wondered if that might work. This is all *such* fun :-)
Thanks once again,
--
Alan Burlison
--
$ head -1 /dev/bollocks
conveniently correlate front-end service point architectures
---------------------------------------------------------------------
To sign-off this list, send email to majordomo@mhonarc.org with the
message text UNSUBSCRIBE MHONARC-USERS
[Index of Archives]
[Bugtraq]
[Yosemite News]
[Mhonarc Home]