Bug 403762 - signature script failed and don't work anymore
Summary: signature script failed and don't work anymore
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: Git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-30 11:15 UTC by Bruno Friedmann
Modified: 2019-01-30 13:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Friedmann 2019-01-30 11:15:29 UTC
Use one of you account (for me Gmail) and in indentities define signature as output of script.

Expected result the signature is applied to new message
Actual result : error dialog box (3 times) with 
Failed to execute signature script
/ioda/home/bruno/bin/signature_email.sh:

Here the script
source /etc/os-release
cat /ioda/data/user-data/Bruno/Signatures/Standard.txt
echo ${PRETTY_NAME} - ${VERSION_ID}
echo "$(uname -srmo), nvidia: $(modinfo --field=version nvidia)"
X5="$( echo $(kf5-config -v) | awk '{print $1, $2",", $3, $4, $5}' )"
echo "${X5}, Plasma: $(plasmashell -v | awk '{print $2}'), $(kmail -v)"


and the output

Bruno Friedmann
 Ioda-Net Sàrl www.ioda-net.ch
 Bareos Partner, openSUSE Member, fsfe supporter
 GPG KEY : D5C9B751C4653227
 irc: tigerfoot

openSUSE Tumbleweed - 20190125
Linux 4.20.2-1-default x86_64 GNU/Linux, nvidia: 410.93
Qt: 5.12.0, KDE Frameworks: 5.54.0, Plasma: 5.14.5, kmail2 5.10.1

echo $? return 0 as expected.


Don't remember when I saw this the first time (around 5.4x version I guess, one year ago at least)
Comment 1 Laurent Montel 2019-01-30 12:27:34 UTC
it seems that it needs to add #!/bin/sh at top of script.
It works for me (as for other script).

(I fixed a bug when I tried to reproduce your bug :) )
Comment 2 Bruno Friedmann 2019-01-30 12:33:44 UTC
Good catch Laurent !

Damn so evident that I can't see it. Perhaps a line in documentation and help to tell that any script will work, but have to have a shebang line.

So this one was an easy fix.
Comment 3 Laurent Montel 2019-01-30 13:20:36 UTC
Indeed I will add more info.