Closed kunxianhuang closed 3 years ago
Sorry, I pushed close.
Replacing latest value with the same key is in below https://github.com/pycontw/mail_handler/blob/master/mail_handler/render_mail.py#L30
Make some changes and pull request at below https://github.com/pycontw/mail_handler/pull/27
Solved by using defaultdict and merge it at below. Close this issue. https://github.com/pycontw/mail_handler/pull/28
If proposal with the same mail address ("receiver_email" blank in json file), the file in mails_to_send will be rewrite to newest one. So, render mail should name file as ooo@xxx.com__2 if multiple proposal with same address. Then, sendmail can detect the file and drop its tail.
[Use Case] When CfP goes into 2nd stage, if there are multiple proposals (N proposals) submitted by one person are accepted in the stage 1 review, the person will be notified with N emails for N proposals.