This seems to be a fairly common request so I've scratched my own itch and put up a patched version of Getmail on github that adds a configuration parameter "use_peek" to the imap and imapssl retrievers. This leaves the end user in control of whether or not to risk using body.peek against a potentially non-compliant imap server.
The patch set is trivial and based on a patch that was submitted for inclusion in the Freebsd getmail port. If an Ubuntu or Debian maintainer wanted to hoover up the patches and make them part of the official package my feelings certainly wouldn't be hurt.
This seems to be a fairly common request so I've scratched my own itch and put up a patched version of Getmail on github that adds a configuration parameter "use_peek" to the imap and imapssl retrievers. This leaves the end user in control of whether or not to risk using body.peek against a potentially non-compliant imap server.
The patch set is trivial and based on a patch that was submitted for inclusion in the Freebsd getmail port. If an Ubuntu or Debian maintainer wanted to hoover up the patches and make them part of the official package my feelings certainly wouldn't be hurt.