themartorana / python-postmark

Postmark library for Python 2.6 and greater
http://davemartorana.com
MIT License
199 stars 83 forks source link

send_messages return value via return_message_id enhancements #108

Open nicholasserra opened 2 years ago

nicholasserra commented 2 years ago

If I send three messages, but one of the messages doesn't have a recipient, then at this stage the pm_messages list will have only two elements.

How is user-code supposed to figure out which of the three messages didn't get send? That is, after this point, there's no difference between:

connection.send_messages([wrong_message, correct_message1, correct_message2]) connection.send_messages([correct_message1, wrong_message, correct_message2]) connection.send_messages([correct_message1, correct_message2, wrong_message]) Would be great if the return value could then be

[None, message_id1, message_id2] [message_id1, None, message_id2] [message_id1, message_id2, None] in these cases?