While working with JavaMail API, I used below two properties to create a session and then to download emails from server. This (setting below properties) will cause data to be fetched from the server in larger chunks and hence to download large message bodies efficiently. I am looking for similar option in python so that data to be fetched from the server should be in larger chunks. Can someone help me achieve this in Python?.
props.setProperty("mail.imaps.partialfetch","true");
props.setProperty("mail.imaps.fetchsize", "2000000");