unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Drafts being tagged as inbox
@ 2011-06-27 21:50 Robin Green
  2011-06-28  6:34 ` Pieter Praet
  2011-06-28 20:40 ` Carl Worth
  0 siblings, 2 replies; 6+ messages in thread
From: Robin Green @ 2011-06-27 21:50 UTC (permalink / raw)
  To: notmuch

My drafts (created using emacs message mode) are being tagged as
inbox. However, they are not tagged as drafts. This is because emacs
message mode does not store drafts in Maildir format, so there are no
Maildir flags (e.g. D for draft) to sync tags with.

Now, I could simply store drafts somewhere else, but then I wouldn't be
able to search them using notmuch. Is there another way to have drafts
correctly tagged?

Thanks,
Robin Green

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

* Re: Drafts being tagged as inbox
  2011-06-27 21:50 Drafts being tagged as inbox Robin Green
@ 2011-06-28  6:34 ` Pieter Praet
  2011-06-28  7:00   ` Robin Green
  2011-06-28 20:40 ` Carl Worth
  1 sibling, 1 reply; 6+ messages in thread
From: Pieter Praet @ 2011-06-28  6:34 UTC (permalink / raw)
  To: Robin Green, notmuch

On Mon, 27 Jun 2011 22:50:25 +0100, Robin Green <greenrd@greenrd.org> wrote:
> My drafts (created using emacs message mode) are being tagged as
> inbox. However, they are not tagged as drafts. This is because emacs
> message mode does not store drafts in Maildir format, so there are no
> Maildir flags (e.g. D for draft) to sync tags with.
> 
> Now, I could simply store drafts somewhere else, but then I wouldn't be
> able to search them using notmuch. Is there another way to have drafts
> correctly tagged?

notmuch tag -inbox +draft -- folder:${where_your_drafts_reside}

... in your tagging script.

> Thanks,
> Robin Green
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

Peace

-- 
Pieter

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

* Re: Drafts being tagged as inbox
  2011-06-28  6:34 ` Pieter Praet
