Re: vim / ispell

2001-09-10 Thread Eric Smith

According to Will Yardley on Thu, Sep 06, 2001 at 02:09:55AM -0700:
| so this is a bit off topic, but does anyone have a simple set of vim
| macros to interface with ispell (or an easy way to spellcheck a file
| after editing without leaving mutt)?  i'm usually a decent speller but
| it is annoying not to be able to check a particular word or paragraph.
| 

My way.


 macro compose return :set ispell=newsbody-ispell\nispellsend-message 

---
#!/bin/bash
## /usr/home/eric/bin/newsbody-ispell
newsbody -k from -k subject -hs -q -n $2 -p ispell -- -x %f
--

The above omits headers (except subject - at least I hope it checks
spelling on my subjects).

So when I wish to send the mail form the compose window without
checking spelling, I press the default `y', otherwise I hit enter
and usually save embarrassment.

Only ugliness is, once you are in spell check you have to kill the
mutt process if you wish to abort the sending of the mail.


Sometimes in vim you want to do a spell check interactively, I go

nmap =s :!ispell -S %cr:e %cr

next challenge, is to have the spell check and the auto-sending of
mail automatically executed when I quit vim - tricky.

Hope this helps

--
Eric Smith



Re: mutt and imap help

2001-09-10 Thread matteo . vaccari

Quoting Suresh Ramasubramanian [EMAIL PROTECTED]:

 '[EMAIL PROTECTED]' mutt [05/09/01 11:28 -0400]:
  On Wednesday, 05 September 2001 at 17:04, Matteo Vaccari wrote:
   I have no problems accessing my provider's IMAP server through Mutt.
  What
   I'd like is for Mutt to use my provider's SMTP server as well,
 instead of
   using sendmail on localhost.  Is there something I have overlooked? 
 I know
 
 http://www.hserus.net/pop_smtp.html (for sendmail, exim and postfix)
 

Thanks!  It now works... almost.  I had to add the following lines to
sendmail.mc

FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl

to set properly the From: field in my outgoing mail.  (of course I set up the 
two files /etc/mail/genericstable with 
  matteo [EMAIL PROTECTED]
and /etc/mail/generics-domain with
  pumpkin.it
)

Now it works, except that it refuses to send mail to anybody in the pumpkin.it
domain...  e.g. 

$ echo ciao | /usr/sbin/sendmail -v[EMAIL PROTECTED]
[EMAIL PROTECTED] User unknown
/home/matteo/dead.letter... Saved message in /home/matteo/dead.letter



Re: mutt finding mailboxes problem

2001-09-10 Thread Ailbhe Leamy

On (10/09/01 00:27), Cliff Sarginson wrote:

 On Sun, Sep 09, 2001 at 11:06:24PM +0100, Ailbhe Leamy wrote:
  On (09/09/01 19:19), Cliff Sarginson wrote:

  set folder=~/Mail

 Does not make any difference..

 typing =folder

Hmm. In your mailboxes command, does the file
/home/cliff/Mail/important
appear as
mailboxes =important
?

Ailbhe



Re: thread sorting option

2001-09-10 Thread David T-G

Ed --

...and then Edward Peschko said...
% hey, 

Hi!


% 
% I was wondering if mutt was flexible enough to do the following:

With mutt you get flexibility like you never imagined :-)


% 
%   I want to sort by thread, but I want the newest threads listed first
% (as #1 == newest #2 == second newest, etc). However, inside the thread, I want
% it reverse ordered - so it looks like this:
% 
%   1 thread one (dated Jun 1)
%   2 reply to thread one (dated Jun 2)
%   3) reply to thread one (dated Jun 3)
%   3) reply to thread one (dated Jun 4)
%   3) reply to thread one (dated Jun 5)
% 
%   1 thread two (dated Jun 2)
%   2 reply to thread two (dated Jun 2)
%   3) reply to thread two (dated Jun 3)
% 
% 
% In other words, I want to see the newest threads, and be able to page through 
% them in *order* (as per nn).

I left all of this in because I'm not sure I get your meaning.  You ask
to have the newest thread first, and I assume 'first' means 'at the top',
but your example thread dated Jun 2 is below your example dated Jun 1.

Anyway, you might be able to set sort=threads and sort-aux=reverse-threads
with some good results.  I haven't tried it...


% 
% In addition, I'd like the ability to collapse threads, the ability to have 

That's easy; just hit esc-v to collapse/uncollapse the current thread (or
esc-V for the whole mailbox).


% a thread 'tagged' if it has new stuff in it, and the ability to start off 

Given the default index_format, your display will change from something
like

  ...
 8024 N   Sep 06 Will Yardley(  61) [[EMAIL PROTECTED]: ico
  - 8025 Sep 06 Dave Spracklen  (  11) Color
 8026 Sep 06 Ken Weingold(  20) `-
 8027 Sep 06 Tim Whitehead   (  51)   `-
 8028 Sep 06 Denis Perelyubs (  31) `-
 8029 Sep 06 Tim Whitehead   (  59)   `-
 8030 Sep 06 Denis Perelyubs (  43) `-
 8031 Sep 06 Will Yardley(  23)   |-
 8032 Sep 06 Thomas Dickey   (  23)   | `-
 8033 Sep 06 David Champion  (  30)   |-
 8034 Sep 06 Denis Perelyubs (  25)   | |-
 8035 Sep 06 Thomas Dickey   (  21)   | `-
 8036 N   Sep 06 David Champion  (  38)   |   `-
 8037 N   Sep 06 Thomas Dickey   (  41)   | `-
 8038 N   Sep 06 David Champion  (  18)   |   `-
 8039 N   Sep 06 Thomas Dickey   (  26)   | `-
 8040 Sep 06 Tim Whitehead   (  67)   `-
 8041 N   Sep 06 Denis Perelyubs (  90) `-
 8042 Sep 06 Louis LeBlanc   (  38) Wierd mbox/IMAP behavior
 8043 Sep 06 Brendan Cully   (  58) `-
 8044 Sep 06 Louis LeBlanc   (  56)   `-
  ...

