{"action":"closed","issue":{"url":"https://api.github.com/repos/glpi-project/glpi/issues/71","labels_url":"https://api.github.com/repos/glpi-project/glpi/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/glpi-project/glpi/issues/71/comments","events_url":"https://api.github.com/repos/glpi-project/glpi/issues/71/events","html_url":"https://github.com/glpi-project/glpi/issues/71","id":101601459,"number":71,"title":"Collector : blacklisted email address generates php errors","user":{"login":"blerohellec","id":9383475,"avatar_url":"https://avatars.githubusercontent.com/u/9383475?v=3","gravatar_id":"","url":"https://api.github.com/users/blerohellec","html_url":"https://github.com/blerohellec","followers_url":"https://api.github.com/users/blerohellec/followers","following_url":"https://api.github.com/users/blerohellec/following{/other_user}","gists_url":"https://api.github.com/users/blerohellec/gists{/gist_id}","starred_url":"https://api.github.com/users/blerohellec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blerohellec/subscriptions","organizations_url":"https://api.github.com/users/blerohellec/orgs","repos_url":"https://api.github.com/users/blerohellec/repos","events_url":"https://api.github.com/users/blerohellec/events{/privacy}","received_events_url":"https://api.github.com/users/blerohellec/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/glpi-project/glpi/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"yllen","id":12936722,"avatar_url":"https://avatars.githubusercontent.com/u/12936722?v=3","gravatar_id":"","url":"https://api.github.com/users/yllen","html_url":"https://github.com/yllen","followers_url":"https://api.github.com/users/yllen/followers","following_url":"https://api.github.com/users/yllen/following{/other_user}","gists_url":"https://api.github.com/users/yllen/gists{/gist_id}","starred_url":"https://api.github.com/users/yllen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yllen/subscriptions","organizations_url":"https://api.github.com/users/yllen/orgs","repos_url":"https://api.github.com/users/yllen/repos","events_url":"https://api.github.com/users/yllen/events{/privacy}","received_events_url":"https://api.github.com/users/yllen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/glpi-project/glpi/milestones/1","html_url":"https://github.com/glpi-project/glpi/milestones/0.90","labels_url":"https://api.github.com/repos/glpi-project/glpi/milestones/1/labels","id":1231399,"number":1,"title":"0.90","description":"","creator":{"login":"orthagh","id":418844,"avatar_url":"https://avatars.githubusercontent.com/u/418844?v=3","gravatar_id":"","url":"https://api.github.com/users/orthagh","html_url":"https://github.com/orthagh","followers_url":"https://api.github.com/users/orthagh/followers","following_url":"https://api.github.com/users/orthagh/following{/other_user}","gists_url":"https://api.github.com/users/orthagh/gists{/gist_id}","starred_url":"https://api.github.com/users/orthagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orthagh/subscriptions","organizations_url":"https://api.github.com/users/orthagh/orgs","repos_url":"https://api.github.com/users/orthagh/repos","events_url":"https://api.github.com/users/orthagh/events{/privacy}","received_events_url":"https://api.github.com/users/orthagh/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":45,"state":"open","created_at":"2015-07-29T12:00:08Z","updated_at":"2015-08-28T11:44:38Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-08-18T08:36:19Z","updated_at":"2015-08-28T11:44:38Z","closed_at":"2015-08-28T11:44:38Z","body":"GLPI 0.85.5 & 0.90.\r\nI'm collecting a mail, whose sender is blacklisted (through Setup > Dropdowns > Blacklist : type Email).\r\nThe result seems OK : the ticket is not created (correct), the email is moved to the 'Refused mail archive folder' as defined (correct), BUT I get some PHP errors (on screen and in php-errors.log) -> extract hereafter.\r\n\r\nReading the source code, I understand that variable $tkt - in error - is populated by function buildTicket(). But, when sender is blacklisted, it leaves the function immediatly, and $tkt is not fully populated. Hence, the error.\r\n\r\n  *** PHP Notice(8): Undefined index: _head \r\n  Backtrace : \r\n  inc/mailcollector.class.php:521                    \r\n  inc/mailcollector.class.php:1540                   MailCollector->collect() \r\n  :                                                  MailCollector::cronMailgate() \r\n  inc/crontask.class.php:796                         call_user_func() \r\n  front/crontask.form.php:46                         CronTask::launch() \r\n  *** PHP Notice(8): Undefined index: _head \r\n  Backtrace : \r\n  inc/mailcollector.class.php:522                    \r\n  inc/mailcollector.class.php:1540                   MailCollector->collect() \r\n  :                                                  MailCollector::cronMailgate() \r\n  inc/crontask.class.php:796                         call_user_func() \r\n  front/crontask.form.php:46                         CronTask::launch() \r\n  *** PHP Notice(8): Undefined index: _users_id_requester \r\n  Backtrace : \r\n  inc/mailcollector.class.php:523                    \r\n  inc/mailcollector.class.php:1540                   MailCollector->collect() \r\n  :                                                  MailCollector::cronMailgate() \r\n  inc/crontask.class.php:796                         call_user_func() \r\n  front/crontask.form.php:46                         CronTask::launch() \r\n  *** PHP Notice(8): Undefined index: _head \r\n  Backtrace : \r\n  inc/mailcollector.class.php:524                    \r\n  inc/mailcollector.class.php:1540                   MailCollector->collect() \r\n  :                                                  MailCollector::cronMailgate() \r\n  inc/crontask.class.php:796                         call_user_func() \r\n  front/crontask.form.php:46                         CronTask::launch() \r\n  *** PHP Notice(8): Undefined index: _head \r\n  Backtrace : \r\n  inc/mailcollector.class.php:525                    \r\n  inc/mailcollector.class.php:1540                   MailCollector->collect() \r\n  :                                                  MailCollector::cronMailgate() \r\n  inc/crontask.class.php:796                         call_user_func() \r\n  front/crontask.form.php:46                         CronTask::launch()\r\n"}}