@ 2011-06-28  7:00   ` Robin Green
  2011-06-28  8:25     ` Pieter Praet
  2011-06-28 20:47     ` Carl Worth
  0 siblings, 2 replies; 6+ messages in thread
From: Robin Green @ 2011-06-28  7:00 UTC (permalink / raw)
  To: notmuch

On Tue, 28 Jun 2011 08:34:44 +0200, Pieter Praet <pieter@praet.org> wrote:
> notmuch tag -inbox +draft -- folder:${where_your_drafts_reside}

My notmuch help does not mention "folder:", and indeed folder:drafts as a
search term is just treated as the words folder and drafts. Perhaps this
is implemented in git head. However, when I try to compile git head on
Dragonfly BSD, I get this error:

CXX -O2 notmuch-shared
notmuch-count.o: In function `notmuch_count_command':
notmuch-count.c:(.text+0x63): undefined reference to `notmuch_database_open'
notmuch-count.c:(.text+0x9d): undefined reference to `notmuch_query_create'
notmuch-count.c:(.text+0xb1): undefined reference to `notmuch_query_count_messages'
notmuch-count.c:(.text+0xc9): undefined reference to `notmuch_query_destroy'
notmuch-count.c:(.text+0xd1): undefined reference to `notmuch_database_close'
notmuch-dump.o: In function `notmuch_dump_command':
notmuch-dump.c:(.text+0x33): undefined reference to `notmuch_database_open'
notmuch-dump.c:(.text+0x4e): undefined reference to `notmuch_query_create'
notmuch-dump.c:(.text+0x67): undefined reference to `notmuch_query_set_sort'
notmuch-dump.c:(.text+0x81): undefined reference to `notmuch_query_search_messages'
notmuch-dump.c:(.text+0x8c): undefined reference to `notmuch_messages_valid'
notmuch-dump.c:(.text+0xa4): undefined reference to `notmuch_messages_get'
notmuch-dump.c:(.text+0xaf): undefined reference to `notmuch_message_get_message_id'
notmuch-dump.c:(.text+0xcb): undefined reference to `notmuch_message_get_tags'
notmuch-dump.c:(.text+0xe5): undefined reference to `notmuch_tags_get'
notmuch-dump.c:(.text+0xf9): undefined reference to `notmuch_tags_move_to_next'
notmuch-dump.c:(.text+0x10a): undefined reference to `notmuch_tags_valid'
notmuch-dump.c:(.text+0x14d): undefined reference to `notmuch_message_destroy'
notmuch-dump.c:(.text+0x155): undefined reference to `notmuch_messages_move_to_next'
notmuch-dump.c:(.text+0x15d): undefined reference to `notmuch_messages_valid'
notmuch-dump.c:(.text+0x17a): undefined reference to `notmuch_query_destroy'
notmuch-dump.c:(.text+0x182): undefined reference to `notmuch_database_close'
notmuch-new.o: In function `_remove_directory':
notmuch-new.c:(.text+0x585): undefined reference to `notmuch_database_get_directory'
notmuch-new.c:(.text+0x592): undefined reference to `notmuch_directory_get_child_files'
notmuch-new.c:(.text+0x5b8): undefined reference to `notmuch_filenames_move_to_next'
notmuch-new.c:(.text+0x5c0): undefined reference to `notmuch_filenames_valid'
notmuch-new.c:(.text+0x5cc): undefined reference to `notmuch_filenames_get'
notmuch-new.c:(.text+0x5f1): undefined reference to `notmuch_database_remove_message'
notmuch-new.c:(.text+0x609): undefined reference to `notmuch_directory_get_child_directories'
notmuch-new.c:(.text+0x616): undefined reference to `notmuch_filenames_get'
notmuch-new.c:(.text+0x65c): undefined reference to `notmuch_filenames_move_to_next'
notmuch-new.c:(.text+0x664): undefined reference to `notmuch_filenames_valid'
notmuch-new.o: In function `add_files_recursive':
notmuch-new.c:(.text+0x7d6): undefined reference to `notmuch_database_get_directory'
notmuch-new.c:(.text+0x7e3): undefined reference to `notmuch_directory_get_mtime'
notmuch-new.c:(.text+0xa24): undefined reference to `notmuch_filenames_get'
notmuch-new.c:(.text+0xa3f): undefined reference to `notmuch_filenames_get'
notmuch-new.c:(.text+0xa6b): undefined reference to `notmuch_filenames_move_to_next'
notmuch-new.c:(.text+0xa73): undefined reference to `notmuch_filenames_valid'
notmuch-new.c:(.text+0xa7f): undefined reference to `notmuch_filenames_valid'
notmuch-new.c:(.text+0xb08): undefined reference to `notmuch_filenames_destroy'
notmuch-new.c:(.text+0xb16): undefined reference to `notmuch_filenames_destroy'
notmuch-new.c:(.text+0xb2c): undefined reference to `notmuch_directory_destroy'
notmuch-new.c:(.text+0xb64): undefined reference to `notmuch_filenames_move_to_next'
notmuch-new.c:(.text+0xb6c): undefined reference to `notmuch_filenames_valid'
notmuch-new.c:(.text+0xb7c): undefined reference to `notmuch_filenames_get'
notmuch-new.c:(.text+0xb97): undefined reference to `notmuch_filenames_get'
notmuch-new.c:(.text+0xbc9): undefined reference to `notmuch_filenames_get'
notmuch-new.c:(.text+0xbf5): undefined reference to `notmuch_filenames_move_to_next'
notmuch-new.c:(.text+0xbfd): undefined reference to `notmuch_filenames_valid'
notmuch-new.c:(.text+0xc14): undefined reference to `notmuch_filenames_get'
notmuch-new.c:(.text+0xc40): undefined reference to `notmuch_filenames_move_to_next'
notmuch-new.c:(.text+0xc48): undefined reference to `notmuch_filenames_valid'
notmuch-new.c:(.text+0xc69): undefined reference to `notmuch_directory_set_mtime'
notmuch-new.c:(.text+0xcf9): undefined reference to `notmuch_filenames_valid'
notmuch-new.c:(.text+0xd05): undefined reference to `notmuch_filenames_get'
notmuch-new.c:(.text+0xdca): undefined reference to `notmuch_database_add_message'
notmuch-new.c:(.text+0xe28): undefined reference to `notmuch_message_destroy'
notmuch-new.c:(.text+0xe80): undefined reference to `notmuch_status_to_string'
notmuch-new.c:(.text+0xeca): undefined reference to `notmuch_message_freeze'
notmuch-new.c:(.text+0xeef): undefined reference to `notmuch_message_add_tag'
notmuch-new.c:(.text+0xf13): undefined reference to `notmuch_message_thaw'
notmuch-new.c:(.text+0xff2): undefined reference to `notmuch_directory_get_child_files'
notmuch-new.c:(.text+0xfff): undefined reference to `notmuch_directory_get_child_directories'
notmuch-new.c:(.text+0x1041): undefined reference to `notmuch_filenames_move_to_next'
notmuch-new.c:(.text+0x10d3): undefined reference to `notmuch_message_get_message_id'
notmuch-new.c:(.text+0x10f1): undefined reference to `notmuch_message_maildir_flags_to_tags'
notmuch-new.o: In function `notmuch_new_command':
notmuch-new.c:(.text+0x126e): undefined reference to `notmuch_database_open'
notmuch-new.c:(.text+0x1282): undefined reference to `notmuch_database_needs_upgrade'
notmuch-new.c:(.text+0x1420): undefined reference to `notmuch_database_remove_message'
notmuch-new.c:(.text+0x15b4): undefined reference to `notmuch_database_find_message'
notmuch-new.c:(.text+0x15bf): undefined reference to `notmuch_message_maildir_flags_to_tags'
notmuch-new.c:(.text+0x15c7): undefined reference to `notmuch_message_destroy'
notmuch-new.c:(.text+0x179b): undefined reference to `notmuch_database_close'
notmuch-new.c:(.text+0x180e): undefined reference to `notmuch_database_create'
notmuch-new.c:(.text+0x1895): undefined reference to `notmuch_database_upgrade'
notmuch-new.c:(.text+0x189d): undefined reference to `notmuch_database_get_version'
notmuch-new.c:(.text+0x194b): undefined reference to `notmuch_status_to_string'
notmuch-new.c:(.text+0x1964): undefined reference to `notmuch_database_close'
notmuch-new.o: In function `_remove_directory':
notmuch-new.c:(.text+0x680): undefined reference to `notmuch_directory_destroy'
notmuch-reply.o: In function `notmuch_reply_command':
notmuch-reply.c:(.text+0x28d): undefined reference to `notmuch_database_open'
notmuch-reply.c:(.text+0x2a0): undefined reference to `notmuch_query_create'
notmuch-reply.c:(.text+0x32b): undefined reference to `notmuch_query_destroy'
notmuch-reply.c:(.text+0x333): undefined reference to `notmuch_database_close'
notmuch-reply.o: In function `add_recipients_from_message':
notmuch-reply.c:(.text+0x629): undefined reference to `notmuch_message_get_header'
notmuch-reply.c:(.text+0x64d): undefined reference to `notmuch_message_get_header'
notmuch-reply.c:(.text+0x69d): undefined reference to `notmuch_message_get_header'
notmuch-reply.c:(.text+0x6bd): undefined reference to `notmuch_message_get_header'
notmuch-reply.c:(.text+0x76f): undefined reference to `notmuch_message_get_header'
notmuch-reply.o:notmuch-reply.c:(.text+0x781): more undefined references to `notmuch_message_get_header' follow
notmuch-reply.o: In function `notmuch_reply_format_headers_only':
notmuch-reply.c:(.text+0x7f8): undefined reference to `notmuch_query_search_messages'
notmuch-reply.c:(.text+0x89b): undefined reference to `notmuch_message_destroy'
notmuch-reply.c:(.text+0x8a3): undefined reference to `notmuch_messages_move_to_next'
notmuch-reply.c:(.text+0x8ab): undefined reference to `notmuch_messages_valid'
notmuch-reply.c:(.text+0x8bb): undefined reference to `notmuch_messages_get'
notmuch-reply.c:(.text+0x8d5): undefined reference to `notmuch_message_get_message_id'
notmuch-reply.c:(.text+0x91d): undefined reference to `notmuch_message_get_header'
notmuch-reply.o: In function `notmuch_reply_format_default':
notmuch-reply.c:(.text+0xc2e): undefined reference to `notmuch_query_search_messages'
notmuch-reply.c:(.text+0xcd8): undefined reference to `notmuch_message_get_message_id'
notmuch-reply.c:(.text+0xd24): undefined reference to `notmuch_message_get_header'
notmuch-reply.c:(.text+0xe41): undefined reference to `notmuch_message_get_header'
notmuch-reply.c:(.text+0xe53): undefined reference to `notmuch_message_get_header'
notmuch-reply.c:(.text+0xe6f): undefined reference to `notmuch_message_get_filename'
notmuch-reply.c:(.text+0xe89): undefined reference to `notmuch_message_destroy'
notmuch-reply.c:(.text+0xe91): undefined reference to `notmuch_messages_move_to_next'
notmuch-reply.c:(.text+0xe99): undefined reference to `notmuch_messages_valid'
notmuch-reply.c:(.text+0xea9): undefined reference to `notmuch_messages_get'
notmuch-reply.c:(.text+0xecd): undefined reference to `notmuch_message_get_header'
notmuch-reply.c:(.text+0xfd5): undefined reference to `notmuch_message_get_header'
notmuch-reply.c:(.text+0x10b9): undefined reference to `notmuch_message_get_header'
notmuch-restore.o: In function `notmuch_restore_command':
notmuch-restore.c:(.text+0x48): undefined reference to `notmuch_database_open'
notmuch-restore.c:(.text+0x185): undefined reference to `notmuch_database_find_message'
notmuch-restore.c:(.text+0x199): undefined reference to `notmuch_message_get_tags'
notmuch-restore.c:(.text+0x1cb): undefined reference to `notmuch_tags_move_to_next'
notmuch-restore.c:(.text+0x1d3): undefined reference to `notmuch_tags_valid'
notmuch-restore.c:(.text+0x1df): undefined reference to `notmuch_tags_get'
notmuch-restore.c:(.text+0x26b): undefined reference to `notmuch_message_freeze'
notmuch-restore.c:(.text+0x273): undefined reference to `notmuch_message_remove_all_tags'
notmuch-restore.c:(.text+0x2b1): undefined reference to `notmuch_message_add_tag'
notmuch-restore.c:(.text+0x2e5): undefined reference to `notmuch_status_to_string'
notmuch-restore.c:(.text+0x308): undefined reference to `notmuch_message_thaw'
notmuch-restore.c:(.text+0x318): undefined reference to `notmuch_message_tags_to_maildir_flags'
notmuch-restore.c:(.text+0x324): undefined reference to `notmuch_message_destroy'
notmuch-restore.c:(.text+0x3b4): undefined reference to `notmuch_database_close'
notmuch-search.o: In function `notmuch_search_command':
notmuch-search.c:(.text+0x4b5): undefined reference to `notmuch_database_open'
notmuch-search.c:(.text+0x4f4): undefined reference to `notmuch_query_create'
notmuch-search.c:(.text+0x50e): undefined reference to `notmuch_query_set_sort'
notmuch-search.c:(.text+0x522): undefined reference to `notmuch_query_search_threads'
notmuch-search.c:(.text+0x574): undefined reference to `notmuch_threads_valid'
notmuch-search.c:(.text+0x591): undefined reference to `notmuch_threads_get'
notmuch-search.c:(.text+0x5c0): undefined reference to `notmuch_thread_get_oldest_date'
notmuch-search.c:(.text+0x5d4): undefined reference to `notmuch_thread_get_subject'
notmuch-search.c:(.text+0x5e1): undefined reference to `notmuch_thread_get_authors'
notmuch-search.c:(.text+0x5ee): undefined reference to `notmuch_thread_get_total_messages'
notmuch-search.c:(.text+0x5fa): undefined reference to `notmuch_thread_get_matched_messages'
notmuch-search.c:(.text+0x605): undefined reference to `notmuch_thread_get_thread_id'
notmuch-search.c:(.text+0x643): undefined reference to `notmuch_thread_get_tags'
notmuch-search.c:(.text+0x657): undefined reference to `notmuch_tags_get'
notmuch-search.c:(.text+0x66d): undefined reference to `notmuch_tags_move_to_next'
notmuch-search.c:(.text+0x675): undefined reference to `notmuch_tags_valid'
notmuch-search.c:(.text+0x6d2): undefined reference to `notmuch_query_get_query_string'
notmuch-search.c:(.text+0x6f3): undefined reference to `notmuch_query_search_messages'
notmuch-search.c:(.text+0x707): undefined reference to `notmuch_messages_collect_tags'
notmuch-search.c:(.text+0x746): undefined reference to `notmuch_tags_move_to_next'
notmuch-search.c:(.text+0x74e): undefined reference to `notmuch_tags_valid'
notmuch-search.c:(.text+0x75a): undefined reference to `notmuch_tags_get'
notmuch-search.c:(.text+0x7a1): undefined reference to `notmuch_thread_destroy'
notmuch-search.c:(.text+0x7a9): undefined reference to `notmuch_threads_move_to_next'
notmuch-search.c:(.text+0x7b6): undefined reference to `notmuch_tags_destroy'
notmuch-search.c:(.text+0x7c6): undefined reference to `notmuch_messages_destroy'
notmuch-search.c:(.text+0x7ec): undefined reference to `notmuch_query_destroy'
notmuch-search.c:(.text+0x7f4): undefined reference to `notmuch_database_close'
notmuch-search.c:(.text+0x814): undefined reference to `notmuch_thread_get_newest_date'
notmuch-search.c:(.text+0x83a): undefined reference to `notmuch_thread_get_thread_id'
notmuch-search.c:(.text+0x88d): undefined reference to `notmuch_query_search_messages'
notmuch-search.c:(.text+0x8de): undefined reference to `notmuch_message_get_message_id'
notmuch-search.c:(.text+0x8f9): undefined reference to `notmuch_message_destroy'
notmuch-search.c:(.text+0x901): undefined reference to `notmuch_messages_move_to_next'
notmuch-search.c:(.text+0x909): undefined reference to `notmuch_messages_valid'
notmuch-search.c:(.text+0x915): undefined reference to `notmuch_messages_get'
notmuch-search.c:(.text+0x93b): undefined reference to `notmuch_message_get_filename'
notmuch-search.c:(.text+0x962): undefined reference to `notmuch_messages_destroy'
notmuch-search.c:(.text+0x9d2): undefined reference to `notmuch_database_get_all_tags'
notmuch-show.o: In function `format_message_mbox':
notmuch-show.c:(.text+0x13f): undefined reference to `notmuch_message_get_filename'
notmuch-show.c:(.text+0x173): undefined reference to `notmuch_message_get_header'
notmuch-show.c:(.text+0x1e6): undefined reference to `notmuch_message_get_date'
notmuch-show.o: In function `format_headers_json':
notmuch-show.c:(.text+0x51d): undefined reference to `notmuch_message_get_header'
notmuch-show.o: In function `format_message_text':
notmuch-show.c:(.text+0xce1): undefined reference to `notmuch_message_get_filename'
notmuch-show.c:(.text+0xcee): undefined reference to `notmuch_message_get_flag'
notmuch-show.c:(.text+0xcf9): undefined reference to `notmuch_message_get_message_id'
notmuch-show.o: In function `format_message_json':
notmuch-show.c:(.text+0xd59): undefined reference to `notmuch_message_get_date'
notmuch-show.c:(.text+0xd79): undefined reference to `notmuch_message_get_filename'
notmuch-show.c:(.text+0xd91): undefined reference to `notmuch_message_get_flag'
notmuch-show.c:(.text+0xda6): undefined reference to `notmuch_message_get_message_id'
notmuch-show.c:(.text+0xdea): undefined reference to `notmuch_message_get_tags'
notmuch-show.c:(.text+0xdf7): undefined reference to `notmuch_tags_get'
notmuch-show.c:(.text+0xe28): undefined reference to `notmuch_tags_move_to_next'
notmuch-show.c:(.text+0xe30): undefined reference to `notmuch_tags_valid'
notmuch-show.o: In function `format_headers_text':
notmuch-show.c:(.text+0xf17): undefined reference to `notmuch_message_get_header'
notmuch-show.c:(.text+0xf24): undefined reference to `notmuch_message_get_date'
notmuch-show.c:(.text+0xf61): undefined reference to `notmuch_message_get_tags'
notmuch-show.c:(.text+0xf76): undefined reference to `notmuch_tags_get'
notmuch-show.c:(.text+0xfa2): undefined reference to `notmuch_tags_move_to_next'
notmuch-show.c:(.text+0xfb2): undefined reference to `notmuch_tags_valid'
notmuch-show.c:(.text+0x1007): undefined reference to `notmuch_message_get_header'
notmuch-show.o: In function `show_message':
notmuch-show.c:(.text+0x1080): undefined reference to `notmuch_message_get_filename'
notmuch-show.o: In function `do_show_single':
notmuch-show.c:(.text+0x119b): undefined reference to `notmuch_query_count_messages'
notmuch-show.c:(.text+0x11f5): undefined reference to `notmuch_query_search_messages'
notmuch-show.c:(.text+0x11fd): undefined reference to `notmuch_messages_get'
notmuch-show.c:(.text+0x1218): undefined reference to `notmuch_message_set_flag'
notmuch-show.c:(.text+0x1249): undefined reference to `notmuch_message_get_filename'
notmuch-show.o: In function `show_messages':
notmuch-show.c:(.text+0x13f0): undefined reference to `notmuch_messages_get'
notmuch-show.c:(.text+0x13fd): undefined reference to `notmuch_message_get_flag'
notmuch-show.c:(.text+0x1443): undefined reference to `notmuch_message_get_replies'
notmuch-show.c:(.text+0x1462): undefined reference to `notmuch_message_destroy'
notmuch-show.c:(.text+0x147a): undefined reference to `notmuch_messages_move_to_next'
notmuch-show.c:(.text+0x1482): undefined reference to `notmuch_messages_valid'
notmuch-show.o: In function `notmuch_show_command':
notmuch-show.c:(.text+0x17c6): undefined reference to `notmuch_database_open'
notmuch-show.c:(.text+0x17da): undefined reference to `notmuch_query_create'
notmuch-show.c:(.text+0x183a): undefined reference to `notmuch_query_search_threads'
notmuch-show.c:(.text+0x1864): undefined reference to `notmuch_thread_destroy'
notmuch-show.c:(.text+0x186c): undefined reference to `notmuch_threads_move_to_next'
notmuch-show.c:(.text+0x187c): undefined reference to `notmuch_threads_valid'
notmuch-show.c:(.text+0x188c): undefined reference to `notmuch_threads_get'
notmuch-show.c:(.text+0x1897): undefined reference to `notmuch_thread_get_toplevel_messages'
notmuch-show.c:(.text+0x1af0): undefined reference to `notmuch_thread_get_thread_id'
notmuch-tag.o: In function `notmuch_tag_command':
notmuch-tag.c:(.text+0x177): undefined reference to `notmuch_database_open'
notmuch-tag.c:(.text+0x1a2): undefined reference to `notmuch_query_create'
notmuch-tag.c:(.text+0x1bf): undefined reference to `notmuch_query_set_sort'
notmuch-tag.c:(.text+0x1c9): undefined reference to `notmuch_query_search_messages'
notmuch-tag.c:(.text+0x1d8): undefined reference to `notmuch_messages_valid'
notmuch-tag.c:(.text+0x1f8): undefined reference to `notmuch_messages_get'
notmuch-tag.c:(.text+0x205): undefined reference to `notmuch_message_freeze'
notmuch-tag.c:(.text+0x22d): undefined reference to `notmuch_message_remove_tag'
notmuch-tag.c:(.text+0x26a): undefined reference to `notmuch_message_add_tag'
notmuch-tag.c:(.text+0x281): undefined reference to `notmuch_message_thaw'
notmuch-tag.c:(.text+0x297): undefined reference to `notmuch_message_destroy'
notmuch-tag.c:(.text+0x2a1): undefined reference to `notmuch_messages_move_to_next'
notmuch-tag.c:(.text+0x346): undefined reference to `notmuch_message_tags_to_maildir_flags'
notmuch-tag.c:(.text+0x355): undefined reference to `notmuch_query_destroy'
notmuch-tag.c:(.text+0x35f): undefined reference to `notmuch_database_close'
gmake: *** [notmuch-shared] Error 1

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

