{"action":"created","issue":{"url":"https://api.github.com/repos/hitobito/hitobito/issues/498","repository_url":"https://api.github.com/repos/hitobito/hitobito","labels_url":"https://api.github.com/repos/hitobito/hitobito/issues/498/labels{/name}","comments_url":"https://api.github.com/repos/hitobito/hitobito/issues/498/comments","events_url":"https://api.github.com/repos/hitobito/hitobito/issues/498/events","html_url":"https://github.com/hitobito/hitobito/issues/498","id":308516840,"number":498,"title":"Mail Abo Catch All Model mit Log","user":{"login":"psunix","id":655627,"avatar_url":"https://avatars2.githubusercontent.com/u/655627?v=4","gravatar_id":"","url":"https://api.github.com/users/psunix","html_url":"https://github.com/psunix","followers_url":"https://api.github.com/users/psunix/followers","following_url":"https://api.github.com/users/psunix/following{/other_user}","gists_url":"https://api.github.com/users/psunix/gists{/gist_id}","starred_url":"https://api.github.com/users/psunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psunix/subscriptions","organizations_url":"https://api.github.com/users/psunix/orgs","repos_url":"https://api.github.com/users/psunix/repos","events_url":"https://api.github.com/users/psunix/events{/privacy}","received_events_url":"https://api.github.com/users/psunix/received_events","type":"User","site_admin":false},"labels":[{"id":393340201,"url":"https://api.github.com/repos/hitobito/hitobito/labels/in%20progress","name":"in progress","color":"00a7ed","default":false}],"state":"closed","locked":false,"assignee":{"login":"psunix","id":655627,"avatar_url":"https://avatars2.githubusercontent.com/u/655627?v=4","gravatar_id":"","url":"https://api.github.com/users/psunix","html_url":"https://github.com/psunix","followers_url":"https://api.github.com/users/psunix/followers","following_url":"https://api.github.com/users/psunix/following{/other_user}","gists_url":"https://api.github.com/users/psunix/gists{/gist_id}","starred_url":"https://api.github.com/users/psunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psunix/subscriptions","organizations_url":"https://api.github.com/users/psunix/orgs","repos_url":"https://api.github.com/users/psunix/repos","events_url":"https://api.github.com/users/psunix/events{/privacy}","received_events_url":"https://api.github.com/users/psunix/received_events","type":"User","site_admin":false},"assignees":[{"login":"psunix","id":655627,"avatar_url":"https://avatars2.githubusercontent.com/u/655627?v=4","gravatar_id":"","url":"https://api.github.com/users/psunix","html_url":"https://github.com/psunix","followers_url":"https://api.github.com/users/psunix/followers","following_url":"https://api.github.com/users/psunix/following{/other_user}","gists_url":"https://api.github.com/users/psunix/gists{/gist_id}","starred_url":"https://api.github.com/users/psunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psunix/subscriptions","organizations_url":"https://api.github.com/users/psunix/orgs","repos_url":"https://api.github.com/users/psunix/repos","events_url":"https://api.github.com/users/psunix/events{/privacy}","received_events_url":"https://api.github.com/users/psunix/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/hitobito/hitobito/milestones/21","html_url":"https://github.com/hitobito/hitobito/milestone/21","labels_url":"https://api.github.com/repos/hitobito/hitobito/milestones/21/labels","id":3224322,"number":21,"title":"Pbs / Jubla Release (1.18.2)","description":"","creator":{"login":"amaierhofer","id":180780,"avatar_url":"https://avatars2.githubusercontent.com/u/180780?v=4","gravatar_id":"","url":"https://api.github.com/users/amaierhofer","html_url":"https://github.com/amaierhofer","followers_url":"https://api.github.com/users/amaierhofer/followers","following_url":"https://api.github.com/users/amaierhofer/following{/other_user}","gists_url":"https://api.github.com/users/amaierhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/amaierhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaierhofer/subscriptions","organizations_url":"https://api.github.com/users/amaierhofer/orgs","repos_url":"https://api.github.com/users/amaierhofer/repos","events_url":"https://api.github.com/users/amaierhofer/events{/privacy}","received_events_url":"https://api.github.com/users/amaierhofer/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":6,"state":"open","created_at":"2018-03-28T07:02:41Z","updated_at":"2018-04-12T12:51:00Z","due_on":"2018-04-05T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-03-26T10:31:28Z","updated_at":"2018-04-12T12:51:00Z","closed_at":"2018-04-12T12:51:00Z","author_association":"CONTRIBUTOR","body":"der Versand der Abolisten-Mails wird heute nur über die Logfiles und nicht im Detail protokolliert.\r\nAusserdem merkt sich das System auch nicht welche Mail an welche Adresse bereits gesendet wurde. So kam es vor ein paar Tagen dazu das eine Mail 65x an die gleichen 2600 Empfänger gesendet wurden da der Job nie komplett durchlief weil es zu einer Exception beim Löschen der Nachricht im Catch-All-Konto kam. \r\n\r\n# 1. MailLog\r\n\r\nNeues Model: MailLog\r\nid, mailinglist_id, mail_hash, (succeeded_recipients), (failed_recipients), mail_subject, mail_sender,\r\nstatus, created_at, updated_at (DateTime)\r\n\r\nVerhindern das das gleich Mail an einen Empfänger mehrmals gesendet wird:\r\n\r\nAusbaustufe 1 (8+)\r\n\r\n- Wir halten fest ob ein Mail verarbeitet worden ist.\r\n- Der Job für Mailinglists überprüft, ob das Mail schon man verarbeitet wurde, wenn ja, wird kein neuer Job dazu mehr angelegt\r\n- Skip Mails, so dass weitere Mails verarbeitet werden können, und ein altes nicht die Job Queue blockiert.\r\n\r\nAusbausstufe 2 (+6h)\r\n\r\n- Wir halten während dem Bulkmailing fest, an wen schon das Mail verteilt worden ist.\r\n- Bulkmail prüft dann beim Versenden, ob dem Empfänger das Mail schon zugestellt worden ist oder nicht.\r\n- Beim Senden prüfen ob die Adresse nicht bereits im MailLog unter succeeded oder failed recipients eingetragen\r\n"},"comment":{"url":"https://api.github.com/repos/hitobito/hitobito/issues/comments/380793809","html_url":"https://github.com/hitobito/hitobito/issues/498#issuecomment-380793809","issue_url":"https://api.github.com/repos/hitobito/hitobito/issues/498","id":380793809,"user":{"login":"RolandStuder","id":194364,"avatar_url":"https://avatars0.githubusercontent.com/u/194364?v=4","gravatar_id":"","url":"https://api.github.com/users/RolandStuder","html_url":"https://github.com/RolandStuder","followers_url":"https://api.github.com/users/RolandStuder/followers","following_url":"https://api.github.com/users/RolandStuder/following{/other_user}","gists_url":"https://api.github.com/users/RolandStuder/gists{/gist_id}","starred_url":"https://api.github.com/users/RolandStuder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RolandStuder/subscriptions","organizations_url":"https://api.github.com/users/RolandStuder/orgs","repos_url":"https://api.github.com/users/RolandStuder/repos","events_url":"https://api.github.com/users/RolandStuder/events{/privacy}","received_events_url":"https://api.github.com/users/RolandStuder/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T12:51:00Z","updated_at":"2018-04-12T12:51:00Z","author_association":"OWNER","body":"Ausbaustufe 1 ist gemacht und bei PBS deployed. Ausbausstufe 2 ist im Moment nicht vorgesehen, wir fokusieren jetzt auf die Mailchimp Integration"}}
{"actor":{"display_login":"RolandStuder"}}