commit da38892d2abe5174b25e004af02699f7f0dd9aef
parent 93116d41ff972343ce7c15ff84d96f399cedb635
Author: Jaromil <jaromil@dyne.org>
Date: Sun, 19 Mar 2017 23:35:29 +0100
small fix to search params
Diffstat:
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git 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
@@ -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