[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.5 How to input search conditions

If you type ‘?’ or ‘/’, Mew asks you to input search pattern as follows:

 
mewl/grep pick pattern: 

If you specify just a keyword, Mew executes ‘grep’. On the contrast if you type an expression, Mew calls ‘mewl’.

Here is a list of expression elements. (In the strong order)

field=string

Match if the "field" field contains the "string" string (case-insensitive). If you specify "head", it means the entire header.

field==string

Match if the "field" field contains the "string" string (case-sensitive). If you specify "head", it means the entire header.

field!=string

Match if the "field" field does not the "string" string (case-insensitive). If you specify "head", it means the entire header.

field!==string

Match if the "field" field does not the "string" string (case-sensitive). If you specify "head", it means the entire header.

( <pattern> )

Evaluate <pattern> first.

! <pattern>

Match if not <pattern>.

<pattern1> & <pattern2>

Match if <pattern1> AND <pattern2>. You can omit this.

<pattern1> | <pattern2>

Match if <pattern1> OR <pattern2>.

Some examples are shown below.

(a) Messages whose From: contains "kazu".

 
from=kazu

(b) Messages whose To: contains "mew" OR Cc: contains "mew".

 
to=mew | cc=mew

irtual (c) Messages whose To: contains "mew" OR Cc: contains "mew" AND From: contains "kazu".

 
(to=mew | cc=mew) & from=kazu

When you execute ‘?’ or ‘/’ and if you just type ‘RET’ to a pattern, you can specify a command to be executed.

 
Cmd opts pattern: grep -l -e 

When you use an search engine with ‘k?’ or ‘k/’, the pattern (including just a keyword and an expression) will be converted to the syntax of the search engine.

For example, you can write an expression, that From: is "kazu" and body contains "wine" but does not contain "bordeaux", as follows:

 
from=kazu wine ! bordeaux

If you set ‘mew-pick-pattern-list’ to a list of pattern, you can enjoy circular completion with ‘C-cTAB’. In this case, the first member is displayed as a default value.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by U-X61T\saito on August, 31 2008 using texi2html 1.78.