* Re: Drafts being tagged as inbox
  2011-06-28  7:00   ` Robin Green
@ 2011-06-28  8:25     ` Pieter Praet
  2011-06-28 20:47     ` Carl Worth
  1 sibling, 0 replies; 6+ messages in thread
From: Pieter Praet @ 2011-06-28  8:25 UTC (permalink / raw)
  To: Robin Green, notmuch

On Tue, 28 Jun 2011 08:00:53 +0100, Robin Green <greenrd@greenrd.org> wrote:
> On Tue, 28 Jun 2011 08:34:44 +0200, Pieter Praet <pieter@praet.org> wrote:
> > notmuch tag -inbox +draft -- folder:${where_your_drafts_reside}
> 
> My notmuch help does not mention "folder:", and indeed folder:drafts as a
> search term is just treated as the words folder and drafts. Perhaps this
> is implemented in git head. However, when I try to compile git head on
> Dragonfly BSD, I get this error:
> 
> [SNIP]

Hmmm, rather anticlimactic.

Can't help you with the errors nor give you an exact bearing, but
folder-based search was implemented around January this year, and I can
definitely vouch for commit 0c0b4172 (got a few old branches based
there).

Peace

-- 
Pieter

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

* Re: Drafts being tagged as inbox
  2011-06-27 21:50 Drafts being tagged as inbox Robin Green
  2011-06-28  6:34 ` Pieter Praet
