unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Support for multiple filenames (in notmuch library)
@ 2010-11-11 13:11 Carl Worth
  2010-11-12 20:12 ` Jameson Rollins
  0 siblings, 1 reply; 2+ messages in thread
From: Carl Worth @ 2010-11-11 13:11 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 937 bytes --]

As part of my recent work to fix up the maildir-flags synchronization
patches, I found myself needing to access the complete list of filenames
for a given message. So I added the following, new public function to
libnotmuch:

	notmuch_filenames_t *
	notmuch_message_get_filenames (notmuch_message_t *message);

This of course, works with the existing notmuch_filenames_valid,
notmuch_filenames_move_to_next, and notmuch_filenames_get functions to
allow iteration over all filenames for a message.

I know some people have been wanting support like this for some time.

Others want similar support in the command-line tools, (to show
duplicate files rather than suppressing them). This would be fairly easy
to add now. Does anyone have recommendations for suitable command-line
arguments?

	notmuch search --with-duplicates

Or something else??

Anyway, have fun with this.

-Carl

-- 
carl.d.worth@intel.com

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Support for multiple filenames (in notmuch library)
  2010-11-11 13:11 Support for multiple filenames (in notmuch library) Carl Worth
@ 2010-11-12 20:12 ` Jameson Rollins
  0 siblings, 0 replies; 2+ messages in thread
From: Jameson Rollins @ 2010-11-12 20:12 UTC (permalink / raw)
  To: Carl Worth, notmuch

[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]

On Thu, 11 Nov 2010 05:11:09 -0800, Carl Worth <cworth@cworth.org> wrote:
> As part of my recent work to fix up the maildir-flags synchronization
> patches, I found myself needing to access the complete list of filenames
> for a given message. So I added the following, new public function to
> libnotmuch:
> 
> 	notmuch_filenames_t *
> 	notmuch_message_get_filenames (notmuch_message_t *message);

Hey, Carl.  This is really great.  Thanks so much for getting this
working.

> Others want similar support in the command-line tools, (to show
> duplicate files rather than suppressing them). This would be fairly easy
> to add now. Does anyone have recommendations for suitable command-line
> arguments?
> 
> 	notmuch search --with-duplicates
> 
> Or something else??

I think this is definitely the way to go.  It at least makes sense from
my perspective, and then we could add a switch to the emacs ui to return
those messages so that those of us who wanted to could see them in our
search results.

Thanks again for all the great work.

jamie.

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

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

end of thread, other threads:[~2010-11-12 20:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-11 13:11 Support for multiple filenames (in notmuch library) Carl Worth
2010-11-12 20:12 ` Jameson Rollins

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).