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

Re: Quick move to folders with new mails?



* Nicolas [Sun, 13 Jun 2004 12:55:57 +0200]:
> On Sun, Jun 13, 2004 at 12:34:54PM +0200, Adeodato Simó wrote:
> > * Nicolas [Sun, 13 Jun 2004 11:11:39 +0200]:

> > > When I'm in the folders list, I'd like to quickly move to the first
> > > folder with new mails.

> > > Is it possible? Is there a shortcut?

> >   if you use maildir, you may be interested in the maildir-mtime patch [1].
> >   then, if you sort by reverse date in browser, you'll get all folders
> >   with new mail on top, instead of scattered through the list.


> >   [1] http://www.mutt.ca/maildir-mtime.html


> I use maildir indeed.
> However, I would have prefered to set something in .muttrc in order to
> get the same result.

  that'd be so nice, but i'm note aware this is possible. i'd be very
  glad to heare sbd. else telling us it is.

> Moreover, I'm used to get mutt from debian packages. I try to compile as
> few things as possible. 

  there is a whishlist bug asking for the inclusion of this patch in the
  debian package (#253261). you can state your support for this there
  and who knows...

> I tried to download mutt from the cvs.

  I recommend you to download de debian source package:

    $ apt-get source mutt
    $ cd mutt-1.5.6
    $ wget -P debian/patches/ 
http://www.mutt.ca/patches/patch-1.5.6.dw.maildir-mtime.1
    $ dpkg-buildpackage -rfakeroot -uc -us
    $ su -c "dpkg -i ../mutt-*.deb"

  voilà.

  (probably you'll want to make the attached chagne to the maildir-mtime
  patch so that it will compile with recent gcc versions.)

-- 
Adeodato Simó
    EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
 
The greatest productive force is human selfishness.
                -- Robert Heinlein
--- patch-1.5.6.dw.maildir-mtime.1~     2004-02-02 15:24:53.000000000 +0100
+++ patch-1.5.6.dw.maildir-mtime.1      2004-05-15 02:29:15.000000000 +0200
@@ -11,7 +11,7 @@
 @@ -304,4 +305,6 @@ folder_format_str (char *dest, size_t de
  static void add_folder (MUTTMENU *m, struct browser_state *state,
 -                      const char *name, const struct stat *s, int new)
-+                      const char *name, const struct stat *s, BUFFY *mbuf)
++                      const char *name,       struct stat *s, BUFFY *mbuf)
  {
 +  int new = (mbuf) ? mbuf->new : 0;
 +