2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@9985 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-11-24 09:54:29 +00:00
parent 37da8bfa8d
commit a23e9c63f0

View File

@ -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>