whatnow2: remove get_attachmentheader()
authorDmitry Bogatov <KAction@gnu.org>
Fri, 16 Sep 2016 12:22:28 +0000 (15:22 +0300)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sun, 1 Jan 2017 19:55:24 +0000 (20:55 +0100)
uip/whatnow2.sh

index 22be353..2040725 100755 (executable)
@@ -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