Notmuch virtual mailbox type. More...
Go to the source code of this file.
Functions | |
void | nm_init (void) |
Setup feature commands. | |
void | nm_db_debug_check (struct Mailbox *m) |
Check if the database is open. | |
void | nm_db_longrun_done (struct Mailbox *m) |
Finish a long transaction. | |
void | nm_db_longrun_init (struct Mailbox *m, bool writable) |
Start a long transaction. | |
char * | nm_email_get_folder (struct Email *e) |
Get the folder for a Email. | |
char * | nm_email_get_folder_rel_db (struct Mailbox *m, struct Email *e) |
Get the folder for a Email from the same level as the notmuch database. | |
int | nm_get_all_tags (struct Mailbox *m, const char **tag_list, int *tag_count) |
Fill a list with all notmuch tags. | |
bool | nm_message_is_still_queried (struct Mailbox *m, struct Email *e) |
Is a message still visible in the query? | |
enum MailboxType | nm_path_probe (const char *path, const struct stat *st) |
Is this a Notmuch Mailbox? - Implements MxOps::path_probe() -. | |
bool | nm_query_window_available (void) |
Are windowed queries enabled for use? | |
void | nm_query_window_backward (void) |
Function to move the current search window backward in time. | |
void | nm_query_window_forward (void) |
Function to move the current search window forward in time. | |
void | nm_query_window_reset (void) |
Resets the vfolder window position to the present. | |
int | nm_read_entire_thread (struct Mailbox *m, struct Email *e) |
Get the entire thread of an email. | |
int | nm_record_message (struct Mailbox *m, char *path, struct Email *e) |
Add a message to the Notmuch database. | |
int | nm_update_filename (struct Mailbox *m, const char *old_file, const char *new_file, struct Email *e) |
Change the filename. | |
char * | nm_url_from_query (struct Mailbox *m, char *buf, size_t buflen) |
Turn a query into a URL. | |
Variables | |
const struct CompleteOps | CompleteNmQueryOps |
Auto-Completion of NmQuerys. | |
const struct CompleteOps | CompleteNmTagOps |
Auto-Completion of NmTags. | |
const struct MxOps | MxNotmuchOps |
Notmuch Mailbox - Implements MxOps -. | |
Notmuch virtual mailbox type.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file lib.h.
void nm_init | ( | void | ) |
Setup feature commands.
Definition at line 108 of file notmuch.c.
void nm_db_debug_check | ( | struct Mailbox * | m | ) |
Check if the database is open.
m | Mailbox |
Definition at line 397 of file db.c.
void nm_db_longrun_done | ( | struct Mailbox * | m | ) |
void nm_db_longrun_init | ( | struct Mailbox * | m, |
bool | writable | ||
) |
char * nm_email_get_folder | ( | struct Email * | e | ) |
Get the folder for a Email.
e |
ptr | Folder containing email |
NULL | Error |
Definition at line 1469 of file notmuch.c.
Get the folder for a Email from the same level as the notmuch database.
ptr | Folder containing email from the same level as the notmuch db |
NULL | Error |
Instead of returning a path like /var/mail/account/Inbox, this returns account/Inbox. If wanting the full path, use nm_email_get_folder().
Definition at line 1488 of file notmuch.c.
int nm_get_all_tags | ( | struct Mailbox * | m, |
const char ** | tag_list, | ||
int * | tag_count | ||
) |
Fill a list with all notmuch tags.
[in] | m | Mailbox |
[out] | tag_list | List of tags |
[out] | tag_count | Number of tags |
0 | Success |
-1 | Failure |
If tag_list is NULL, just count the tags.
Definition at line 1979 of file notmuch.c.
Is a message still visible in the query?
true | Message is still in query |
Definition at line 1698 of file notmuch.c.
bool nm_query_window_available | ( | void | ) |
Are windowed queries enabled for use?
true | Windowed queries in use |
Definition at line 1638 of file notmuch.c.
void nm_query_window_backward | ( | void | ) |
Function to move the current search window backward in time.
Updates nm_query_window_current_position
by incrementing it by 1
The higher the value of nm_query_window_current_position
is, the less recent the result will be.
Definition at line 1675 of file notmuch.c.
void nm_query_window_forward | ( | void | ) |
Function to move the current search window forward in time.
Updates nm_query_window_current_position
by decrementing it by 1, or does nothing if the current window already is set to 0.
The lower the value of nm_query_window_current_position
is, the more recent the result will be.
Definition at line 1655 of file notmuch.c.
void nm_query_window_reset | ( | void | ) |
Get the entire thread of an email.
0 | Success |
-1 | Failure |
Definition at line 1514 of file notmuch.c.
Add a message to the Notmuch database.
0 | Success |
-1 | Failure |
Definition at line 1896 of file notmuch.c.
int nm_update_filename | ( | struct Mailbox * | m, |
const char * | old_file, | ||
const char * | new_file, | ||
struct Email * | e | ||
) |
Change the filename.
0 | Success |
-1 | Failure |
Definition at line 1763 of file notmuch.c.
char * nm_url_from_query | ( | struct Mailbox * | m, |
char * | buf, | ||
size_t | buflen | ||
) |
Turn a query into a URL.
ptr | Query as a URL |
NULL | Error |
Definition at line 1579 of file notmuch.c.
|
extern |
Auto-Completion of NmQuerys.
Definition at line 247 of file complete.c.
|
extern |
Auto-Completion of NmTags.
Definition at line 254 of file complete.c.