From 01a02a13038470c81d0a3591b38271b49727cf92 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 6 Apr 2016 09:05:02 +0000 Subject: [PATCH] hook to invalidate, if mailaccount userdata changes --- api/src/Mail/Smtp/Sql.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/src/Mail/Smtp/Sql.php b/api/src/Mail/Smtp/Sql.php index 06c4e47bd7..30e68085f4 100644 --- a/api/src/Mail/Smtp/Sql.php +++ b/api/src/Mail/Smtp/Sql.php @@ -339,6 +339,13 @@ class Sql extends Mail\Smtp } } } + + // let interesed parties know account was update + Api\Hooks::process(array( + 'location' => 'mailaccount_userdata_updated', + 'account_id' => $_uidnumber, + )); + return true; }