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

Re: [Mutt] #3197: annoying error when <last-entry> is used in an



#3197: annoying error when <last-entry> is used in an empty mailbox
-----------------------+----------------------------------------------------
  Reporter:  mszudzik  |       Owner:  pdmef   
      Type:  defect    |      Status:  assigned
  Priority:  minor     |   Milestone:          
 Component:  mutt      |     Version:  1.5.18  
Resolution:            |    Keywords:          
-----------------------+----------------------------------------------------

Comment(by mszudzik):

 Instead of "hacking up mutt to suppress the error", perhaps mutt needs a
 fundamental new feature?  In particular, I am suggesting that inside of a
 macro, there needs to be a way to check the number of messages in a
 folder, and to perform different actions depending on the result.  I see
 two possible implementations:

 (1) Introduce patterns for matching the number of messages in a folder.

 (2) Introduce an error-trapping mechanism for macros.  In other words,
 there needs to be a way to say "if function x fails, then do y".  This
 would also solve bugs [http://dev.mutt.org/trac/ticket/2134 2134] and
 [http://dev.mutt.org/trac/ticket/3187 3187].

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3197#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent