Path: utzoo!attcan!uunet!husc6!cmcl2!rutgers!apple!vsi1!lmb From: lmb@vicom.COM (Larry Blair) Newsgroups: comp.mail.elm Subject: Re: Sortby wierdness Summary: patch Message-ID: <1325@vsi1.COM> Date: 28 Dec 88 00:36:28 GMT References: <1323@vsi1.COM> Organization: VICOM Systems Inc., San Jose, CA Lines: 52 In article <1323@vsi1.COM>, lmb@vicom.COM (Larry Blair) writes: > Did I miss a discussion? Elm 2.1pl1 accepts both mailbox order and status > order for its sortby type in the options menu. The Ref.guide doesn't list > mailbox as a valid type. Worse, read_rc.c doesn't accept status as a valid > type, blowing you out of elm when you start up. Well, it took about 30 seconds to fix. Here's the patch: *** read_rc.c.old Tue Dec 27 16:21:50 1988 --- read_rc.c Tue Dec 27 16:30:24 1988 *************** *** 63,69 **** timeout = userlevel = <0=amateur, 1=okay, 2 or greater = expert!> ! sortby = alternatives = --- 63,69 ---- timeout = userlevel = <0=amateur, 1=okay, 2 or greater = expert!> ! sortby = alternatives = *************** *** 226,231 **** --- 226,233 ---- sortby = SUBJECT; else if (equal(word2, "mailbox") || equal(word2, "folder")) sortby = MAILBOX_ORDER; + else if (equal(word2, "status")) + sortby = STATUS; else if (equal(word2, "reverse-sent") || equal(word2,"rev-sent")) sortby = - SENT_DATE; else if (strncmp(word2, "reverse-rec",11) == 0 || *************** *** 245,250 **** --- 247,255 ---- equal(word2, "reverse-folder") || equal(word2, "rev-folder")) sortby = - MAILBOX_ORDER; + else if (equal(word2, "reverse-status") || + equal(word2, "rev-status")) + sortby = - STATUS; else { if (! errors) printf("Error reading '.elm/elmrc' file;\n"); -- Larry Blair ames!vsi1!lmb lmb@vicom.com