Re: yes/no nls

1999-09-23 Thread Edmund GRIMLEY EVANS

Alex Kapranoff:

 I just wanted to ask if $subject annoys someone else. I'm a recent user
 of 1.0pre2 and it has a bug fixed with a side-effect: I can't use 'y' and
 'n' answering yes-or-no questions - only russian chars work. Previous
 version let me use both cyrillic and latin chars.
 I explored both 0.95 and 1.0 sources and came to the list to suggest giving
 up nlsing yes-or-no questions. If we use english chars throughout the mutt's
 interface ('c' to open mbox, 'm' to mail etc.) why should we change this
 convention for a single piece of user-to-mutt dialog?
 
 I have some ideas ready... But maybe you have some reasonable
 arguments against it? If not I'll go to mutt-dev.

I don't have an opinion, and I don't speak Russion, but I'd be
interested to hear the arguments.

Presumably with a Russian keyboard it is easier to type a Russian
character than an English/Latin/ASCII one. Is it therefore not
inconvenient to have the interface using English/Latin/ASCII chars
throughout?

Edmund



Mutt mailing list

1999-09-23 Thread Marco Giardini

I'm quite new to mutt and I've a small problem. I do not know how to
create an alias for different e.mails.
Suppose I want to create an alias (i.e. friends) in order to mail
simultaniously differents friends.
This is possible with pine but i have no idea on how to manage it with
mutt.
Any help will be apreciated.

Thanks

Marco
-- 
--
+-+-+-+-+-+ +-+-+-+-+-+-+-+-+
|m|a|r|c|o| |g|i|a|r|d|i|n|i|
+-+-+-+-+-+ +-+-+-+-+-+-+-+-+
TecnoGi spa
http://www.tecnogi.com
Key fingerprint = A1 51 D2 26 96 02 20 B9  78 B9 04 87 53 10 65 7C



Re: reply-to-all?

1999-09-23 Thread David DeSimone

Jeremy Blosser [EMAIL PROTECTED] wrote:

 Hrm...  didn't TLR introduce the concept of subscribed and
 unsubscribed lists in unstable?

You are correct, sir.  That seems to have done the trick.  I don't think
I would have noticed if you hadn't pointed it out.  :)

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer |PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



Line wrapping with vi

1999-09-23 Thread Anders Andersson

Hi!

I missed the earlier thread about this but here goes:

I use nvi on a system where it is not possible to install vim.

Before with vim I used 'set editor="vim +/^$/ -c 'set tw=72 et'"'

but not I read in the about using :

set editor="vi -c 'set wrapmargin=14'" with nvi, and this works
great, but I really miss the "+/^$/ part, now when I start mutt
with vi cursur is at the bottom of the mail. With vim I got right
below the headers.

Any ideas how to get this with nvi?

Best regards,

Anders
-- 
Anders Andersson[EMAIL PROTECTED]
Sanyusan International AB   http://www.sanyusan.se/



Re: Mutt mailing list

1999-09-23 Thread Dirk Huebner

On Thu, 23 Sep 1999, Marco Giardini wrote:

 I'm quite new to mutt and I've a small problem. I do not know how to
 create an alias for different e.mails.
 Suppose I want to create an alias (i.e. friends) in order to mail
 simultaniously differents friends.
 This is possible with pine but i have no idea on how to manage it with
 mutt.
 Any help will be apreciated.

Hi,

you have to separate the adresses by ",". For example
-- alias group me, chris, peter
(if me, chris, peter are aliases as well, otherwise use complete
adresses).

See section 3.2 in the manual.

Greetings
Dirk



Re: wrapping in the viewer

1999-09-23 Thread Ralf Hildebrandt

On Thu, Sep 23, 1999 at 02:23:31PM +0200, Eric Smith wrote:

 How do I change the setting of the textwidth in the viewer?
 So when I am viewing a mail message I wish to have longerr lines.

Make the window wider.

