python-messaging
python-messaging copied to clipboard
Expiry encoder
The "encode_expiry_value" method encodes an integer representing the number of seconds for the MMS expiry header. It uses the relative format for expiry (how much time should pass before the MMS expires) rather than the absolute expiry (a specific date and time to expire). The key "Expiry" is added to the headers dictionary with a default value of 3600 secs.