<<< Date Index >>>     <<< Thread Index >>>

Re: mutt / fetchmail mail size limit



Daniel Hertrich (2005-09-25, 14:32):
> since i use a mutt / fetchmail / procmail / msmtp system on a
> mobile device (Sharp Zaurus PDA) which is offline most of the
> times, and if I connect to the Internet I sometimes do it with
> a mobile phone (slow and expensive) I'd like to have fetchmail
> only download messages up to size = x kb

,----[ man fetchmail ]
| [...]
| Resource Limit Control Options
|   -l <maxbytes> | --limit <maxbytes>
|      (Keyword:  limit) Takes a maximum octet size argument.
|      Messages larger than this size will not be fetched and will
|      be left on the server (in foreground sessions, the progress
|      messages will note that they are "oversized").  If the
|      fetch  protocol  permits  (in particular, under IMAP or
|      POP3 without the fetchall option) the message will not be
|      marked seen An explicit --limit of 0 overrides any limits
|      set in your run control file. This option is intended for
|      those needing to strictly control fetch time due to
|      expensive and  variable  phone  rates.   Combined  with
|      --flush, it can be used to delete oversized messages
|      waiting on a server.  In daemon mode, oversize
|      notifications are mailed to the calling user (see the
|      --warnings option).  This option does not work with  ETRN
|      or ODMR.
| [...]
`----

> and in mutt I'd like to see the mail headers of the mails
> which are > x kb  and decide if it should be downloaded
> entirely or deleted on the next online run via a keystroke.

With fetchmail those messages are already downloaded. Maybe you
want to have a look at IMAP. Nevertheless mutt can "limit" to a
pattern[1] within the index, for instance the size.

Hendrik

[1] http://www.mutt.org/doc/devel/manual/manual-4.html#ss4.2