Library Reference

imaplib2.version(use_tuple=False)

Return the version of this module, either as a single string (the default) or a tuple of major_version, minor_version as integers

Parameters:

use_tuple (bool) – Whether to return tuple

Returns:

The version of this library, the format depends on the value of use_tuple

Return type:

(int, int) if use_tuple

Return type:

str otherwise