AutocryptHeader.compare

Compare two Autocrypt Headers. This is useful for comparison, as well as for sorting headers by:

  • address
  • effective_date
  • keydata
  • prefer_encrypt
class AutocryptHeader
int
compare

Parameters

ah2 gmime.autocrypt_header.AutocryptHeader

a #GMimeAutocryptHeader object

Return Value

Type: int

-1, 0, or 1 when ah1 is less than, equal to, or greater than ah2.