Henrik Frisk | 28 Apr 23:05

Re: sortm arguments

> > How do I change the arguments to sortm (mh-sort-folder) on a temporary
> > basis? In the manual it says:
> > 
> > "The option mh-sortm-args holds extra arguments to pass on to the
> > command sortm^3 when a prefix argument is used with F S."
> > 
> > but how do I give F S a prefix argument? 
> 
> First, set the mh-sortm-args as you desire. Then run witha
> 
>     C-u F S
> 
> and it will use the mh-sortm-args for you.
> 
OK, I should have been able to figure that out by myself... sorry about that.

Now that I've figured out how it works I've defined a function that
easily let me sort my folder by the subject or from fields. FYI:

(defun my-mh-sort-folder (arg)
  "Sort current folder by subject or sender."
  (interactive "p")
  (if (= 1 arg)
      (setq mh-sortm-args '(-textfield subject -limit 0)))
  (if (= 2 arg)
      (setq mh-sortm-args '(-textfield from -limit 0)))
  (mh-sort-folder 4))

/henrik

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

Gmane