From 9e5b3025ed2dbb984181c8616456bbfa804bd1fa Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Fri, 16 Sep 2016 15:22:28 +0300 Subject: [PATCH] whatnow2: remove get_attachmentheader() --- uip/whatnow2.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/uip/whatnow2.sh b/uip/whatnow2.sh index 22be353..2040725 100755 --- a/uip/whatnow2.sh +++ b/uip/whatnow2.sh @@ -78,11 +78,6 @@ get_realpath() cd $OLDPWD } -get_attachmentheader() -{ - header=`mhparam 'Attachment-Header'` -} - set_lasteditor() { anno -delete -number all -component 'last-editor' $mhmetafile @@ -171,7 +166,7 @@ delete() attach() { - get_attachmentheader + header=`mhparam 'Attachment-Header'` while [ -n "$1" ] do if [ ! -f "$1" ] @@ -191,13 +186,13 @@ attach() alist() { - get_attachmentheader + header=`mhparam 'Attachment-Header'` anno -list -number -component $header $mhdraft } detach() { - get_attachmentheader + header=`mhparam 'Attachment-Header'` while [ -n "$1" ] do anno -delete -component $header -number "$1" $mhdraft -- 1.7.10.4