[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filter message display in 'summary'?



At Fri, 12 Mar 2010 20:31:37 -0800,
Erik Hetzner wrote:
> 
> [1  <text/plain; US-ASCII (7bit)>]
> At Fri, 12 Mar 2010 20:55:39 -0500,
> Matt Price wrote:
> > On this same topic -- I am trying to select only unanswered emails
> > with:
> > V !flag answered
> >
> > but the ! doesn't seem to be working for me -- both
> > V !flag answered
> > and
> > V flag answered
> >
> > give the same result, which is unfortunatley the inverse of what I'm
> > looking for.
> Hi Matt -
> 
> I can confirm this behavior on wl-beta on karmic, emacs22. It seems
> like a bug.

upgraded to 20100305 package from debian sid and still saw this
behaviour.  couldn't find a wl bug report system so filed a bug with
debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573726
if anyone wants to comment there.  

I'm not very good ith elisp or regexes; but grepping quickly through
the code I wonder whether the issue might be here, at the end of
wl-folder.el:

(defun wl-folder-complete-filter-condition (string predicate flag)
  (cond
   ((string-match "^\\(.*|\\|.*&\\|.*(\\)\\([^:]*\\)$" string)
    (let* ((str1 (match-string 1 string))
           (str2 (match-string 2 string))
           (str2-comp
            (wl-folder-complete-filter-condition str2 predicate flag)))
      (cond
       ((listp str2-comp) ; flag=t
        (mapcar (lambda (x) (concat str1 x)) str2-comp))
       ((stringp str2-comp)
        (concat str1 str2-comp))
       (t
        str2-comp))))
   (t
    (let ((candidate
           (mapcar (lambda (x) (list (concat (downcase x) ":")))
                   (wl-search-condition-fields))))
      (if (not flag)
          (try-completion string candidate)
        (all-completions string candidate))))))

but like I say, I can hardly read the code, so I have no idea if it's
right.

m