Steps to reproduce: 0 login userid password 1 select myfavoritemailbox 2 sort (FROM) UTF-8 ALL
I tested alpha5 and it works fine. Here is the trace of beta1. I see many adds in revision 8726(hg annotate mail-storage.c), but that line number(674) is very old. So it might be a local problem.
Here is what dbx "where" says about what happened.
mailbox_header_lookup_init(box = (nil), headers = 0x0ffffffffffff260), line 674 in "mail-storage.c" wanted_fields_get(box = (nil), sort_program = 0x0ffffffffffff3a0, wanted_fields_r = 0x0ffffffffffff308, headers_ctx_r = 0x0ffffffffffff310), line 518 in "imap-search.c" imap_search_start(ctx = 0x0000000110021c70, sargs = 0x00000001100848b8, sort_program = 0x0ffffffffffff3a0), line 536 in "imap-search.c" cmd_sort(cmd = 0x0000000110021b58), line 136 in "cmd-sort.c" client_command_input(cmd = 0x0000000110021b58), line 603 in "client.c" client_command_input(cmd = 0x0000000110021b58), line 652 in "client.c" client_handle_next_command(client = 0x00000001100216d0, remove_io_r = 0x0ffffffffffff621), line 693 in "client.c" unnamed block in client_handle_input(client = 0x00000001100216d0), line 703 in "client.c" client_handle_input(client = 0x00000001100216d0), line 703 in "client.c" client_input(client = 0x00000001100216d0), line 748 in "client.c" io_loop_handler_run(ioloop = 0x000000011001f850), line 203 in "ioloop-poll.c" io_loop_run(ioloop = 0x000000011001f850), line 338 in "ioloop.c" main(argc = 1, argv = 0x0ffffffffffff918, envp = 0x0ffffffffffff928), line 315 in "main.c" (dbx) quit
Thanks, Jonathan