summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2017-03-19 22:35:29 (GMT)
committer Jaromil <jaromil@dyne.org>2017-03-19 22:35:29 (GMT)
commitda38892d2abe5174b25e004af02699f7f0dd9aef (patch)
tree239607bd1ad60acb080226fd18c6974bcd1414d7
parent93116d41ff972343ce7c15ff84d96f399cedb635 (diff)
small fix to search params
-rwxr-xr-xextras/test/inittest.sh2
-rwxr-xr-xsrc/zlibs/search16
2 files changed, 9 insertions, 9 deletions
diff --git a/extras/test/inittest.sh b/extras/test/inittest.sh
index d6f7391..f7245ce 100755
--- a/extras/test/inittest.sh
+++ b/extras/test/inittest.sh
@@ -38,7 +38,7 @@ lorem | j compose Ieshuem3@riseup.net
lorem | j compose fengi2Ee@autistici.org
lorem | j compose Juiv0air@autistici.org
-lorem | j compose Ieshuem3@autistici.org
+lorem | j -D compose Ieshuem3@autistici.org
exported_recipients_ok="fengi2Ee <fengi2ee@autistici.org>
fengi2Ee <fengi2ee@dyne.org>
diff --git a/src/zlibs/search b/src/zlibs/search
index 00c7aee..abf5e92 100755
--- a/src/zlibs/search
+++ b/src/zlibs/search
@@ -115,13 +115,13 @@ update_notmuch() {
}
search() {
- fn search ${=PARAM}
- func "searching for ${#PARAM} terms"
+ fn search $*
+ func "searching for ${#option_params} terms"
# launch the search with notmuch
_results=""
ztmp
- nm search --output=files ${=PARAM} >> $ztmpfile
+ nm search --output=files $* >> $ztmpfile
search_results=(`cat $ztmpfile`)
[[ $? = 0 ]] || {
@@ -140,7 +140,7 @@ alot_search() {
read_account
nm_setup
- notice "Searching emails for: ${=PARAM}"
+ notice "Searching emails for: ${=option_params}"
# read if there are other email aliases configured
[[ -r "$MAILDIRS"/Aliases.txt ]] && {
@@ -216,16 +216,16 @@ user_agent = Jaro Mail <http://jaromail.dyne.org>
EOF
alot -c "$MAILDIRS"/cache/alot/rc -n "$MAILDIRS"/cache/notmuch/rc \
- search ${=PARAM}
+ search $*
return $?
}
backup() {
fn backup $*
- dst=${PARAM[1]}
- shift 1 PARAM
- expr=${=PARAM}
+ dst=${option_params[1]}
+ shift 1 option_params
+ expr=${option_params}
req=(dst expr)
ckreq