to
  ...
 8024 N   Sep 06 Will Yardley(  61) [[EMAIL PROTECTED]: ico
  - 8025 n   Sep 06 Dave Spracklen  #017 Color
 8042 Sep 06 Louis LeBlanc   #003 Wierd mbox/IMAP behavior
  ...

Note the line count changing to the number of messages in the thread, and
note the little 'n' instead of the single-message 'N' to indicate new
mail in the thread.


% where I was done reading a thread if it *does* get new stuff in it. And I'd

That's easy, too.  Given the above, if those new messages show up and
you simply hit return on the collapsed head, you'll jump straight to the
first new message in the thread, and your display will look something like

  -*-Mutt: =F.mutt [Msgs:8074 New:5959 Post:5 Inc:14 
24M]---(threads/date)-(99%)
 8035 Sep 06 Thomas Dickey   (  21)   | `-Re: Color
  - 8036 N   Sep 06 David Champion  (  38)   |   `-
 8037 N   Sep 06 Thomas Dickey   (  41)   | `-
  -N  - 8036/8074: David Champion Re: Color -- 
(91%)
  Date: Thu, 6 Sep 2001 18:07:20 -0500
  From: David Champion [EMAIL PROTECTED]
  ...


% like the ability for the starting of the thread to show up in the thread proper,
% not as part of a separate thread (ie: subject and Re: subject are in the
% same thread, not other threads.

You can handle that with $reply_regexp to define all of the ways something
could be recognized as a reply.  I have mine set as

  reply_regexp=^(re:|fw:|update:|summary:|summary)[ .]*

(from the days of another list where problem summaries would be sent as
followups once the answers came in).  See the manual for more.


% 
% HOw much of this can mutt do? If it can do this stuff, could someone point me
% to some docs on how to configure mutt properly to do this? (I looked through the
% sample .muttrcs, without luck)

Try the mutt manual itself (though the muttrc files you can find
linked from the web site show some really cool tricks and ideas).
If you have mutt installed and haven't mucked with it, simply hitting
F1 ought to take you to it.  It's usually installed somewhere like
/usr/local/doc/mutt/manual.doc or so.

I see that you're using mutt 1.0.1, so the man 

limiting by number of lines

2001-09-10 Thread David T-G

Hi, all --

With mutt-1.2.5 (or -1.3.22.1), can one limit by the number of lines in a
message?  I have a folder with messages from all over and I can easily
limit the display to only a given subject, but the 10-line messages are
just acks and so I'd like to also exclude them from the display -- but I
don't want to sort by size because I'd like to see them in date order.


TIA  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


 PGP signature


Re: limiting by number of lines

2001-09-10 Thread Dan Boger

On Mon, Sep 10, 2001 at 09:38:44AM -0400, David T-G wrote:
 With mutt-1.2.5 (or -1.3.22.1), can one limit by the number of lines in a
 message?  I have a folder with messages from all over and I can easily
 limit the display to only a given subject, but the 10-line messages are
 just acks and so I'd like to also exclude them from the display -- but I
 don't want to sort by size because I'd like to see them in date order.

wouldn't this work?  

~s subject ~z 1k

guessing that a 10 line message will be less than 1k in size...?

-- 
Dan Boger
Linux MVP
brainbench.com


 PGP signature


Re: limiting by number of lines

2001-09-10 Thread David T-G

Dan, et al --

...and then Dan Boger said...
% On Mon, Sep 10, 2001 at 09:38:44AM -0400, David T-G wrote:
%  With mutt-1.2.5 (or -1.3.22.1), can one limit by the number of lines in a
...
% 
% wouldn't this work?  
% 
% ~s subject ~z 1k

Hmmm...  I suppose so; I was thinking in terms of lines, as in the index
display, but size would work, too.


% 
% guessing that a 10 line message will be less than 1k in size...?

It will take some tweaking, since all of the acks are 10 lines long and
none of the good messages are less, but some of the good messages are
only 13 or 15 lines long (while others are easy at 220 lines)...


% 
% -- 
% Dan Boger
% Linux MVP
% brainbench.com
% 

Thanks!


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


 PGP signature


Re: unmapped keys

2001-09-10 Thread Steve

On Mon, Sep 10, 2001 at 08:44:01AM -0400, David T-G wrote:
 Steve --
 
 ...and then Steve said...
 % I'm having a problem finding the relevant entry or `how to' in the
 % manual on doing the following:
 % 
 % mapping check-mail.
 
 Hmmm...  I'm not exactly sure what you mean, since I can't find a
 check-mail function anywhere.  I see that you're using 1.3.21, so you
 probably don't even mean check-new, which was in 1.2 but isn't in 1.3
 (or so it seems to me, but I haven't followed the 1.3 tree much at all).
 
 Can you give us more detail or rephrase the question?

Sure in my pager, at the bottom is a listing showing unmapped funtions -
check-mail is one of them.

 % 
 % I've found how to alter an already mapped entry, but not how to ceate
 % one. Suggestions?
 
 If you mean creating a new function, then you need to whip out your
 editor and compiler :-)
 
 You can bind any function to any key, be either already bound or not,
 with a simple :bind command (or in your muttrc file).

Ok I tried to do this from within mutt, as the manual says one can do to
*re-map*, so logically I figured one could *map* unmapped keys as well.

Well I would think a command to check for new mail, would be basic. Am I
missing something here? For some reason with my configuration, I have to
do an operation before mutt tells me there is new mail, it doesn't tell
me if I leave it sitting static. So when looking through the pager to
see what the key command would be to check for new mail, I see that at  
it's unmapped - but mentioned specifically. Surely one can map this
command from within mutt similar to remapping?

I guess I'm overlooking something obvious - just can't see the forest
for the trees at this point? g



-- 
Steve - Toronto ICQ 35454764
  
  /~\
'If you're not a rebel when you're 20 you've got no heart; if \ /
 you're not establishment when you're 30 you've got no brain.  X
 Join the ASCII ribbon campaign against HTML email/ \




Re: limiting by number of lines

2001-09-10 Thread Dan Boger

On Mon, Sep 10, 2001 at 10:07:34AM -0400, David T-G wrote:
 % guessing that a 10 line message will be less than 1k in size...?
 
 It will take some tweaking, since all of the acks are 10 lines long and
 none of the good messages are less, but some of the good messages are
 only 13 or 15 lines long (while others are easy at 220 lines)...

of course, you could always try to hack it...  maybe score messages with
the output of `wc -l` - assuming you don't use scoring for something
else...

:)

