unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* getting all attachments, getting images
@ 2019-05-23 14:06 meOme
  2019-05-23 14:26 ` meOme
  2019-05-23 14:59 ` Danh Doan
  0 siblings, 2 replies; 5+ messages in thread
From: meOme @ 2019-05-23 14:06 UTC (permalink / raw)
  To: notmuch

Hi!
How can I get a list of all mails with an attachment in notmuch?
I tried:
notmuch search attachment:'*'
but that doesn't seem to work, as the result is lesser than e.g.:
notmuch search attachment:jpg
in my case.
One more question:
How can i find all messages with an image as attachment?
Something like:
notmuch search attachment:image
which should result in jpg+png+... images, so the Content-Type: image/*
Is that possible in notmuch?
Thanks a lot again!



--
Sent from: http://notmuch.198994.n3.nabble.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: getting all attachments, getting images
  2019-05-23 14:06 getting all attachments, getting images meOme
@ 2019-05-23 14:26 ` meOme
  2019-05-23 14:59 ` Danh Doan
  1 sibling, 0 replies; 5+ messages in thread
From: meOme @ 2019-05-23 14:26 UTC (permalink / raw)
  To: notmuch

Oh I found the answer for the getting images question:
notmuch search mimetype:image
seems to work. :)
While the "all attachments"-question isn't solved yet...



--
Sent from: http://notmuch.198994.n3.nabble.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: getting all attachments, getting images
  2019-05-23 14:06 getting all attachments, getting images meOme
  2019-05-23 14:26 ` meOme
@ 2019-05-23 14:59 ` Danh Doan
  2019-05-23 18:50   ` Rollins, Jameson
  1 sibling, 1 reply; 5+ messages in thread
From: Danh Doan @ 2019-05-23 14:59 UTC (permalink / raw)
  To: meOme; +Cc: notmuch

On Thu, May 23, 2019 at 07:06:39AM -0700, meOme wrote:
> Hi!
> How can I get a list of all mails with an attachment in notmuch?

Notmuch has already tagged all mails with attachment with tag:
attachment, hasn't it?

Does this command work for you?

notmuch search tag:attachment

-- 
Danh

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: getting all attachments, getting images
  2019-05-23 14:59 ` Danh Doan
@ 2019-05-23 18:50   ` Rollins, Jameson
  2019-05-24 21:02     ` meOme
  0 siblings, 1 reply; 5+ messages in thread
From: Rollins, Jameson @ 2019-05-23 18:50 UTC (permalink / raw)
  To: Danh Doan, meOme; +Cc: notmuch@notmuchmail.org

On Thu, May 23 2019, Danh Doan <congdanhqx@gmail.com> wrote:
> On Thu, May 23, 2019 at 07:06:39AM -0700, meOme wrote:
>> Hi!
>> How can I get a list of all mails with an attachment in notmuch?
>
> Notmuch has already tagged all mails with attachment with tag:
> attachment, hasn't it?
>
> Does this command work for you?
>
> notmuch search tag:attachment

I think that tag is only applied for part show content-disposition is
"attachment".  Attachments with disposition "inline" I think will not
get the tag, and there's no consistent policy as to how the disposition
should be set.  Images can be inline, for instance.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: getting all attachments, getting images
  2019-05-23 18:50   ` Rollins, Jameson
@ 2019-05-24 21:02     ` meOme
  0 siblings, 0 replies; 5+ messages in thread
From: meOme @ 2019-05-24 21:02 UTC (permalink / raw)
  To: notmuch

Exactly.
 "content-disposition" : "inline" attachments are not tagged "attachment"...
So you cannot rely on the "attachment" tag. Especially if you prefer
text/plain as default...



--
Sent from: http://notmuch.198994.n3.nabble.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-05-24 21:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-23 14:06 getting all attachments, getting images meOme
2019-05-23 14:26 ` meOme
2019-05-23 14:59 ` Danh Doan
2019-05-23 18:50   ` Rollins, Jameson
2019-05-24 21:02     ` meOme

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).