-- 
Ralf Hildebrandt [EMAIL PROTECTED] www.stahl.bau.tu-bs.de/~hildeb
He who can smile in the face of adversity 
has found somebody else to blame it on.


 PGP signature


save-hook

1999-09-23 Thread Martin Keseg - Sun Slovakia - SE

hi,

I have setup for one specific save-hook in my muttrc:
 folder-hook +work set 'sort=date-received'
 folder-hook +work 'bind index d save-message'
 folder-hook +work 'save-hook .* =work-done'

and

 folder-hook . 'bind index d delete-message'
 folder-hook . set 'sort=threads'
 folder-hook "!" 'bind index d delete-message'



it works o.k for folder =work but when I switch to another folder, save-hook is
still defined and after pressing d default save option is =work-done.
I know I need to define something like this:

 folder-hook . 'save-hook .* default'

but this does not work, so I don't know how to give back save-hook.


-- 
Keso
  be smart,
   don't be retard!



Re: Columns in folder list

1999-09-23 Thread Jimmy Mäkelä

On Wed, Sep 22, 1999 at 12:29:48PM +0100, Chris Green wrote:
 On Wed, Sep 22, 1999 at 12:00:10PM +0100, Chris Green wrote:
  Aha, thanks, a great improvement!
  
 But it's still only a single column so doesn't really help all that
 much, I still can't see more than 20 or so folder names on a screen.

That's true, but since the menu code in Mutt wasn't made for more than
one column it would be pretty much work involved in making that work.

If you _really_ wan't it, then go on and code it. You would propably get
multiple columns in all the menus at the same time.

Jimmy - [EMAIL PROTECTED]



Emacs mutt mode?

1999-09-23 Thread David Shaw

Hi all,

I remember once-upon-a-time there was some discussion about an emacs
"mutt mode".  I've looked around on the web and found one that seems
to work via emacsclient, but what I am really looking for is one that
pops up a new frame to compose in rather than use my other emacs
window.

Any ideas?

David

-- 
   David Shaw  |  [EMAIL PROTECTED]  |  WWW http://www.jabberwocky.com/
+---+
   "There are two major products that come out of Berkeley: LSD and UNIX.
  We don't believe this to be a coincidence." - Jeremy S. Anderson



No Subject

1999-09-23 Thread tuffery

Hi, 

We are experiencing some problems on two different systems with mutt:

On alpha/linux, mailboxes remain read-only even if mutt_dotlock is setgid.
(/var/spool/mail comes from another machine via NFS if it is of any importance)

On SGI/Irix 6.5.2, root can send messages, but other users cannot.
We obtain the message:
Error sending message: child exited 69 (service unavailable).

Any hints appreciated !!

Thanks to reply to :
[EMAIL PROTECTED]



Re: wrapping in the viewer

1999-09-23 Thread Jeremy Blosser

Eric Smith [[EMAIL PROTECTED]] wrote:
 How do I change the setting of the textwidth in the viewer?
 So when I am viewing a mail message I wish to have longerr lines.

If the text arrives wrapped (as it probably is), you can't reformat it with
the internal pager.  You could possibly use an external pager to do this.

-- 
Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
-+-+--
"If Microsoft can change and compete on quality, I've won." -- L. Torvalds

 PGP signature


Re: Emacs mutt mode?

1999-09-23 Thread Thomas Wolmer HG/EHS/OM/DE

[Message restructured]
Once upon a time Stasinos Konstantopoulos [EMAIL PROTECTED] told us:
 Op do. 23 sep 1999 12:36:19 zei David Shaw:
  I remember once-upon-a-time there was some discussion about an emacs
  "mutt mode".  I've looked around on the web and found one that seems
  to work via emacsclient, but what I am really looking for is one that
  pops up a new frame to compose in rather than use my other emacs
  window.

 Sounds like you want to use gnuclient rather than emacsclient.

But if it was the same "mutt mode" that I once tried (post.el?), it
does not work very well with gnuclient. Or even not at all...