-- 
Dan Boger
Linux MVP
brainbench.com


 PGP signature


Problem with dispalying correct file name and extension in some e-mails

2001-09-10 Thread Mishra, Dipankar

Hi,
  I am facing a problem with the mail attachment sent using mutt.
The file name and the extension gets changed in the recievers mail id.
Please suggest what changes are to be done in the configuration file.

Regards
Dipankar Mishra





Re: limiting by number of lines

2001-09-10 Thread David T-G

Dan --

...and then Dan Boger said...
% 
% of course, you could always try to hack it...  maybe score messages with
% the output of `wc -l` - assuming you don't use scoring for something
% else...

I was thinking of scoring but still thinking of lines; I think that size
will do quite nicely.

Perhaps if I used scoring I'd have had more ideas.  Then, again, I might
not have it available for this :-)


% 
% :)
% 
% -- 
% Dan Boger
% Linux MVP
% brainbench.com
% 


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


 PGP signature


Re: Problem with dispalying correct file name and extension in some e -mails

2001-09-10 Thread Suresh Ramasubramanian

Mishra, Dipankar mutt [10/09/01 16:27 +0200]:
 I am facing a problem with the mail attachment sent using mutt.
 The file name and the extension gets changed in the recievers mail id.
 Please suggest what changes are to be done in the configuration file.

