mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 07:24:21 +00:00
msgSchema: more compatible default mail command for Unix hosts
git-svn-id: https://svn.fhem.de/fhem/trunk@9780 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cca0efc6bf
commit
f1c916d6ac
@ -1675,10 +1675,6 @@ s/^[\s\t]*\|([\w\süöäß^°!"§$%&\/\\()<>=?´`"+\[\]#*@€]+)\|[\s\t]+//
|
||||
)
|
||||
) if ( $title eq "-" );
|
||||
|
||||
if ( $type[$i] eq "mail" && $priorityCat ne "" ) {
|
||||
$loopTitle = "[$priorityCat] $loopTitle";
|
||||
}
|
||||
|
||||
my $loopMsg = $msg;
|
||||
if ( $catchall == 1 ) {
|
||||
$loopTitle = "Fw: $loopTitle";
|
||||
|
@ -102,9 +102,9 @@ my $db = {
|
||||
'mail' => {
|
||||
|
||||
'fhemMsgMail' => {
|
||||
'Normal' => '{system("echo \'%MSG%\' | /usr/bin/mail -s \'%TITLE%\' -t \'%DEVICE%\' -a \'MIME-Version: 1.0\' -a \'Content-Type: text/html; charset=UTF-8\'")}',
|
||||
'High' => '{system("echo \'%MSG%\' | /usr/bin/mail -s \'%TITLE%\' -t \'%DEVICE%\' -a \'MIME-Version: 1.0\' -a \'Content-Type: text/html; charset=UTF-8\' -a \'X-Priority: 1 (Highest)\' -a \'X-MSMail-Priority: High\' -a \'Importance: high\'")}',
|
||||
'Low' => '{system("echo \'%MSG%\' | /usr/bin/mail -s \'%TITLE%\' -t \'%DEVICE%\' -a \'MIME-Version: 1.0\' -a \'Content-Type: text/html; charset=UTF-8\' -a \'X-Priority: 5 (Lowest)\' -a \'X-MSMail-Priority: Low\' -a \'Importance: low\'")}',
|
||||
'Normal' => '{system("echo \'%MSG%\' | /usr/bin/mail -s \'%TITLE%\' \'%DEVICE%\'")}',
|
||||
'High' => '{system("echo \'%MSG%\' | /usr/bin/mail -s \'[High] %TITLE%\' \'%DEVICE%\'")}',
|
||||
'Low' => '{system("echo \'%MSG%\' | /usr/bin/mail -s \'[Low] %TITLE%\' \'%DEVICE%\'")}',
|
||||
},
|
||||
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user