Re: sort threads

2002-07-04 Thread Nicolas Rachinsky

* Deb [EMAIL PROTECTED] [2002-07-03 22:37 -0700]:
 * Oliver Fuchs [EMAIL PROTECTED] [2002-07-04 06:15:38 +0200]:
 
  set sort=subject
  set sort=threads# sorting the mails in threads
  set sort_aux=date   # sorting the threads
  
  ... that works for me
 
 Nope, didn't work.  Must be something else.  

Do you have any hooks which change $sort?

What's the output of :set ?sort\n?

Nicolas



Re: MUTT AND NNTP

2002-07-04 Thread Rocco Rutte

Hi,

* Doug Lawlor [02-07-02 17:16:16 +0200] wrote:

 Hello, Justed downloaded mutt 1.4 and am interested in
 patching in NNTP support.  which is the best NNTP patch to
 use?  I understand that more than one exists.  

Well, it depends on you and what you like. I personally use
'vvv.nntp' and like it, but I hear that other patches work
equally good. I suggest giving them all a try.

I've some kind of documentation for the vvv.nntp patch
(describing which variables are new and what they're for,
new commands,...):

  http://www.inf.tu-dresden.de/~s1118644/mutt-and-news.html

HTH,
Cheers, Rocco



Re: Minor annoyance with fcc-save-hooks

2002-07-04 Thread Rocco Rutte

Hi,

* Lars Becker [02-07-02 19:21:12 +0200] wrote:
 I know it's possible to reach my goal if i use save-hooks
 and fcc-hooks instead of fcc-save-hooks.  The disadvantage
 of this is clear: i (and any other mutt user) will have to
 set two hooks for every correspondent.  With some 50+
 correspondents in the configuration file it becomes quite
 intricate.

Hmm, sounds like a job for a configuration script (/bin/sh
or /usr/bin/perl, or ...)... ;-)

Cheers, Rocco



[PATCH] crude support for Maildir++ folders in mutt

2002-07-04 Thread Marc Boucher

Hi,

The patch below is a quick  dirty hack to make mutt handle Maildir++
(see http://www.inter7.com/courierimap/README.maildirquota.html).
folders and emulated sub-folders (with '.' as hierarchy separator).
It was generated against the latest mutt-1.5.x development (unstable)
CVS tree.

Here are my .muttrc settings to go with it:

set folder=maildir:/home/marc/Maildir:
set 
mask=!(^(tmp|cur|new|courierimapuiddb|courierimapsubscribed|procmail.log|\.\.ev-summary|\.\.)$)
set spoolfile=~/Maildir
set record=~/Maildir/.Sent

Again, this is a hack, not a proper solution. Use at your own risk.
I'm no mutt developer, just a user who was tired of waiting forever
for mutt to slowly load big folders through a courier-imap server running
over loopback. Now at least it can access them directly.

I've also applied Michael Elkins's Maildir header caching patch
(http://www.cs.hmc.edu/~me/mutt/patch-1.5.0.me.hcache.8) which
provides a good speed improvement too.

Improvements or a proper implementation are welcome. Please Cc: responses
to marc at mbsi.ca as I do not always monitor the lists.

Cheers
Marc

--- muttlib.c   2002/07/04 12:30:59 1.1
+++ muttlib.c   2002/07/04 12:52:28
 -477,6 +477,18 
 imap_expand_path (s, slen);
 #endif
 
+  if (mx_is_maildir (s)  Maildir) {
+ strcpy(tmp, strchr(s, ':') + 1);
+ if(t = strchr(tmp, ':')) {
+   *t = '/';
+   t++;
+   while(t = strchr(t, '/')) {
+   *t = '.';
+   }
+ }
+ strfcpy(s, tmp, strlen(tmp) + 1);
+  }
+
   return (s);
 }
 
--- browser.c   2002/07/04 12:30:59 1.1
+++ browser.c   2002/07/04 12:30:59
 -608,6 +614,8 
   imap_browse (LastDir, state);
 }
 #endif
+if (!buffy  mx_is_maildir (LastDir))
+ mutt_expand_path (LastDir, sizeof (LastDir));
   }
 
   *f = 0;
--- mailbox.h   2002/07/04 12:30:59 1.1
+++ mailbox.h   2002/07/04 12:30:59
 -73,6 +73,7 
 #ifdef USE_POP
 int mx_is_pop (const char *);
 #endif
+int mx_is_maildir (const char *);
 
 int mx_access (const char*, int);
 int mx_check_empty (const char *);