This should not be happening - and mutt doesn't monkey with extensions /
attachment file names.  What is the other client using?  Some rubbish like
Outlook or Lotus Notes?

-suresh



Re: limiting by number of lines

2001-09-10 Thread Denis Perelyubskiy

David, 
 
 * David T-G [EMAIL PROTECTED] [09-Mon-01 06:41 -0700]:
 
 With mutt-1.2.5 (or -1.3.22.1), can one limit by the
 number of lines in a message?  I have a folder with
 messages from all over and I can easily limit the display
 to only a given subject, but the 10-line messages are just
 acks and so I'd like to also exclude them from the display
 -- but I don't want to sort by size because I'd like to
 see them in date order.

do you have access to procmail? would not this be a job for
procmail, or am i misunderstanding? you could simply filter
all those messages into separate folder, and then go look at
them once in a while to see if something of interest got
through.

while i dont remember (i am a procmail neophyte for the most
part) how to base rules on # of lines, but worst come to worst
you could either pipe into 'wc -l', or write a script if you
want to skip headers when counting lines (which would
perhaps be more reliable)

anyway, just an idea

denis

-- 
// mailto: Denis Perelyubskiy [EMAIL PROTECTED]
// icq   : 12359698
// PGP   : http://www.cs.ucla.edu/~denisp/files/pgp.asc



Re: limiting by number of lines

2001-09-10 Thread David T-G

Denis --

...and then Denis Perelyubskiy said...
% David, 

Hello!


%  
%  * David T-G [EMAIL PROTECTED] [09-Mon-01 06:41 -0700]:
%  
%  With mutt-1.2.5 (or -1.3.22.1), can one limit by the
%  number of lines in a message?  I have a folder with
...
% 
% do you have access to procmail? would not this be a job for