-- 
Thomas Wolmer   | Mail at work: [EMAIL PROTECTED]
HG/EHS/OM/DE| ECN Web:  http://vksun25.ericsson.se:8001/~ehswolm/
These opinions may  | Other mail:   [EMAIL PROTECTED]
deviate from EHPT's | WWW:  http://www.student.nada.kth.se/~d90-two/



Re: wrapping in the viewer

1999-09-23 Thread Mikko Hänninen

Jeremy Blosser [EMAIL PROTECTED] wrote on Thu, 23 Sep 1999:
 If the text arrives wrapped (as it probably is), you can't reformat it with
 the internal pager.  You could possibly use an external pager to do this.

What about wrapping long lines *shorter* than the current window width?
I prefer to use a 116 characters wide xterm for mutt -- it makes
browsing message indexes easier, you can see more of long subject lines,
and so on.  However for the actual message texts I'd prefer something
like 80 chars per line formatting, for those long lines.

I tried to look at the code but a cursory glance didn't give me insight
how to write a patch for this... :-(


Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
Bumper sticker: No radio - Already stolen.



Re: yes/no nls

1999-09-23 Thread Alex Kapranoff

On Thu, Sep 23, 1999 at 09:11:17AM +0100, Edmund GRIMLEY EVANS wrote:
 Alex Kapranoff:
 
 I don't have an opinion, and I don't speak Russion, but I'd be
 interested to hear the arguments.
 
 Presumably with a Russian keyboard it is easier to type a Russian
 character than an English/Latin/ASCII one. Is it therefore not

  We have two letters a key - latin and cyrillic. And we have a switch key
(I use Caps Lock - FreeBSD default). I change to Russian only writing
letters to pals - all programming, config editing and mailling lists are
just plain good old English. I like mutt giving me messages in Russian, but
it's more comfortable to speak English to him. English is a winner nowadays,
isn't it?

 inconvenient to have the interface using English/Latin/ASCII chars
 throughout?

  Russian charset koi8-r fits nicely into 256 ASCII table. But to answer
mutt's question about saving a letter in a mbox I have to toggle Caps, press
Russian 'd' for 'da' which is 'yes' and then switch to Latin again ;-((

  In fact I don't know how things are for different national keyboard
traditions so I enetered the list for a discussion.

-- 
Alex Kapranoff,
Voice: +7(0832)791845,   ---  óÍÅÎÉÌÓÑ ÔÅÌÅÆÏÎ 



procmail an IMAP inbox

1999-09-23 Thread Robert Chien

Hi,

How do I run an IMAP inbox through procmail? What I want to do is:

1. mark delete all duplicate messages
2. filter my mail into folders (less important)

According to FAQ on www.procmail.org, I could run an existing mailbox
file through a procmail recipe with:

formail -s procmail experiments.rc  test.mbox

So I tried saving a message TWICE from IMAP inbox to $HOME/mail/folder,
and run this in mutt:

| formail -s procmail .procmailrc

But it didn't change anything. Here's my .procmailrc

--- begin

PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=$HOME/mail
LOGFILE=$MAILDIR/.procmail/maillog
# Keep backups of the last 32 messages in mail/backup directory
:0 c
.procmail/backup
:0 ic
| cd .procmail/backup  rm -f dummy `ls -t msg.* | sed -e 1,32d`
# Filter out duplicate messages from mailing lists.
:0 Wh: .procmail/msgid.lock
| formail -D 8192 .procmail/msgid.cache

--- end

Thanks,
Robert



Re: yes/no nls

1999-09-23 Thread Marius Gedminas

On Thu, Sep 23, 1999 at 08:43:24PM +0400, Alex Kapranoff wrote:
  Russian charset koi8-r fits nicely into 256 ASCII table. But to answer
mutt's question about saving a letter in a mbox I have to toggle Caps, press
Russian 'd' for 'da' which is 'yes' and then switch to Latin again ;-((

  In fact I don't know how things are for different national keyboard
traditions so I enetered the list for a discussion.

I'd suggest instead of setting LANG= or LC_ALL=, just select the
variables you really want (eg LC_COLLATE, LC_CTYPE, maybe LC_MONETARY,
LC_NUMERIC, and LC_TIME).  This would also work for other locale-aware
programs that ask yes/no questions.

Best Regards,
Marius Gedminas
-- 
Never trust an operating system you don't have sources for.



Re: How to move IMAP folders?

1999-09-23 Thread Brendan Cully

On Wednesday, 22 September 1999 at 12:28, Chris Green wrote:
 Is it possible to move IMAP4 folders using mutt?  This is a
 fundamental need with any MUA using IMAP4 as the MUA may be the only
 way one has of interacting with the server.

What do you mean move? Rename? you can tag all messages and copy them to
another mailbox. In the latest CVS this is quite fast, but in 96.6 it
requires a download and upload of each message. There is no command to
delete mailboxes yet.

-- 
Brendan Cully [EMAIL PROTECTED] | OLD SKOOL ROOLZ
"I hope I don't win|  .-_|\ 
 The rules say to bring a friend   | / \
 I don't have any" | Perth -*.--._/



Mutt

1999-09-23 Thread Tony Mann



I've download a copy of mutt-1.0pre2.tar.gz, I have used gzip 
and decompressed the drive, copied the remaining tar file to VOL.000.000 on my 
SCO Open Server 5 box, but custom says it's unable to install Mutt. Can 
anyone email me the procedure to install Mutt on a SCO Open Server 5 system and 
get it up and going, I can install mutt-0.93.2 on my system, but when I try to 
launch mutt I get errors about a libcurses file that does not 
exist.

Thanks

Tony


[stable,unstable] buffer overflow in the text/enriched handler

1999-09-23 Thread Thomas Roessler

The attached patch fixes a buffer overflow in mutt's text/enriched
handler.  Additionally, a second problem which may lead to unlimited
growth of the buffer in question is fixed.

Thanks to Andreas Kirchwitz for noting that there was a problem.



Index: handler.c
===
RCS file: /home/roessler/cvsroot/mutt/handler.c,v
retrieving revision 2.1.4.6
retrieving revision 2.1.4.7
diff -u -r2.1.4.6 -r2.1.4.7
--- handler.c   1999/06/08 09:42:14 2.1.4.6
+++ handler.c   1999/09/23 20:34:01 2.1.4.7
@@ -403,6 +403,7 @@
   size_t indent_len;
   size_t word_len;
   size_t buff_used;
+  size_t param_used;
   size_t param_len;
   int tag_level[RICH_LAST_TAG];
   int WrapMargin;
@@ -551,7 +552,10 @@
   {
 if (stte-tag_level[RICH_COLOR]) 
 {
-  stte-param[stte-param_len++] = c;
+  if (stte-param_used + 1 = stte-param_len)
+   safe_realloc ((void **) stte-param, (stte-param_len += STRING));
+
+  stte-param[stte-param_used++] = c;
 }
 return; /* nothing to do */
   }
@@ -652,7 +656,7 @@
stte-tag_level[j]--;
   if ((stte-s-flags  M_DISPLAY)  j == RICH_PARAM  
stte-tag_level[RICH_COLOR])
   {
-   stte-param[stte-param_len] = '\0';
+   stte-param[stte-param_used] = '\0';
if (!mutt_strcasecmp(stte-param, "black"))
{
  enriched_puts("\033[30m", stte);
@@ -685,13 +689,18 @@
{
  enriched_puts("\033[37m", stte);
}
-   stte-param_len = 0;
-   stte-param[0] = '\0';
   }
   if ((stte-s-flags  M_DISPLAY)  j == RICH_COLOR)
   {
enriched_puts("\033[0m", stte);
   }
+
+  /* flush parameter buffer when closing the tag */
+  if (j == RICH_PARAM)
+  {
+   stte-param_used = 0;
+   stte-param[0] = '\0';
+  }
 }
 else
   stte-tag_level[j]++;
@@ -719,6 +728,9 @@
   stte.line_max = stte.WrapMargin * 4;
   stte.line = (char *) safe_calloc (1, stte.line_max + 1);
   stte.param = (char *) safe_calloc (1, STRING);
+
+  stte.param_len = STRING;
+  stte.param_used = 0;
 
   if (s-prefix)
   {

 PGP signature


Re: yes/no nls

1999-09-23 Thread J Horacio MG

On Thu, Sep 23, 1999 at 09:36:41PM +0200, Marius Gedminas said:
 On Thu, Sep 23, 1999 at 08:43:24PM +0400, Alex Kapranoff wrote:
   Russian charset koi8-r fits nicely into 256 ASCII table. But to answer
 mutt's question about saving a letter in a mbox I have to toggle Caps, press
 Russian 'd' for 'da' which is 'yes' and then switch to Latin again ;-((
 
   In fact I don't know how things are for different national keyboard
 traditions so I enetered the list for a discussion.
 
 I'd suggest instead of setting LANG= or LC_ALL=, just select the
 variables you really want (eg LC_COLLATE, LC_CTYPE, maybe LC_MONETARY,
 LC_NUMERIC, and LC_TIME).  This would also work for other locale-aware
 programs that ask yes/no questions.

Wouldn't it work if he had, say, a login shell configured with the
language variables for English, and then the interactive shell lang
variables for Russian?


Regards,

-- 
Horacio LC_mutt=es_ES
mailto:[EMAIL PROTECTED]http://carlotha.ciberia.es/mutt/
~ Spain ~ Spanje ~ Spanien



Re: yes/no nls

1999-09-23 Thread Alex Kapranoff

On Fri, Sep 24, 1999 at 12:05:55AM +0200, J Horacio MG wrote:
  I'd suggest instead of setting LANG= or LC_ALL=, just select the
  variables you really want (eg LC_COLLATE, LC_CTYPE, maybe LC_MONETARY,
  LC_NUMERIC, and LC_TIME).  This would also work for other locale-aware
  programs that ask yes/no questions.
 
 Wouldn't it work if he had, say, a login shell configured with the
 language variables for English, and then the interactive shell lang
 variables for Russian?
 

  I like my locale, really! If a program has something to tell me in Russian
I vote for it - cause few do. I just don't like localization done by people
who don't use it and don't realize all the features and misfeatures. 
  E.g. when I switch layouts in Windows, MS Word change ALL the shortcuts in
ALL the menus ;-)) That's not really what users want - so all my buddies
prefer to avoid using shortcuts there.

-- 
Alex Kapranoff,
Voice: +7(0832)791845,   ---  óÍÅÎÉÌÓÑ ÔÅÌÅÆÏÎ 



Re: yes/no nls

1999-09-23 Thread Alex Kapranoff

On Thu, Sep 23, 1999 at 09:36:41PM +0200, Marius Gedminas wrote:
 I'd suggest instead of setting LANG= or LC_ALL=, just select the
 variables you really want (eg LC_COLLATE, LC_CTYPE, maybe LC_MONETARY,
 LC_NUMERIC, and LC_TIME).  This would also work for other locale-aware
 programs that ask yes/no questions.

  But that will also make them speak English to me ;) I don't like it. The
original problem is not in the fact I hate Russian - that's my native,
folks! It is in inconsistency - why we nls yes-or-no questions and don't all
other user input? Do national-kbd-users throughout the world prefer this
way? I can imagine that most european languages that use only several
non-English chars are easy here, but what for the others? I don't have a
single letter shared between latin and cyrillic layouts ;-)

  Why not just add a definable feature with default to current behaviour?
Say, NLS_YES_OR_NO?

 
 Best Regards,
 Marius Gedminas
 -- 
 Never trust an operating system you don't have sources for.

-- 
Alex Kapranoff,
Voice: +7(0832)791845,   ---  óÍÅÎÉÌÓÑ ÔÅÌÅÆÏÎ