--- mx.c2002/07/04 12:30:59 1.1
+++ mx.c2002/07/04 12:30:59
 -354,6 +354,14 
 }
 #endif
 
+int mx_is_maildir (const char *p)
+{
+  if (!p)
+return 0;
+
+  return (url_check_scheme (p) == U_MAILDIR);
+}
+
 int mx_get_magic (const char *path)
 {
   struct stat st;
--- url.c   2002/07/04 12:30:59 1.1
+++ url.c   2002/07/04 12:30:59
 -36,6 +36,7 
   { pop, U_POP  },
   { pops,U_POPS  },
   { mailto,  U_MAILTO },
+  { maildir, U_MAILDIR },
   { NULL,  U_UNKNOWN}
 };
 
--- url.h   2002/07/04 12:30:59 1.1
+++ url.h   2002/07/04 12:30:59
 -9,6 +9,7 
   U_IMAP,
   U_IMAPS,
   U_MAILTO,
+  U_MAILDIR,
   U_UNKNOWN
 }
 url_scheme_t;




displaying folder name in xterm title

2002-07-04 Thread Martin Man

hi mutters,

is there a way to change xterm's title according to the folder currently
opened in a mutt so that it updates correctly whenever the folder inside 
of mutt is changed?

probably some folder-hook magic that can execute shell commands and issue
appropriate echo with escape sequences and folder's name to change the title?

thanx,
martin
-- 
King of Swamp Castle: This is supposed to be a happy occasion.
  Let's not bicker and argue about who killed who.
-- Monty Python and the Holy Grail



msg29372/pgp0.pgp
Description: PGP signature


[PATCH] crude support for Maildir++ folders in mutt

2002-07-04 Thread Marc Boucher

Hi,

The patch below is a quick  dirty hack to make mutt handle Maildir++
(see http://www.inter7.com/courierimap/README.maildirquota.html).
folders and emulated sub-folders (with '.' as hierarchy separator).
It was generated against the latest mutt-1.5.x development (unstable)
CVS tree.

Here are my .muttrc settings to go with it:

set folder=maildir:/home/marc/Maildir:
set 
mask=!(^(tmp|cur|new|courierimapuiddb|courierimapsubscribed|procmail.log|\.\.ev-summary|\.\.)$)
set spoolfile=~/Maildir
set record=~/Maildir/.Sent

Again, this is a hack, not a proper solution. Use at your own risk.
I'm no mutt developer, just a user who was tired of waiting forever
for mutt to slowly load big folders through a courier-imap server running
over loopback. Now at least it can access them directly.

I've also applied Michael Elkins's Maildir header caching patch
(http://www.cs.hmc.edu/~me/mutt/patch-1.5.0.me.hcache.8) which
provides a good speed improvement too.

Improvements or a proper implementation are welcome. Please Cc: responses
to marc at mbsi.ca as I do not always monitor the lists.

Cheers
Marc

--- muttlib.c   2002/07/04 12:30:59 1.1
+++ muttlib.c   2002/07/04 12:52:28
 -477,6 +477,18 
 imap_expand_path (s, slen);
 #endif
 
+  if (mx_is_maildir (s)  Maildir) {
+ strcpy(tmp, strchr(s, ':') + 1);
+ if(t = strchr(tmp, ':')) {
+   *t = '/';
+   t++;
+   while(t = strchr(t, '/')) {
+   *t = '.';
+   }
+ }
+ strfcpy(s, tmp, strlen(tmp) + 1);
+  }
+
   return (s);
 }
 
--- browser.c   2002/07/04 12:30:59 1.1
+++ browser.c   2002/07/04 12:30:59
 -608,6 +614,8 
   imap_browse (LastDir, state);
 }
 #endif
+if (!buffy  mx_is_maildir (LastDir))
+ mutt_expand_path (LastDir, sizeof (LastDir));
   }
 
   *f = 0;
--- mailbox.h   2002/07/04 12:30:59 1.1
+++ mailbox.h   2002/07/04 12:30:59
 -73,6 +73,7 
 #ifdef USE_POP
 int mx_is_pop (const char *);
 #endif
+int mx_is_maildir (const char *);
 
 int mx_access (const char*, int);
 int mx_check_empty (const char *);
--- mx.c2002/07/04 12:30:59 1.1
+++ mx.c2002/07/04 12:30:59
 -354,6 +354,14 
 }
 #endif
 