I sure do; you should see my directory of include files :-)


% procmail, or am i misunderstanding? you could simply filter
% all those messages into separate folder, and then go look at
% them once in a while to see if something of interest got
% through.

Well, yeah, but I'm already filtering these and other such messages into
a folder, and I want to keep the 10-line messages to note when nothing
came (an error).


% 
% while i dont remember (i am a procmail neophyte for the most
% part) how to base rules on # of lines, but worst come to worst
% you could either pipe into 'wc -l', or write a script if you
% want to skip headers when counting lines (which would
% perhaps be more reliable)

I'm not sure how, either, but I bet that formail will count them and
so I could pump them thru formail to create a X-Lines: header (to avoid
confusion with any existing Lines: header) for starters.  I'll limit on
size, though, once I figure out how large the default message is.


% 
% anyway, just an idea

Thanks!


% 
% denis
% 
% -- 
% // mailto: Denis Perelyubskiy [EMAIL PROTECTED]
% // icq   : 12359698
% // PGP   : http://www.cs.ucla.edu/~denisp/files/pgp.asc


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


 PGP signature


lost color

2001-09-10 Thread Fernan Aguero

Hi,

I just installed mutt-devel 1.3.22i (coming from 1.2.5i) and lost the
color display (everything is now BW)
My .muttrc is the same as before, my term is also unchanged (xterm).
I tried also to set TERM to some other values (xterm-color, linux)
to no avail.

Is this a FAQ? Or is it a problem on my config?

Thanks in advance,

Fernan

%mutt -v
Mutt 1.3.22.1i (2001-08-30)
Copyright (C) 1996-2001 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: FreeBSD 4.3-RELEASE-p15 [using ncurses 5.1]
Compile options:
-DOMAIN
+DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE
-USE_FCNTL  +USE_FLOCK
-USE_POP  -USE_IMAP  -USE_GSS  -USE_SSL  -USE_SASL
+HAVE_REGCOMP  -USE_GNU_REGEX
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
+ENABLE_NLS  -LOCALES_HACK  -HAVE_WC_FUNCS  -HAVE_LANGINFO_CODESET  
+-HAVE_LANGINFO_YESEXPR
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  -HAVE_GETADDRINFO
ISPELL=/usr/local/bin/ispell
SENDMAIL=/usr/sbin/sendmail
MAILPATH=/var/mail
PKGDATADIR=/usr/local/share/mutt
SYSCONFDIR=/usr/local/etc
EXECSHELL=/bin/sh
-MIXMASTER

-- 

|  F e r n a n   A g u e r o  |  B i o i n f o r m a t i c s  |
|   [EMAIL PROTECTED]   |  genoma.unsam.edu.ar  |



Re: limiting by number of lines

2001-09-10 Thread Vineet Kumar

* Denis Perelyubskiy ([EMAIL PROTECTED]) [010910 10:32]:

 while i dont remember (i am a procmail neophyte for the most
 part) how to base rules on # of lines, but worst come to worst
 you could either pipe into 'wc -l', or write a script if you
 want to skip headers when counting lines (which would
 perhaps be more reliable)

Here's a hint, too: a 'b' flag in a procmail recipe means feed just the
body into this pipe. See procmailrc(5) for more info.


-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


mailto URLs (was: Re: [Announce] mutt-1.3.22 (BETA) is out.)

2001-09-10 Thread Ken Weingold

On Thu, Aug 30, 2001, Thomas Roessler wrote:
 PS: I forgot something from the NEWS file - you can now pass 
 full-featured mailto URLs to mutt on the command line, including any
 subject, body specifications.

Is this supposed to work like Mike Schiraldi's patch, by default?  It
doesn't seem to work when I paste a mailto URL into the To: line when
I hit 'm' for a new mail.


-Ken