Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to search by attachment?

1,748 views
Skip to first unread message

Jagadeesh

unread,
Feb 9, 2011, 11:33:19 PM2/9/11
to
Hi,

Is there anyway to list all emails having attachment?

Thanks

Frank Ursel

unread,
Feb 10, 2011, 4:11:59 AM2/10/11
to
Jagadeesh schrieb:

> Is there anyway to list all emails having attachment?

Have a look at pattern modifiers (from the manual):

~X [MIN]-[MAX]

lists messages with MIN to MAX attachments. The forms
“<[MAX]”, “>[MIN]”, “[MIN]-” and “-[MAX]” are allowed, too.

Frank

Jorgen Grahn

unread,
Feb 10, 2011, 5:17:00 AM2/10/11
to
On Thu, 2011-02-10, Frank Ursel wrote:
> Jagadeesh schrieb:
>> Is there anyway to list all emails having attachment?
>
> Have a look at pattern modifiers (from the manual):
>
> ~X [MIN]-[MAX]
>
> lists messages with MIN to MAX attachments. The forms
> ???<[MAX]???, ???>[MIN]???, ???[MIN]-??? and ???-[MAX]??? are allowed, too.

By the way, what counts as an "attachment" here? Things which aren't
displayed inline? Or all MIME parts, including things like HTML
versions of the message, images for the HTML part, OpenPGP signatures,
etc?

The man page didn't say (and I haven't experimented).

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .

Christian Ebert

unread,
Feb 10, 2011, 5:30:35 AM2/10/11
to
* Jorgen Grahn on Thursday, February 10, 2011:

> On Thu, 2011-02-10, Frank Ursel wrote:
>> Jagadeesh schrieb:
>>> Is there anyway to list all emails having attachment?
>>
>> Have a look at pattern modifiers (from the manual):
>>
>> ~X [MIN]-[MAX]
>>
>> lists messages with MIN to MAX attachments. The forms
>> ???<[MAX]???, ???>[MIN]???, ???[MIN]-??? and ???-[MAX]??? are allowed, too.
>
> By the way, what counts as an "attachment" here? Things which aren't
> displayed inline? Or all MIME parts, including things like HTML
> versions of the message, images for the HTML part, OpenPGP signatures,
> etc?
>
> The man page didn't say (and I haven't experimented).

Look for "Attachment Searching and Counting" in manual.txt.

c
--
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions

Jorgen Grahn

unread,
Feb 10, 2011, 6:35:28 AM2/10/11
to
On Thu, 2011-02-10, Christian Ebert wrote:
> * Jorgen Grahn on Thursday, February 10, 2011:
>> On Thu, 2011-02-10, Frank Ursel wrote:
>>> Jagadeesh schrieb:
>>>> Is there anyway to list all emails having attachment?
>>>
>>> Have a look at pattern modifiers (from the manual):
>>>
>>> ~X [MIN]-[MAX]
>>>
>>> lists messages with MIN to MAX attachments. The forms
>>> ???<[MAX]???, ???>[MIN]???, ???[MIN]-??? and ???-[MAX]??? are allowed, too.
>>
>> By the way, what counts as an "attachment" here? Things which aren't
>> displayed inline? Or all MIME parts, including things like HTML
>> versions of the message, images for the HTML part, OpenPGP signatures,
>> etc?
>>
>> The man page didn't say (and I haven't experimented).
>
> Look for "Attachment Searching and Counting" in manual.txt.

Ah, good -- it's configurable.

Doesn't this mean the manpage is incomplete? manual.txt seems to
document two commands 'attachments' and 'unattachments', but I can't
find them in muttrc(5). I'm not saying it should be as detailed as the
manual, but it should at least /mention/ all commands.

(I use Mutt 1.5.20, packaged by Debian.)

Christian Ebert

unread,
Feb 10, 2011, 9:19:24 AM2/10/11
to
* Jorgen Grahn on Thursday, February 10, 2011:
> On Thu, 2011-02-10, Christian Ebert wrote:
>> * Jorgen Grahn on Thursday, February 10, 2011:
>>> On Thu, 2011-02-10, Frank Ursel wrote:
>>>> Jagadeesh schrieb:
>>>>> Is there anyway to list all emails having attachment?
>>>>
>>>> Have a look at pattern modifiers (from the manual):
>>>>
>>>> ~X [MIN]-[MAX]
>>>>
>>>> lists messages with MIN to MAX attachments. The forms
>>>> ???<[MAX]???, ???>[MIN]???, ???[MIN]-??? and ???-[MAX]??? are allowed, too.
>>>
>>> By the way, what counts as an "attachment" here? Things which aren't
>>> displayed inline? Or all MIME parts, including things like HTML
>>> versions of the message, images for the HTML part, OpenPGP signatures,
>>> etc?
>>>
>>> The man page didn't say (and I haven't experimented).
>>
>> Look for "Attachment Searching and Counting" in manual.txt.
>
> Ah, good -- it's configurable.
>
> Doesn't this mean the manpage is incomplete? manual.txt seems to
> document two commands 'attachments' and 'unattachments', but I can't
> find them in muttrc(5). I'm not saying it should be as detailed as the
> manual, but it should at least /mention/ all commands.

I guess the answer is: yes, indeed -- patches are welcome ;-)

Jagadeesh

unread,
Feb 11, 2011, 6:03:22 AM2/11/11
to
Thank you all for useful replies.

Thanks

Jorgen Grahn

unread,
Feb 16, 2011, 5:03:46 PM2/16/11
to
On Thu, 2011-02-10, Christian Ebert wrote:
> * Jorgen Grahn on Thursday, February 10, 2011:
>> On Thu, 2011-02-10, Christian Ebert wrote:
>>> * Jorgen Grahn on Thursday, February 10, 2011:
>>>> On Thu, 2011-02-10, Frank Ursel wrote:
>>>>> Jagadeesh schrieb:
>>>>>> Is there anyway to list all emails having attachment?
>>>>>
>>>>> Have a look at pattern modifiers (from the manual):
>>>>>
>>>>> ~X [MIN]-[MAX]
>>>>>
>>>>> lists messages with MIN to MAX attachments. The forms
>>>>> ???<[MAX]???, ???>[MIN]???, ???[MIN]-??? and ???-[MAX]??? are allowed, too.
>>>>
>>>> By the way, what counts as an "attachment" here? Things which aren't
>>>> displayed inline? Or all MIME parts, including things like HTML
>>>> versions of the message, images for the HTML part, OpenPGP signatures,
>>>> etc?
>>>>
>>>> The man page didn't say (and I haven't experimented).
>>>
>>> Look for "Attachment Searching and Counting" in manual.txt.
>>
>> Ah, good -- it's configurable.
>>
>> Doesn't this mean the manpage is incomplete? manual.txt seems to
>> document two commands 'attachments' and 'unattachments', but I can't
>> find them in muttrc(5). I'm not saying it should be as detailed as the
>> manual, but it should at least /mention/ all commands.
>
> I guess the answer is: yes, indeed -- patches are welcome ;-)

I gave up. That part of muttrc(5) is autogenerated from a header file
using a dedicated parser written in C so it wasn't (as I believed) a
matter of extracting the command (or is it configuration variable?)
names from the man page and the manual and diffing them to see where
they didn't match.

I could certainly do that analysis, but it's more than a workday
night's work.

0 new messages