mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
32_mailcheck.pm: added From reading (by Marci, see http://forum.fhem.de/index.php/topic,44580.msg364075.html#msg364075)
git-svn-id: https://svn.fhem.de/fhem/trunk@9985 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
37da8bfa8d
commit
a23e9c63f0
@ -434,7 +434,12 @@ mailcheck_Read($)
|
||||
Log3 $name, 2, "accept_from is set but MIME::Parser is not available";
|
||||
}
|
||||
|
||||
readingsSingleUpdate($hash, "Subject", $subject, 1 ) if( $do_notify );
|
||||
if( $do_notify ) {
|
||||
readingsBeginUpdate($hash);
|
||||
readingsBulkUpdate($hash, "From", $from);
|
||||
readingsBulkUpdate($hash, "Subject", $subject);
|
||||
readingsEndUpdate($hash, 1);
|
||||
}
|
||||
|
||||
$client->delete_message( $resp ) if( AttrVal($name, "delete_message", 0) == 1 );
|
||||
}
|
||||
@ -503,6 +508,8 @@ mailcheck_Read($)
|
||||
<ul>
|
||||
<li>Subject<br>
|
||||
the subject of the last mail received</li>
|
||||
<li>From<br>
|
||||
the mail address of the last sender</li>
|
||||
</ul><br>
|
||||
|
||||
<a name="mailcheck_Get"></a>
|
||||
|
Loading…
Reference in New Issue
Block a user