Re: search in index (mbox)
- To: mutt-users@xxxxxxxx
- Subject: Re: search in index (mbox)
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Tue, 9 Jun 2009 14:05:10 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=FGpI+Hh2DHiszHPypjX33Xfd10U=; b=AZ8f i75WtNgTvGluC1CtBbI6turjRoaZRrVnkGSRtUU7WQSYP15pKIoqznlp3rCwzKEl fGSJQuZsylXJ6kcoxhCjaQOds/7uEos0YGFglSK1xDI4tLCNyoDETZrFG/6wVo5n yC4CIPNo7Nzf6dr4KkKk0hYHuAXQeW5zKh/DCZQ=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=A/pQCoLkoP6bN2YNts5/1alyQTsBtq09QLLp0DKjN0pepSGbz++XoUTJtd/hL6ZOKadO/kE0gGWpNNeCAgYxPcpiL/cFOTH/KniGttOL9PniTZQmaRhwpZZUGcM3WoJqe39pyJpZ71TnF7jQ5nm7JbtrxARxkUti1npQbIT94Lo=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20090609185143.GA25868@herb>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20090609185143.GA25868@herb>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-06-07)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Tuesday, June 9 at 08:51 PM, quoth Jan-Herbert Damm:
>Hello,
>
>i am confused about mutt's searching behaviour.
>if i use the "/" (slash)- command in the index of my inbox i can search for a
>name of somebody who sent me a mail. But the same command doesn't work in my
>"sent" box. There the search only seems to match strings in the subject line.
>
>i am sure there is a simple explanation.
The short-short answer is: it IS searching the name of the person that
sent the mail, but in your sent box, they've all been sent by *you*.
When you do a search (via "/"), you're being prompted for a "simple
pattern". But if you don't specify a pattern (e.g. something that
begins with a tilde-letter combo), mutt uses the $simple_search
setting to build a pattern string. The *default* $simple_search is:
~f %s | ~s %s
What that essentially means is "find messages that have this string
(%s) in the from-header (~f) or that have this string (%s) in the
subject line (~s).
Presumably, in your sent box, you'd want it to also search the
recipients (since, like I said, all the messages in your sent box were
sent by YOU), so you could change it to being:
~f %s | ~s %s | ~C %s
Check the manual's (or the muttrc man page's) description of "simple
patterns" for more details on what those letters mean.
~Kyle
- --
Only small minds want always to be right.
-- King Louis XIV
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iQIcBAEBCAAGBQJKLrJlAAoJECuveozR/AWe2G0P/33LSY6h2PGcpds002XM1w8c
xrHBkVTQvmfciQKRhCwk1/gfEY7D7d2cE75LbgPaEBeGsr/TAWl+vn03MXelZamt
6t3Jg0OGFg9LM69C3axWIx0nWql+rwopQsWy/qE14Y2Y9Prr+WM3v3+Fl/Wi88zZ
kynArs4wLxpeYmsJSX1xDAEmuP/aglx7xUb6eMeIl5XKW+kIL/aXN0L0MiXJsoua
j58yWPtGnFiM6iC5yxTiIbajqhFlH03TynG9RAfVv3R3jZG2ZGSZW9tjsXNeWcqs
KSSF1tLRLwsQlSf8+Zoq2rHY7mWnMVrP3DutY9lupifRrP2qEM/NsDXdWoHfJ6cI
eKtd5tVhu3NeGSB0JxtfQ/X0M4/oFeqowzTipDmky8hJTAm6+8vHNpTvxOFCdEDE
yVRni+rUQ/b31CQFB8r9vKMhL9rxI49UwWqXtqKbHu/fctVSOik5zuThA6UqM5Nw
EUtX+vUTHoRJ6AQ1D1VF4dRbgf5euCKh+lMNHY3ZfTVmw5+v37EiZqpNv3itqFUD
E/1bhamAtAsemMiyhb+No7MqktTP7YD/4RQdywJcI62SYI+LAd0Pimu9WWB4lgck
BvPB9XJZEVCjhjRAqtngDsBYxQINz0APWRpD5bHwhdwIcqRpO6/j2KtVtgwKSzs5
zC21hO+IRmVkokDfM6qy
=drU+
-----END PGP SIGNATURE-----