lmb@vicom.COM (Larry Blair) (12/28/88)
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. -- Larry Blair ames!vsi1!lmb lmb@vicom.com
lmb@vicom.COM (Larry Blair) (12/28/88)
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 = <seconds for main menu timeout or zero to disable> userlevel = <0=amateur, 1=okay, 2 or greater = expert!> ! sortby = <sent, received, from, size, subject, mailbox> alternatives = <list of addresses that forward to us> --- 63,69 ---- timeout = <seconds for main menu timeout or zero to disable> userlevel = <0=amateur, 1=okay, 2 or greater = expert!> ! sortby = <sent, received, from, size, subject, mailbox, status> alternatives = <list of addresses that forward to us> *************** *** 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