Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using fetchmail, getmail, or other command-line MRAs, is there a way to retrieve only message bodies (without attachments) or only messages smaller than a given size? (This feature is available in Thunderbird, but that's not command-line friendly.)

share|improve this question
Probably not. And strictly speaking, it's probably not possible in Thunderbird, either... as to strip out attachments requires reading the entire message contents, then discarding the unused parts--so even Thunderbird probably retrieves that data before it can discard it. What are you trying to accomplish? Conserving bandwidth, or disk space, or what? – Flimzy Jul 3 '11 at 21:22
The most important thing for me is retrieval speed. Disk space is second to that, and bandwidth usage third. I'm looking for a configuration option that tells the MRA not to download messages larger than a given size. – Omid Jul 3 '11 at 22:30
Flimzy, you don't know your IMAP. ☺ Read RFC 3501 § 6.4.5. – JdeBP Jul 4 '11 at 9:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.