+int mx_is_maildir (const char *p)
+{
+  if (!p)
+return 0;
+
+  return (url_check_scheme (p) == U_MAILDIR);
+}
+
 int mx_get_magic (const char *path)
 {
   struct stat st;
--- url.c   2002/07/04 12:30:59 1.1
+++ url.c   2002/07/04 12:30:59
 -36,6 +36,7 
   { pop, U_POP  },
   { pops,U_POPS  },
   { mailto,  U_MAILTO },
+  { maildir, U_MAILDIR },
   { NULL,  U_UNKNOWN}
 };
 
--- url.h   2002/07/04 12:30:59 1.1
+++ url.h   2002/07/04 12:30:59
 -9,6 +9,7 
   U_IMAP,
   U_IMAPS,
   U_MAILTO,
+  U_MAILDIR,
   U_UNKNOWN
 }
 url_scheme_t;



Re: displaying folder name in xterm title

2002-07-04 Thread Aragon Gouveia

Hi,

There must be a way. It should just be a matter of sending the right escape
sequence to the terminal. You can probably do this in the status_format.

I think the escape sequences are as follows:

\033]0;whatever you want in the title\007

There are also escape sequences for the window name and the icon name.
Probably \033]1; and \033]2; respectively. I'm not sure which is which. But
googling it should reveal something.


Regards,
Aragon



| By Martin Man [EMAIL PROTECTED]
|  [ 2002-07-04 15:38 +0200 ]
 hi mutters,
 
 is there a way to change xterm's title according to the folder currently
 opened in a mutt so that it updates correctly whenever the folder inside 
 of mutt is changed?
 
 probably some folder-hook magic that can execute shell commands and issue
 appropriate echo with escape sequences and folder's name to change the title?
 
 thanx,
 martin
 -- 
 King of Swamp Castle: This is supposed to be a happy occasion.
   Let's not bicker and argue about who killed who.
   -- Monty Python and the Holy Grail





Re: displaying folder name in xterm title

2002-07-04 Thread Thomas Dickey

On Thu, Jul 04, 2002 at 04:17:13PM +0200, Aragon Gouveia wrote:
 Hi,
 
 There must be a way. It should just be a matter of sending the right escape
 sequence to the terminal. You can probably do this in the status_format.

The question's come up a few times - I don't recall the answer, myself.
It has to be done outside the normal screen operations since those would
translate the escape sequence into readable form.
 
 I think the escape sequences are as follows:
 
 \033]0;whatever you want in the title\007
 
 There are also escape sequences for the window name and the icon name.
 Probably \033]1; and \033]2; respectively. I'm not sure which is which. But
 googling it should reveal something.

That's likely (they're documented in a number of places including of course
xterm).

-- 
Thomas E. Dickey [EMAIL PROTECTED]
http://invisible-island.net
ftp://invisible-island.net



Re: MUTT AND NNTP

2002-07-04 Thread Doug Lawlor

I have the vvv.nntp patched in here.  It's quite nice.  Thanks for the
documentation.  

Doug


-- 
Doug Lawlor [EMAIL PROTECTED]



Re: sort threads

2002-07-04 Thread Deb

* Nicolas Rachinsky [EMAIL PROTECTED] [2002-07-04 09:16:25 +0200]:

 Do you have any hooks which change $sort?
 What's the output of :set ?sort\n?

Ah, found it... I was sourcing a file that escaped me on the
first 2 go-throughs, and resetting sort to date-sent.

Whew!  Thanks for the help,

deb


-- 
If it dies, it's biology.  If it blows up, it's chemistry,
and if it doesn't work, it's physics.
-- University bathroom graffito
ô¿ô
 ~ 



Re: displaying folder name in xterm title

2002-07-04 Thread Dan Boger

On Thu, Jul 04, 2002 at 03:36:20PM +0200, Martin Man wrote:
 is there a way to change xterm's title according to the folder currently
 opened in a mutt so that it updates correctly whenever the folder inside 
 of mutt is changed?

yup - look at the xtitle patch, linked from the mutt.org patches page:

http://www.robots.ox.ac.uk/~neil/mutt/



-- 
Dan Boger
[EMAIL PROTECTED]



msg29378/pgp0.pgp
Description: PGP signature


Re: [PATCH] crude support for Maildir++ folders in mutt

2002-07-04 Thread Will Yardley

