On 2012-04-30, Leonardo M. Ramé wrote:
> On 2012-04-30 14:16:09 -0700, Gary Johnson wrote:
> > On 2012-04-30, Leonardo M. Ramé wrote:
> > > As the subject says, is there a way to search by attachment name?.
> > > 
> > > I.E.: I know somebody sent me an email with an attached file named
> > > "Costsxxyy.xls" and I would like to search for that file.
> > 
> > You can search message bodies by using the ~b flag.  Type / to begin
> > the search, then
> > 
> >     ~b 'filename="?Costsxxyy\.xls"?'
> > 
> > Each "? will match 0 or 1 double-quotes which sometimes surround the
> > file name.
> > 
> > Regards,
> > Gary
> 
> Thanks Gary. One more question, how can I search for all ".xls" files?.
> 
> This way?: ~b 'filename="?*\.xls"?' 

Before I tried it, I would have said no, that to match zero or more
of any character you needed

    .*

However, a little experimentation with the limit command suggests
that * alone will work fine, too.

Regards,
Gary

Reply via email to