mirror of https://github.com/djcb/mu.git
* minor contrib stuff
This commit is contained in:
parent
9aa6f50d8b
commit
dca15dbefc
|
@ -1,5 +1,7 @@
|
||||||
|
/* -*-mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 2011 djcb <djcb@cthulhu>
|
** Copyright (C) 2011 Dirk-Jan C. Binnema <djcb@cthulhu>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** This program is free software; you can redistribute it and/or modify it
|
||||||
** under the terms of the GNU General Public License as published by the
|
** under the terms of the GNU General Public License as published by the
|
||||||
|
@ -17,8 +19,6 @@
|
||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* gmime-test; compile with:
|
/* gmime-test; compile with:
|
||||||
gcc -o gmime-test gmime-test.c -Wall -O0 -ggdb3 \
|
gcc -o gmime-test gmime-test.c -Wall -O0 -ggdb3 \
|
||||||
`pkg-config --cflags --libs gmime-2.4`
|
`pkg-config --cflags --libs gmime-2.4`
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#compdef mu
|
#compdef mu
|
||||||
|
|
||||||
## Copyright (C) 2008-2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
## Copyright (C) 2008-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
##
|
##
|
||||||
## This program is free software; you can redistribute it and/or modify
|
## This program is free software; you can redistribute it and/or modify
|
||||||
## it under the terms of the GNU General Public License as published by
|
## it under the terms of the GNU General Public License as published by
|
||||||
|
@ -23,6 +23,7 @@ _mu_commands() {
|
||||||
mu_commands=(
|
mu_commands=(
|
||||||
'index:scan your maildirs and import their metadata in the database'
|
'index:scan your maildirs and import their metadata in the database'
|
||||||
'find:search for messages in the database'
|
'find:search for messages in the database'
|
||||||
|
'cfind:search for contacts (name + email) in the database'
|
||||||
'cleanup:remove references to deleted messages from the database'
|
'cleanup:remove references to deleted messages from the database'
|
||||||
'extract:list message-parts (attachments) and extract them to files'
|
'extract:list message-parts (attachments) and extract them to files'
|
||||||
'mkdir:create maildirs'
|
'mkdir:create maildirs'
|
||||||
|
@ -39,9 +40,19 @@ _mu_common_options=(
|
||||||
)
|
)
|
||||||
|
|
||||||
_mu_db_options=(
|
_mu_db_options=(
|
||||||
'--muhome[use some non-default location for the mu database]:directory:_files'
|
'--muhome[use some non-default location for the mu database]:directory:_files'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
_mu_find_options=(
|
||||||
|
'--fields[fields to display in the output]'
|
||||||
|
'--sortfield[field to sort the output by]'
|
||||||
|
'--descending[sort in descending order]'
|
||||||
|
'--summary-len[length of the summary for a message]'
|
||||||
|
'--bookmark[use a named bookmark]'
|
||||||
|
'--output[set the kind of output for the query]'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_mu_view() {
|
_mu_view() {
|
||||||
_files
|
_files
|
||||||
|
@ -53,7 +64,9 @@ _mu_extract() {
|
||||||
|
|
||||||
_mu_find() {
|
_mu_find() {
|
||||||
_arguments -s : \
|
_arguments -s : \
|
||||||
$_mu_common_options
|
$_mu_common_options \
|
||||||
|
$_mu_db_options \
|
||||||
|
$_mu_find_options
|
||||||
}
|
}
|
||||||
|
|
||||||
_mu_index() {
|
_mu_index() {
|
||||||
|
|
Loading…
Reference in New Issue