@ 2011-06-28 20:40 ` Carl Worth
  1 sibling, 0 replies; 6+ messages in thread
From: Carl Worth @ 2011-06-28 20:40 UTC (permalink / raw)
  To: Robin Green, notmuch

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

On Mon, 27 Jun 2011 22:50:25 +0100, Robin Green <greenrd@greenrd.org> wrote:
> My drafts (created using emacs message mode) are being tagged as
> inbox. However, they are not tagged as drafts. This is because emacs
> message mode does not store drafts in Maildir format, so there are no
> Maildir flags (e.g. D for draft) to sync tags with.
> 
> Now, I could simply store drafts somewhere else, but then I wouldn't be
> able to search them using notmuch. Is there another way to have drafts
> correctly tagged?

Notmuch isn't much involved in the current saving of drafts, so if we
wanted to do something like save drafts to a maildir instead, we could
override the buffer-saving functions in our message-composition buffers.

Meanwhile, even without a tag, I do like that my drafts are currently
getting indexed by notmuch and show up in search results, (they even
show up with a timestamp of 0 so accidentally get sorted right to the
top of many search results). That's convenient.

Even handier would be a separate notmuch-hello search result showing me
I have some drafts to complete, (which would then, benefit from a tag).

The biggest annoyance I currently have with drafts is that they aren't
automatically removed from the filesystem when I finally send the
message. If someone were to contribute a fix for that, it would really
make my day.

-Carl

-- 
carl.d.worth@intel.com

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

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

* Re: Drafts being tagged as inbox
  2011-06-28  7:00   ` Robin Green
  2011-06-28  8:25     ` Pieter Praet
@ 2011-06-28 20:47     ` Carl Worth
  1 sibling, 0 replies; 6+ messages in thread
