[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: procmail being greedy?



On Thu, May 02, 2002 at 10:16:26PM +0100, Randy Orrison wrote:
| Yesterday, procmail started bouncing mail from this list.  My delivery
| system is fetchmail->exim->procmail, and I have debian-user filed into a
| maildir format directory.
| 
| Here's the recipe that I use for debian-user:
... 
|         # Count the number of lines, if necessary (for maildir)
|         :0
|         * ! ^Lines:
|         {
|             # Count number of lines
|             :0 bw
|             LINES=|grep -c ^
| 
|             :0 fhw
|             | formail -a "Lines: $LINES"
|         }
...

This block is wholly unnecessary.  In your .muttrc use an index format
like :


# %c     number of characters (bytes) in the message
# %E     number of messages in current thread
# %l     number of lines in the message
# %M     number of hidden messages if the thread is collapsed.

# %?<sequence_char>?<optional_string>?
# %?<sequence_char>?<if_string>&<else_string>?


# default action
folder-hook . 'set sort=date index_format="%4C %Z %{%b%d} %-15.15F (%4c) %s"'
#                                                                ^    ^

# sorting for lists
folder-hook lists.* 'set sort=threads sort_aux=date'
folder-hook lists.* 'set index_format="%3C %Z %[%b%d] %-17.17n(%?M?#%3M&%4c?) %s"'

folder-hook Sent 'set index_format="%3C %Z %[!%b%d] %-17.17F(%?M?#%3M&%4c?) %s"'


These are the formats I use and some notes on what they really mean
(in the comments above them).  By telling mutt to look at the size of
the file, the Lines: header is unnecessary and you don't need to add
it.  IMO it is also more useful (how many lines is a base64 non-text
attachment?).

I don't know what the real problem is with procmail failing.

-D

-- 

In the way of righteousness there is life;
along that path is immortality.
        Proverbs 12:28
 
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg

Attachment: pgpaZ0gProooY.pgp
Description: PGP signature


Reply to: