mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
Typsos
This commit is contained in:
parent
835e3a6977
commit
2ce25b93a7
15 changed files with 26 additions and 29 deletions
4
Makefile
4
Makefile
|
@ -1,4 +1,4 @@
|
||||||
# Default FLAGS, (can be overriden by user such as "make CFLAGS=-O2")
|
# Default FLAGS, (can be overridden by user such as "make CFLAGS=-O2")
|
||||||
WARN_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings -Wswitch-enum
|
WARN_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings -Wswitch-enum
|
||||||
CFLAGS=-O2
|
CFLAGS=-O2
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags)
|
||||||
override LDFLAGS += `pkg-config --libs glib-2.0 gmime-2.4 talloc` \
|
override LDFLAGS += `pkg-config --libs glib-2.0 gmime-2.4 talloc` \
|
||||||
`xapian-config --libs`
|
`xapian-config --libs`
|
||||||
|
|
||||||
# Include our local Makfile.local first so that its first target is default
|
# Include our local Makefile.local first so that its first target is default
|
||||||
include Makefile.local
|
include Makefile.local
|
||||||
include lib/Makefile.local
|
include lib/Makefile.local
|
||||||
|
|
||||||
|
|
7
README
7
README
|
@ -3,7 +3,7 @@ Notmuch - thread-based email index, search and tagging.
|
||||||
Notmuch is a system for indexing, searching, reading, and tagging
|
Notmuch is a system for indexing, searching, reading, and tagging
|
||||||
large collections of email messages. It uses the Xapian library to
|
large collections of email messages. It uses the Xapian library to
|
||||||
provide fast, full-text search of very large collection of email with
|
provide fast, full-text search of very large collection of email with
|
||||||
a very convenient search syntas.
|
a very convenient search syntax.
|
||||||
|
|
||||||
Notmuch is free software, released under the GNU General Public
|
Notmuch is free software, released under the GNU General Public
|
||||||
License version 3 (or later).
|
License version 3 (or later).
|
||||||
|
@ -45,7 +45,7 @@ obtaining a more sophisticated interface:
|
||||||
notmuch.el file in this distribution.
|
notmuch.el file in this distribution.
|
||||||
|
|
||||||
If someone were to write a curses-based interface, or similar,
|
If someone were to write a curses-based interface, or similar,
|
||||||
it might also be reasonable to buil on the "notmuch"
|
it might also be reasonable to build on the "notmuch"
|
||||||
command-line interface.
|
command-line interface.
|
||||||
|
|
||||||
2. Build on top of the notmuch library interface.
|
2. Build on top of the notmuch library interface.
|
||||||
|
@ -65,6 +65,3 @@ obtaining a more sophisticated interface:
|
||||||
As can be seen, alternate interfaces to the Notmuch mail system are
|
As can be seen, alternate interfaces to the Notmuch mail system are
|
||||||
still in development. We would appreciate any contributions to these
|
still in development. We would appreciate any contributions to these
|
||||||
efforts.
|
efforts.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ typedef struct _GMimeFilterReplyClass GMimeFilterReplyClass;
|
||||||
* @saw_nl: previous char was a \n
|
* @saw_nl: previous char was a \n
|
||||||
* @saw_angle: previous char was a >
|
* @saw_angle: previous char was a >
|
||||||
*
|
*
|
||||||
* A filter to insert/remove reply markers (lines begining with >)
|
* A filter to insert/remove reply markers (lines beginning with >)
|
||||||
**/
|
**/
|
||||||
struct _GMimeFilterReply {
|
struct _GMimeFilterReply {
|
||||||
GMimeFilter parent_object;
|
GMimeFilter parent_object;
|
||||||
|
|
|
@ -185,7 +185,7 @@ notmuch_status_to_string (notmuch_status_t status)
|
||||||
case NOTMUCH_STATUS_TAG_TOO_LONG:
|
case NOTMUCH_STATUS_TAG_TOO_LONG:
|
||||||
return "Tag value is too long (exceeds NOTMUCH_TAG_MAX)";
|
return "Tag value is too long (exceeds NOTMUCH_TAG_MAX)";
|
||||||
case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW:
|
case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW:
|
||||||
return "Unblanced number of calls to notmuch_message_freeze/thaw";
|
return "Unbalanced number of calls to notmuch_message_freeze/thaw";
|
||||||
default:
|
default:
|
||||||
case NOTMUCH_STATUS_LAST_STATUS:
|
case NOTMUCH_STATUS_LAST_STATUS:
|
||||||
return "Unknown error status value";
|
return "Unknown error status value";
|
||||||
|
|
|
@ -198,7 +198,7 @@ _index_mime_part (notmuch_message_t *message,
|
||||||
if (i == 1)
|
if (i == 1)
|
||||||
continue;
|
continue;
|
||||||
if (i > 1)
|
if (i > 1)
|
||||||
fprintf (stderr, "Warning: Unexpected extra parts of mutlipart/signed. Indexing anyway.\n");
|
fprintf (stderr, "Warning: Unexpected extra parts of multipart/signed. Indexing anyway.\n");
|
||||||
}
|
}
|
||||||
_index_mime_part (message,
|
_index_mime_part (message,
|
||||||
g_mime_multipart_get_part (multipart, i));
|
g_mime_multipart_get_part (multipart, i));
|
||||||
|
|
|
@ -146,7 +146,7 @@ _notmuch_message_create (const void *talloc_owner,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a new notmuch_message_t object for a specific message ID,
|
/* Create a new notmuch_message_t object for a specific message ID,
|
||||||
* (which may or may not already exist in the databas).
|
* (which may or may not already exist in the database).
|
||||||
*
|
*
|
||||||
* The 'notmuch' database will be the talloc owner of the returned
|
* The 'notmuch' database will be the talloc owner of the returned
|
||||||
* message.
|
* message.
|
||||||
|
|
|
@ -234,7 +234,7 @@ notmuch_message_file_open (const char *filename);
|
||||||
notmuch_message_file_t *
|
notmuch_message_file_t *
|
||||||
_notmuch_message_file_open_ctx (void *ctx, const char *filename);
|
_notmuch_message_file_open_ctx (void *ctx, const char *filename);
|
||||||
|
|
||||||
/* Close a notmuch message preivously opened with notmuch_message_open. */
|
/* Close a notmuch message previously opened with notmuch_message_open. */
|
||||||
void
|
void
|
||||||
notmuch_message_file_close (notmuch_message_file_t *message);
|
notmuch_message_file_close (notmuch_message_file_t *message);
|
||||||
|
|
||||||
|
|
|
@ -222,7 +222,7 @@ notmuch_database_get_timestamp (notmuch_database_t *database,
|
||||||
|
|
||||||
/* Add a new message to the given notmuch database.
|
/* Add a new message to the given notmuch database.
|
||||||
*
|
*
|
||||||
* Here,'filename' should be a path relative to the the path of
|
* Here,'filename' should be a path relative to the path of
|
||||||
* 'database' (see notmuch_database_get_path), or else should be an
|
* 'database' (see notmuch_database_get_path), or else should be an
|
||||||
* absolute filename with initial components that match the path of
|
* absolute filename with initial components that match the path of
|
||||||
* 'database'.
|
* 'database'.
|
||||||
|
@ -258,7 +258,7 @@ notmuch_database_add_message (notmuch_database_t *database,
|
||||||
const char *filename,
|
const char *filename,
|
||||||
notmuch_message_t **message);
|
notmuch_message_t **message);
|
||||||
|
|
||||||
/* Find a message with the given messsage_id.
|
/* Find a message with the given message_id.
|
||||||
*
|
*
|
||||||
* If the database contains a message with the given message_id, then
|
* If the database contains a message with the given message_id, then
|
||||||
* a new notmuch_message_t object is returned. The caller should call
|
* a new notmuch_message_t object is returned. The caller should call
|
||||||
|
@ -620,7 +620,7 @@ notmuch_messages_advance (notmuch_messages_t *messages);
|
||||||
/* Destroy a notmuch_messages_t object.
|
/* Destroy a notmuch_messages_t object.
|
||||||
*
|
*
|
||||||
* It's not strictly necessary to call this function. All memory from
|
* It's not strictly necessary to call this function. All memory from
|
||||||
* the notmuch_messages_t object will be reclaimed when the containg
|
* the notmuch_messages_t object will be reclaimed when the containing
|
||||||
* query object is destroyed.
|
* query object is destroyed.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
|
@ -865,7 +865,7 @@ notmuch_tags_has_more (notmuch_tags_t *tags);
|
||||||
/* Get the current tag from 'tags' as a string.
|
/* Get the current tag from 'tags' as a string.
|
||||||
*
|
*
|
||||||
* Note: The returned string belongs to 'tags' and has a lifetime
|
* Note: The returned string belongs to 'tags' and has a lifetime
|
||||||
* identical to it (and the query to which it utlimately belongs).
|
* identical to it (and the query to which it ultimately belongs).
|
||||||
*
|
*
|
||||||
* See the documentation of notmuch_message_get_tags for example code
|
* See the documentation of notmuch_message_get_tags for example code
|
||||||
* showing how to iterate over a notmuch_tags_t object.
|
* showing how to iterate over a notmuch_tags_t object.
|
||||||
|
@ -884,7 +884,7 @@ notmuch_tags_advance (notmuch_tags_t *tags);
|
||||||
/* Destroy a notmuch_tags_t object.
|
/* Destroy a notmuch_tags_t object.
|
||||||
*
|
*
|
||||||
* It's not strictly necessary to call this function. All memory from
|
* It's not strictly necessary to call this function. All memory from
|
||||||
* the notmuch_tags_t object will be reclaimed when the containg
|
* the notmuch_tags_t object will be reclaimed when the containing
|
||||||
* message or query objects are destroyed.
|
* message or query objects are destroyed.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
|
|
|
@ -43,7 +43,7 @@ _hex_of_sha1_digest (const unsigned char digest[SHA1_DIGEST_SIZE])
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a hexadcimal string version of the SHA-1 digest of 'str'
|
/* Create a hexadecimal string version of the SHA-1 digest of 'str'
|
||||||
* (including its null terminating character).
|
* (including its null terminating character).
|
||||||
*
|
*
|
||||||
* This function returns a newly allocated string which the caller
|
* This function returns a newly allocated string which the caller
|
||||||
|
|
|
@ -190,7 +190,7 @@ _resolve_thread_relationships (unused (notmuch_thread_t *thread))
|
||||||
* subject line, the total count of messages, and all authors). The
|
* subject line, the total count of messages, and all authors). The
|
||||||
* second search is for all messages that are in the thread and that
|
* second search is for all messages that are in the thread and that
|
||||||
* also match the given query_string. This is to allow for a separate
|
* also match the given query_string. This is to allow for a separate
|
||||||
* count of matched messages, and to allow a viewer to diplay these
|
* count of matched messages, and to allow a viewer to display these
|
||||||
* messages differently.
|
* messages differently.
|
||||||
*
|
*
|
||||||
* Here, 'ctx' is talloc context for the resulting thread object.
|
* Here, 'ctx' is talloc context for the resulting thread object.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Bash completion for notmutch
|
# Bash completion for notmuch
|
||||||
#
|
#
|
||||||
# Copyright © 2009 Carl Worth
|
# Copyright © 2009 Carl Worth
|
||||||
#
|
#
|
||||||
|
|
|
@ -303,7 +303,7 @@ add_files (notmuch_database_t *notmuch,
|
||||||
|
|
||||||
/* XXX: This should be merged with the add_files function since it
|
/* XXX: This should be merged with the add_files function since it
|
||||||
* shares a lot of logic with it. */
|
* shares a lot of logic with it. */
|
||||||
/* Recursively count all regular files in path and all sub-direcotries
|
/* Recursively count all regular files in path and all sub-directories
|
||||||
* of path. The result is added to *count (which should be
|
* of path. The result is added to *count (which should be
|
||||||
* initialized to zero by the top-level caller before calling
|
* initialized to zero by the top-level caller before calling
|
||||||
* count_files). */
|
* count_files). */
|
||||||
|
@ -469,7 +469,7 @@ notmuch_new_command (void *ctx,
|
||||||
|
|
||||||
if (elapsed > 1 && ! add_files_state.saw_read_only_directory) {
|
if (elapsed > 1 && ! add_files_state.saw_read_only_directory) {
|
||||||
printf ("\nTip: If you have any sub-directories that are archives (that is,\n"
|
printf ("\nTip: If you have any sub-directories that are archives (that is,\n"
|
||||||
"they will never receive new mail), marking these directores as\n"
|
"they will never receive new mail), marking these directories as\n"
|
||||||
"read-only (chmod u-w /path/to/dir) will make \"notmuch new\"\n"
|
"read-only (chmod u-w /path/to/dir) will make \"notmuch new\"\n"
|
||||||
"much more efficient (it won't even look in those directories).\n");
|
"much more efficient (it won't even look in those directories).\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,7 +135,7 @@ notmuch_search_command (void *ctx, int argc, char *argv[])
|
||||||
|
|
||||||
query_str = query_string_from_args (ctx, argc, argv);
|
query_str = query_string_from_args (ctx, argc, argv);
|
||||||
if (query_str == NULL) {
|
if (query_str == NULL) {
|
||||||
fprintf (stderr, "Out of moemory.\n");
|
fprintf (stderr, "Out of memory.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
10
notmuch.el
10
notmuch.el
|
@ -205,7 +205,7 @@ Unlike builtin `next-line' this version accepts no arguments."
|
||||||
(defun notmuch-show-mark-read-then-archive-thread ()
|
(defun notmuch-show-mark-read-then-archive-thread ()
|
||||||
"Remove \"unread\" tag from each message, then archive and show next thread.
|
"Remove \"unread\" tag from each message, then archive and show next thread.
|
||||||
|
|
||||||
Archive each message currrently shown by removing the \"unread\"
|
Archive each message currently shown by removing the \"unread\"
|
||||||
and \"inbox\" tag from each. Then kill this buffer and show the
|
and \"inbox\" tag from each. Then kill this buffer and show the
|
||||||
next thread from the search from which this thread was originally
|
next thread from the search from which this thread was originally
|
||||||
shown.
|
shown.
|
||||||
|
@ -220,7 +220,7 @@ buffer."
|
||||||
(defun notmuch-show-archive-thread ()
|
(defun notmuch-show-archive-thread ()
|
||||||
"Archive each message in thread, and show next thread from search.
|
"Archive each message in thread, and show next thread from search.
|
||||||
|
|
||||||
Archive each message currrently shown by removing the \"inbox\"
|
Archive each message currently shown by removing the \"inbox\"
|
||||||
tag from each. Then kill this buffer and show the next thread
|
tag from each. Then kill this buffer and show the next thread
|
||||||
from the search from which this thread was originally shown.
|
from the search from which this thread was originally shown.
|
||||||
|
|
||||||
|
@ -340,7 +340,7 @@ there are no more unread messages past the current point."
|
||||||
(notmuch-show-next-message)))
|
(notmuch-show-next-message)))
|
||||||
|
|
||||||
(defun notmuch-show-next-open-message ()
|
(defun notmuch-show-next-open-message ()
|
||||||
"Advance to the the next message which is not hidden.
|
"Advance to the next message which is not hidden.
|
||||||
|
|
||||||
If read messages are currently hidden, advance to the next unread
|
If read messages are currently hidden, advance to the next unread
|
||||||
message. Otherwise, advance to the next message."
|
message. Otherwise, advance to the next message."
|
||||||
|
@ -674,7 +674,7 @@ thread from that buffer can be show when done with this one)."
|
||||||
)))
|
)))
|
||||||
|
|
||||||
(defvar notmuch-search-authors-width 40
|
(defvar notmuch-search-authors-width 40
|
||||||
"Number of columns to use to diplay authors in a notmuch-search buffer.")
|
"Number of columns to use to display authors in a notmuch-search buffer.")
|
||||||
|
|
||||||
(defvar notmuch-search-mode-map
|
(defvar notmuch-search-mode-map
|
||||||
(let ((map (make-sparse-keymap)))
|
(let ((map (make-sparse-keymap)))
|
||||||
|
@ -910,7 +910,7 @@ the beginning of the buffer).
|
||||||
|
|
||||||
This command toggles the sort order for the current search.
|
This command toggles the sort order for the current search.
|
||||||
|
|
||||||
Note that any fitlered searches created by
|
Note that any filtered searches created by
|
||||||
`notmuch-search-filter' retain the search order of the parent
|
`notmuch-search-filter' retain the search order of the parent
|
||||||
search."
|
search."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
|
@ -38,7 +38,7 @@ show_message_part (GMimeObject *part, int *part_count,
|
||||||
if (i == 1)
|
if (i == 1)
|
||||||
continue;
|
continue;
|
||||||
if (i > 1)
|
if (i > 1)
|
||||||
fprintf (stderr, "Warning: Unexpected extra parts of mutlipart/signed. Continuing.\n");
|
fprintf (stderr, "Warning: Unexpected extra parts of multipart/signed. Continuing.\n");
|
||||||
}
|
}
|
||||||
show_message_part (g_mime_multipart_get_part (multipart, i),
|
show_message_part (g_mime_multipart_get_part (multipart, i),
|
||||||
part_count, show_part);
|
part_count, show_part);
|
||||||
|
|
Loading…
Reference in a new issue