From: Carl Worth @ 2011-06-28 20:47 UTC (permalink / raw)
  To: Robin Green, notmuch

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

On Tue, 28 Jun 2011 08:00:53 +0100, Robin Green <greenrd@greenrd.org> wrote:
> On Tue, 28 Jun 2011 08:34:44 +0200, Pieter Praet <pieter@praet.org> wrote:
> > notmuch tag -inbox +draft -- folder:${where_your_drafts_reside}
> 
> My notmuch help does not mention "folder:", and indeed folder:drafts as a
> search term is just treated as the words folder and drafts. Perhaps this
> is implemented in git head.

Yes, sorry about that. We're woefully late on a release that will
include this feature. Our current release manager expects that release
within a couple of days at least, so that's good!

> However, when I try to compile git head on Dragonfly BSD, I get this error:
>
> CXX -O2 notmuch-shared
> notmuch-count.o: In function `notmuch_count_command':
> notmuch-count.c:(.text+0x63): undefined reference to `notmuch_database_open'
> notmuch-count.c:(.text+0x9d): undefined reference to `notmuch_query_create'

Ouch. It looks like your linker isn't finding anything in the notmuch
library at all. I wonder what went wrong there. Some things to try would
be:

	make V=1

to see the complete linker command line to see if something is obviously
wrong there.

And otherwise to try a "git bisect" to see when the compilation stopped
working.

To start a bisect, you'll need to know a point where notmuch actually
compiles successfully on your system—0.5 perhaps? Double-check that
with:

	git checkout 0.5	# Get the code from the 0.5 release
        make			# See if it compiles
        git checkout master	# Come back to master

If that went fine then you can bisect with:

	git bisect start
        git bisect good 0.5	# Indicate that 0.5 is good
        git bisect bad		# Indicate that the current state is bad

After that you'll iterate by running:

	make

Followed by one of the following:

	git bisect good		# If the compile succeeded
	git bisect bad		# If the compile failed

In the end, git should tell you a "first bad commit". Send that output
to the list and we can start pinning down what went wrong. Then you can
finalize your git-bisect run with:

	git bisect reset

Good luck!

-Carl

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

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

end of thread, other threads:[~2011-06-28 20:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-27 21:50 Drafts being tagged as inbox Robin Green
2011-06-28  6:34 ` Pieter Praet
2011-06-28  7:00   ` Robin Green
2011-06-28  8:25     ` Pieter Praet
2011-06-28 20:47     ` Carl Worth
2011-06-28 20:40 ` Carl Worth

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