Marc Boucher wrote:
 
 The patch below is a quick  dirty hack to make mutt handle Maildir++
 (see http://www.inter7.com/courierimap/README.maildirquota.html).
 folders and emulated sub-folders (with '.' as hierarchy separator).
 It was generated against the latest mutt-1.5.x development (unstable)
 CVS tree.

what exactly didn't work about using mutt with Maildir++ before?  i've
never had a problem with it

-- 
Will Yardley
input: william   hq . newdream . net . 




Re: [PATCH] crude support for Maildir++ folders in mutt

2002-07-04 Thread Marc Boucher

On Thu, Jul 04, 2002 at 10:50:59AM -0700, Will Yardley wrote:
 Marc Boucher wrote:
  
  The patch below is a quick  dirty hack to make mutt handle Maildir++
  (see http://www.inter7.com/courierimap/README.maildirquota.html).
  folders and emulated sub-folders (with '.' as hierarchy separator).
  It was generated against the latest mutt-1.5.x development (unstable)
  CVS tree.
 
 what exactly didn't work about using mutt with Maildir++ before?  i've
 never had a problem with it

Try
mutt -f +Folder
or
mutt -f +Folder/Subfolder

to access

~/Maildir/.Folder
or
~/Maildir/.Folder.Subfolder

respectively.

Marc

 
 -- 
 Will Yardley
 input: william   hq . newdream . net . 
 



Re: [PATCH] crude support for Maildir++ folders in mutt

2002-07-04 Thread Will Yardley

Marc Boucher wrote:
 On Thu, Jul 04, 2002 at 10:50:59AM -0700, Will Yardley wrote:
  Marc Boucher wrote:

   The patch below is a quick  dirty hack to make mutt handle Maildir++
   (see http://www.inter7.com/courierimap/README.maildirquota.html).
   folders and emulated sub-folders (with '.' as hierarchy separator).
   It was generated against the latest mutt-1.5.x development (unstable)
   CVS tree.
  
  what exactly didn't work about using mutt with Maildir++ before?  i've
  never had a problem with it
 
 Try
   mutt -f +Folder
 or
   mutt -f +Folder/Subfolder
 
 to access
 
 ~/Maildir/.Folder
 or
 ~/Maildir/.Folder.Subfolder
 
 respectively.

yeah but you can do mutt -f .Folder
or
mutt -f .Folder.Subfolder...

i agree that a patch to enter folder names in the conventional way would
be nice just wasn't sure what your patch did.

does it also make the folders show up normally in the folder index?

-- 
Will Yardley
input: william   hq . newdream . net . 





Re: [PATCH] crude support for Maildir++ folders in mutt

2002-07-04 Thread Marc Boucher

On Thu, Jul 04, 2002 at 11:05:25AM -0700, Will Yardley wrote:
 Marc Boucher wrote:
  On Thu, Jul 04, 2002 at 10:50:59AM -0700, Will Yardley wrote:
   Marc Boucher wrote:
 
The patch below is a quick  dirty hack to make mutt handle Maildir++
(see http://www.inter7.com/courierimap/README.maildirquota.html).
folders and emulated sub-folders (with '.' as hierarchy separator).
It was generated against the latest mutt-1.5.x development (unstable)
CVS tree.
   
   what exactly didn't work about using mutt with Maildir++ before?  i've
   never had a problem with it
  
  Try
  mutt -f +Folder
  or
  mutt -f +Folder/Subfolder
  
  to access
  
  ~/Maildir/.Folder
  or
  ~/Maildir/.Folder.Subfolder
  
  respectively.
 
 yeah but you can do mutt -f .Folder
 or
 mutt -f .Folder.Subfolder...

yes, but it's not practical.

 i agree that a patch to enter folder names in the conventional way would
 be nice just wasn't sure what your patch did.
 
 does it also make the folders show up normally in the folder index?

not yet, however the updated version below does reverse translation in
mutt_pretty_mailbox()..

Marc

--- muttlib.c   2002/07/04 12:30:59 1.1
+++ muttlib.c   2002/07/04 18:07:54
 -477,6 +477,18 
 imap_expand_path (s, slen);
 #endif
 
+  if (mx_is_maildir (s)  Maildir) {
+  strcpy(tmp, strchr(s, ':') + 1);
+  if(t = strchr(tmp, ':')) {
+ *t = '/';
+ t++;
+ while(t = strchr(t, '/')) {
+ *t = '.';
+ }
+  }
+  strfcpy(s, tmp, strlen(tmp) + 1);
+  }
+
   return (s);
 }
 
 -737,6 +749,24 
   }
   *q = 0;
 
+  if(Maildir  url_check_scheme(Maildir) == U_MAILDIR) {
+  char *mp, *mpe;
+
+  mp = strchr(Maildir, ':') + 1;
+  mpe = strchr(mp, ':');
+  if(mpe) {
+ len = mpe - mp;
+ if(!mutt_strncmp(s, mp, len)  s[len] == '/'  s[len+1] == '.') {
+ *s++ = '=';
+ memmove (s, s + len + 1, mutt_strlen (s + len + 1) + 1);
+ mp = s;
+ while(mp = strchr(mp, '.')) {
+ *mp = '/';
+ }
+ }
+  }
+  }
+
   if (mutt_strncmp (s, Maildir, (len = mutt_strlen (Maildir))) == 0 
   s[len] == '/')
   {
--- mx.c2002/07/04 10:57:51 1.1
+++ mx.c2002/07/04 12:08:14
 -354,6 +354,14 
 }
 #endif
 
+int mx_is_maildir (const char *p)
+{
+  if (!p)
+return 0;
+
+  return (url_check_scheme (p) == U_MAILDIR);
+}
+
 int mx_get_magic (const char *path)
 {
   struct stat st;
--- url.c   2002/07/04 11:04:46 1.1
+++ url.c   2002/07/04 11:04:50
 -36,6 +36,7 
   { pop, U_POP  },
   { pops,U_POPS  },
   { mailto,  U_MAILTO },
+  { maildir, U_MAILDIR },
   { NULL,  U_UNKNOWN}
 };
 
--- url.h   2002/07/04 11:04:59 1.1
+++ url.h   2002/07/04 11:05:07
 -9,6 +9,7 
   U_IMAP,
   U_IMAPS,
   U_MAILTO,
+  U_MAILDIR,
   U_UNKNOWN
 }
 url_scheme_t;
--- browser.c   2002/07/04 11:42:43 1.1
+++ browser.c   2002/07/04 12:06:31
 -608,6 +614,8 
   imap_browse (LastDir, state);
 }
 #endif
