Commits

Anonymous committed b054699

Updated e-mail handler to only peek at the bodies

Comments (0)

Files changed (1)

jaraco/net/email.py

 		typ, data = self.server.search(None, query)
 		self.message_ids = data[0].split()
 		log.info('loading %d messages from %s', len(self.message_ids), folder)
-		get_message = lambda id: self.server.fetch(id, '(RFC822)')
+		get_message = lambda id: self.server.fetch(id, '(BODY.PEEK[HEADER])')
 		messages = itertools.imap(get_message, self.message_ids)
 		return self.parse_imap_messages(messages)