+if (!buffy  mx_is_maildir (LastDir))
+ mutt_expand_path (LastDir, sizeof (LastDir));
   }
 
   *f = 0;
--- mailbox.h   2002/07/04 12:07:27 1.1
+++ mailbox.h   2002/07/04 12:07:37
 -73,6 +73,7 
 #ifdef USE_POP
 int mx_is_pop (const char *);
 #endif
+int mx_is_maildir (const char *);
 
 int mx_access (const char*, int);
 int mx_check_empty (const char *);



mutt error

2002-07-04 Thread Fisayo Adeleke

Hi all,

I'm probably the newest member here ... anyway, i got a problem! When i try 
to send mails using mutt, i get the following error messages

Error sending message, child exited 127 (Exec error.). 

How can i get around this and enable my mutt to send mails. It reads mails 
fine from my Maildir directory but it doesn't send. I use Exim for my mail 
server on Linux 7.1

thanks and kind regards,

-fiao



Re: mutt error

2002-07-04 Thread Lee J. Moore

On Thu, 04 Jul 2002, Fisayo Adeleke wrote:

 Hi all,
 
 I'm probably the newest member here ... anyway, i got a problem! When i try 
 to send mails using mutt, i get the following error messages
 
 Error sending message, child exited 127 (Exec error.). 

When you asked this the other day, I told you to investigate the
set sendmail option in muttrc and IIRC Andre Berger told you to
investigate the permissions of /usr/bin/mutt_dotlock.

If you missed those posts, read back and/or explain whether
these posts helped.

-- 
Lee J. Moore
[EMAIL PROTECTED]

Benefit the community and reply to the list



msg29384/pgp0.pgp
Description: PGP signature


Re: sort threads

2002-07-04 Thread Raoul Bönisch

On Thu, Jul 04, 2002 at 06:15:38AM +0200, Oliver Fuchs wrote:
 On Wed, 03 Jul 2002, Deb wrote:
 
  But when I use mutt to read email, messages are not sorted by threads by
  default. I have to go to options (o) and then sort by threads (t), which
  then gives me the display that I want.
 
 Hi,
 try 
 
 set sort=subject
 set sort=threads  # sorting the mails in threads
 set sort_aux=date # sorting the threads
 
 ... that works for me

The setting set sort=subject should have no effect because it is
overwritten by set sort=threads. Or am I wrong here?

Raoul