colorize a word

2002-05-10 Thread andrej hocevar

Hello,
how do I instruct mutt to colourize only a certain word in the header
of a message? I'd like to make for instance the word From: appear
in red, while the text following it in default, i.e. no colour.

Until now I've failed because mutt always coloured the whole line
upon a successful match. But then again I'm pretty sure that it was
only my not supplying the right expressions ...

andrej

-- 
echo ${girl_name}  /etc/dumpdates



Re: colorize a word

2002-05-10 Thread Michael Tatge

andrej hocevar ([EMAIL PROTECTED]) muttered:
 how do I instruct mutt to colourize only a certain word in the header
 of a message?

No possible without patching mutt.

 Until now I've failed because mutt always coloured the whole line
 upon a successful match.

That's how it is.

Michael
-- 

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



Re: header patterns

2002-05-10 Thread David T-G

Will, et al --

...and then Will Yardley said...
% 
...
% but not this:
% color index red default ~h^X-Spam-Flag: YES

While John may be right about the quotes, I always try to avoid spaces
where possible.  Just put a dot there to hold the space and forget about
the quotes.

FWIW, when I *do* quote a pattern I happen to use single quotes.  YMMV.


HTH  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!




msg27943/pgp0.pgp
Description: PGP signature


Re: colorize a word

2002-05-10 Thread darren chamberlain

* andrej hocevar [EMAIL PROTECTED] [2002-05-10 04:49]:
 how do I instruct mutt to colourize only a certain word in the header
 of a message? I'd like to make for instance the word From: appear in
 red, while the text following it in default, i.e. no colour.

I just posted a patch that allows for this yesterday (or was it the day
before?).  Search the archives for Message ID
[EMAIL PROTECTED], which is my message with the patch
attached (and the followup, which has David T-G taking credit for it ;).

(darren)

-- 
Competition is a by-product of productive work, not its goal.  A
creative man is motivated by the desire to achieve, not by the
desire to beat others.
-- Ayn Rand



Re: colorize a word

2002-05-10 Thread andrej hocevar

On Fri, May 10, 2002 at 08:09:59AM -0400, darren chamberlain wrote:
 I just posted a patch that allows for this yesterday (or was it the day

Great; I've found it. Would you please tell me how to apply it?
I've installed mutt from a .deb, so I'll have to go get the source,
right?

andrej

-- 
echo ${girl_name}  /etc/dumpdates



Re: colorize a word

2002-05-10 Thread Rocco Rutte

Hi,

* andrej hocevar [05/10/02 13:49:17 CEST] wrote:
 how do I instruct mutt to colourize only a certain word in the header
 of a message? I'd like to make for instance the word From: appear
 in red, while the text following it in default, i.e. no colour.

 Until now I've failed because mutt always coloured the whole line
 upon a successful match. But then again I'm pretty sure that it was
 only my not supplying the right expressions ...

Maybe having a look at the archives first? We just had this
discussion this week. And the answer is: it isn't possible.
Allthough, there's a patch available which will do just this.

It's all in the archive.

Cheers, Rocco.



Re: colorize a word

2002-05-10 Thread darren chamberlain

* andrej hocevar [EMAIL PROTECTED] [2002-05-10 08:58]:
 On Fri, May 10, 2002 at 08:09:59AM -0400, darren chamberlain wrote:
  I just posted a patch that allows for this yesterday (or was it the day
 
 Great; I've found it. Would you please tell me how to apply it?
 I've installed mutt from a .deb, so I'll have to go get the source,
 right?

Yes.

Here's a (simplistic) step-by-step:

  ncftpget ftp://ftp.mutt.org/mutt/mutt-1.3.99i.tar.gz
  gunzip -c mutt-1.3.99i.tar.gz | tar xf -
  cd mutt-1.3.99
  patch -p0  /path/to/patch-1.3.2609.whatever.its.called
  ./configure --with-the-right=options
  make
  make install

The key is the patch line (4th line).  Good luck.

(darren)

-- 
Don't sweat the petty things, and don't pet the sweaty things.



deleting messages and default folders

2002-05-10 Thread Mike Arrison

Hello Mutters,
My switch from Pine to Mutt is going pretty well so far.  I have a few 
questions that I could use some help with though.

- Let's say I delete all messages in a folder by pressing 'd'.  Then I go to Undelete 
them.  I can't seem to figure out how to go up to select those deleted messages.  The 
cursor only highlights undeleted messages.  I can use 'U' to undelete via a pattern, 
but I'd rather not have to do that.  Am I missing something?

- Also, is there a way to have mutt open in a file folder other than your spoolfile?  
My spoolfile isn't my primary mailbox, and I'd rather have Mutt open my primary by 
default. 

Thanks in advance,
 Mike Arrison 



deleting messages and default folders

2002-05-10 Thread Mike Arrison

Hello Mutters,
My switch from Pine to Mutt is going pretty well so far.  I have a few 
questions that I could use some help with though.

- Let's say I delete all messages in a folder by pressing 'd'.  Then I go to Undelete 
them.  I can't seem to figure out how to go up to select those deleted messages.  The 
cursor only highlights undeleted messages.  I can use 'U' to undelete via a pattern, 
but I'd rather not have to do that.  Am I missing something?

- Also, is there a way to have mutt open in a file folder other than your spoolfile?  
My spoolfile isn't my primary mailbox, and I'd rather have Mutt open my primary by 
default. 

Thanks in advance,
 Mike Arrison 



Re: deleting messages and default folders

2002-05-10 Thread Maximilian Szengel

On Fri, May 10, 2002 at 09:34:28AM -0400, Mike Arrison wrote:
 Hello Mutters,
   My switch from Pine to Mutt is going pretty well so far.

 Good, but maybe you should try an editor which supports automatic 
 line wrapping ;-)
  
 - Let's say I delete all messages in a folder by pressing 'd'.  
 Then I go to Undelete them.  I can't seem to figure out how to 
 go up to select those deleted messages.  The cursor only highlights 
 undeleted messages.  I can use 'U' to undelete via a pattern, but 
 I'd rather not have to do that.  Am I missing something?

 You have to (re-)bind your key settings. I have
 
 bind index left   previous-entry
 bind index right  next-entry
 
 in my .muttrc. There is probably a default binding for that, but I
 don't know it, sorry.

 max
-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS d- s: a--- C++ UL+++ P+ L+++ E--- W+ N++ o++ K- w-- 
O- M-- V- PS+++ PE-- Y+ PGP++ t--- 5-- X+ R- tv+ b++ DI- D++ 
G++ e h! r y+ 
--END GEEK CODE BLOCK--



msg27950/pgp0.pgp
Description: PGP signature


Re: deleting messages and default folders

2002-05-10 Thread darren chamberlain

* Mike Arrison [EMAIL PROTECTED] [2002-05-10 09:36]:
 Hello Mutters,
   My switch from Pine to Mutt is going pretty well so far.  I have a
   few questions that I could use some help with though.

Good news.

 - Let's say I delete all messages in a folder by pressing 'd'.  Then I
 go to Undelete them.  I can't seem to figure out how to go up to
 select those deleted messages.  The cursor only highlights undeleted
 messages.  I can use 'U' to undelete via a pattern, but I'd rather not
 have to do that.  Am I missing something?

You need to bind something to next-entry and previous-entry.  By
default, up and down are bound to next-undeleted and
previous-undeleted.  This is what I have:

  # vi-like keys
  bind index j next-undeleted
  bind index J next-entry

  bind index k previous-undeleted
  bind index K previous-entry

(These may actually be the defaults, so try them out before you rebind
your keys.)

 - Also, is there a way to have mutt open in a file folder other than
 your spoolfile?  My spoolfile isn't my primary mailbox, and I'd rather
 have Mutt open my primary by default. 

mutt -f +mailboxname

(darren)

-- 
Intolerance is the last defense of the insecure.



Re: deleting messages and default folders

2002-05-10 Thread Martin Karlsson

* Mike Arrison [EMAIL PROTECTED] [2002-05-10 09.34 -0400]:
 Hello Mutters, My switch from Pine to Mutt is going pretty well so
 far.

Glad to hear it!

 I have a few questions that I could use some help with
 though.

ok.

 - Let's say I delete all messages in a folder by pressing 'd'.
 Then I go to Undelete them.  I can't seem to figure out how to go
 up to select those deleted messages.  The cursor only highlights
 undeleted messages.  I can use 'U' to undelete via a pattern, but
 I'd rather not have to do that.  Am I missing something?
 
Well, let's say you've deleted messages 18 through 37,
but want to undelete 24-31. Simply press
24ENTER
which will place you on msg 24.
u for undelete
will undelete #24 and put you on msg #25, u for undelete...

 - Also, is there a way to have mutt open in a file folder other
 than your spoolfile?  My spoolfile isn't my primary mailbox, and
 I'd rather have Mutt open my primary by default. 
 
set folder=~/Mail   # directory with all mail folders
set spoolfile=+INBOX# the + is shorthand for $folder

That's how I do it.

HTH
-- 
Martin Karlsson - 0x9C924660



msg27952/pgp0.pgp
Description: PGP signature


Putting finishing touches on mutt

2002-05-10 Thread Jani Alanko

Ok, thank you all for answering my stupid and completely irrelevant
questions, I got things work out just fine. Now mutt needs only a fine tuning.
 
First of all, is it anyway possible to put mutt not to show =-sign in front
of the folder name in the list?
Or how to make mutt to show the number of messages and unread messages in
the folder list? I know how to make it show the N-flag if there are new
messages but how to make it show, how many? At least man pages or manual
didn't give this option.
 
And to write something completely irrelevant to this message and to annoy
some people:
 
Finland beat up USA in ice hockey! Eat dirt, America!
 
No offense. Really. Just couldn't resist the temptation to write that. :-)
 
---
Interesting. The pallo is pyöreä.


Hmm... I wonder how I could have random taglines in mutt... Perhaps a little
program that changes the .signature file..? Any ideas?
I want similar kind of random tags that were used when bbs-system were alive
and well not so long time ago.



RE: .muttrc config help.

2002-05-10 Thread DARCY,MATTHEW \(Non-HP-UnitedKingdom,ex2\)





 hi,
 
 I have lost my .muttrc config file.
 
 there is a couple of variables which I am having trouble resetting in my
 new file.
 
 
 to view my mail box I have to type mutt -f ~/Maildir 
 
 what variables do I have to set to make this happen in my .muttrc file ??
 
 also my mail server is,  mail.mydomain.co.uk so mail I send comes from
 [EMAIL PROTECTED] how do I set it to come from [EMAIL PROTECTED]
 
 
 Pretty simple I know but I have not got a reference point.
 
 Thanks, 
 
 Matt.
 



Re: Putting finishing touches on mutt

2002-05-10 Thread David T-G

Jani --

...and then Jani Alanko said...
% 
% Ok, thank you all for answering my stupid and completely irrelevant
% questions, I got things work out just fine. Now mutt needs only a fine tuning.

Glad to hear it!


%  
% First of all, is it anyway possible to put mutt not to show =-sign in front
% of the folder name in the list?

Not that I know of; if there's no equals there, then it means you're not
in your $folder, so it makes sense to have it.


% Or how to make mutt to show the number of messages and unread messages in

No.  The short answer is that mutt doesn't really tell you if there is
new mail but that it *looks* like it based on timestamps.  It doesn't
look inside the folder at all.


% the folder list? I know how to make it show the N-flag if there are new
% messages but how to make it show, how many? At least man pages or manual
% didn't give this option.

Read the archives for the long story, often repeated :-)


%  
% And to write something completely irrelevant to this message and to annoy
% some people:
%  
% Finland beat up USA in ice hockey! Eat dirt, America!

Yeah, well, we'll kick yer butt any day in, um, basketball.  Yeah, that's
it!  So there!


%  
% No offense. Really. Just couldn't resist the temptation to write that. :-)

Oh, well, good for you, then :-)


%  
% ---
% Interesting. The pallo is pyöreä.
% 
% 
% Hmm... I wonder how I could have random taglines in mutt... Perhaps a little
% program that changes the .signature file..? Any ideas?
% I want similar kind of random tags that were used when bbs-system were alive
% and well not so long time ago.

See the archives for sigpipe or sigrot or the like.


:-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!




msg27956/pgp0.pgp
Description: PGP signature


.muttrc config help.

2002-05-10 Thread DARCY,MATTHEW \(Non-HP-UnitedKingdom,ex2\)



hi,

I have lost my .muttrc config file.

there is a couple of variables which I am having trouble resetting in my new
file.


to view my mail box I have to type mutt -f ~/Maildir 

what variables do I have to set to make this happen in my .muttrc file ??

also my mail server is,  mail.mydomain.co.uk so mail I send comes from
[EMAIL PROTECTED] how do I set it to come from [EMAIL PROTECTED]


Pretty simple I know but I have not got a reference point.

Thanks, 

Matt.





Re: deleting messages and default folders

2002-05-10 Thread Mike Arrison

On Fri, May 10, 2002 at 04:04:42PM +0200, Jochen Striepe wrote:
 Hi,
 
 please wrap your lines at 72 chars. Thx.

I'd very much like to.  How would I do that automatically in
vi? Is there something like set editor=vim set wrap 72 or
something?
-Mike



Re: deleting messages and default folders

2002-05-10 Thread Maximilian Szengel

On Fri, May 10, 2002 at 11:30:21AM -0400, Mike Arrison wrote:

  please wrap your lines at 72 chars. Thx.
 
 I'd very much like to.  How would I do that automatically in
 vi? Is there something like set editor=vim set wrap 72 or
 something?

 set editor=vim -c 'set tw=72 et ft=mail'

 max
-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS d- s: a--- C++ UL+++ P+ L+++ E--- W+ N++ o++ K- w-- 
O- M-- V- PS+++ PE-- Y+ PGP++ t--- 5-- X+ R- tv+ b++ DI- D++ 
G++ e h! r y+ 
--END GEEK CODE BLOCK--



msg27959/pgp0.pgp
Description: PGP signature


Debugging mutt ?

2002-05-10 Thread Michael Seiwert

Hi,

I've compiled mutt 1.3.99 with '--enable-debug', but I don't find any option 
on how to debug mutt ?

Any idea ?

Regards

Micha



IMAP/SSL

2002-05-10 Thread Michael Seiwert

Hi,

I'm using mutt version 1.3.99 compiled with ssl and imap support.

I connect a remote imap server and everything is fine except that if I write 
long mailtext and send it to the server it tries to store the mail in the 
sent-mail folder. Then it happens that mutt hangs. Does anyone else has this 
problem ??

Any idea ?

Regards

Micha 




Re: IMAP/SSL

2002-05-10 Thread Michael Seiwert

On Friday 10 May 2002 20:37, darren chamberlain wrote:
 * Michael Seiwert [EMAIL PROTECTED] [2002-05-10 14:25]:
  I'm using mutt version 1.3.99 compiled with ssl and imap support.
 
  I connect a remote imap server and everything is fine except that if I
  write long mailtext and send it to the server it tries to store the
  mail in the sent-mail folder. Then it happens that mutt hangs. Does
  anyone else has this problem ??

 Does mutt hang when sending the message or when writing to $sentmail?
 It might be the first; perhaps the install didn't find the right
 sendmail?

 (darren)

Hi,

the local mta should not be the problem. One thing I'm not sure about is that 
maybe there is a timeout configured on the remote firewall. But I would 
expect that mutt does'nt hang and put out a error message. 

Regards

Michael



Re: IMAP/SSL

2002-05-10 Thread Heiko Heil

On Fri, May 10, 2002 at 08:25:16PM +0200, Michael Seiwert wrote:
 I connect a remote imap server and everything is fine except that if I
 write long mailtext and send it to the server it tries to store the
 mail in the sent-mail folder. Then it happens that mutt hangs. Does
 anyone else has this problem ??

I have changed my .muttrc in order to fix this problem...
set mail_check=10
set timeout=5

Works for me.
-- 
Cheers,
Heiko Heil



Re: IMAP/SSL

2002-05-10 Thread Michael Seiwert

On Friday 10 May 2002 21:35, Heiko Heil wrote:
 On Fri, May 10, 2002 at 08:25:16PM +0200, Michael Seiwert wrote:
  I connect a remote imap server and everything is fine except that if I
  write long mailtext and send it to the server it tries to store the
  mail in the sent-mail folder. Then it happens that mutt hangs. Does
  anyone else has this problem ??

 I have changed my .muttrc in order to fix this problem...
 set mail_check=10
 set timeout=5


Hi,

seems also work for me ... :-)

Thank you for your help !

Regards

Michael



managing two accounts on same imap-server

2002-05-10 Thread Tobias Kirchhofer

Hi,

i try to set up a macro for copying mails from one imap-account to
another, on the same imap mail-server.

- I am user1 on imap://mail.bluemars.de/

- .muttrc user1:

account-hook . 'unset imap_user; unset imap_pass'
account-hook imap://mail.bluemars.de/ 'set imap_user=user2'

macro index F7 copy-message=imap:[EMAIL PROTECTED]/Inbox\n
'Copy message to =imap:[EMAIL PROTECTED]/Inbox'

Error-message:

imap_copy_messages [a0008 NO Error in IMAP command received by
server.]?

NO Error?

It works if i copy a message manually:

C
imap:[EMAIL PROTECTED]/Inbox
Password for [EMAIL PROTECTED]:
...

Any ideas?

Greetings

Tobias Kirchhofer

-- 
BLUE MARS - Gesellschaft für digitale Kommunikation mbH  

Tobias Kirchhofer   mailto:[EMAIL PROTECTED]
Managing Director   http://www.bluemars.de
Ebersheimstrasse 5  Tel: +49 (0)69 469973-00
60320 Frankfurt/M.  Fax: +49 (0)69 469973-99



Re: managing two accounts on same imap-server

2002-05-10 Thread Dan Boger

On Fri, May 10, 2002 at 10:47:07PM +0200, Tobias Kirchhofer wrote:
 macro index F7 copy-message=imap:[EMAIL PROTECTED]/Inbox\n
 'Copy message to =imap:[EMAIL PROTECTED]/Inbox'
 
 Error-message:
 
 imap_copy_messages [a0008 NO Error in IMAP command received by
 server.]?
 
 NO Error?
 
 It works if i copy a message manually:
 
 C
 imap:[EMAIL PROTECTED]/Inbox
 Password for [EMAIL PROTECTED]:

I see a difference - '=imap://...' and 'imap://...' - try removing the
'=' from the macro.

-- 
Dan Boger
Linux MVP
brainbench.com




msg27967/pgp0.pgp
Description: PGP signature


Re: Maildir and MH Filenames

2002-05-10 Thread David J. Neu


% Heh.  That's a never-ending project :-)
Yeah tell me about it. :)

I've been thinking about your idea and I believe it will
work very nicely  ... but I don't see how to insert/edit
X-labels. (I'm playing with version 1.2.5).

Many thanks!
Dave


David T-G wrote:

 Dave --

 ...and then [EMAIL PROTECTED] said...
 %
 ...
 % Hmm, it's sort of a long story, but basically I had
 % this idea that in an effort to organize my email, i.e.

 Heh.  That's a never-ending project :-)

 % so I can find a message in the future, that I'd make
 % a few notes about important message along with the
 % message filename.  Then if I was looking for messages
 % that had information about some topic, I could search
 % through my notes.

 If you simply take note of the message folder then you could put any
 reminders you want in the X-Label: field (ahem, assuming you use mutt
 instead of the ATT Message Center) and search within that folder for
 the message(s).  I note contributed patches, say, as contrib patch
 so any time I want to see the patches that have been tossed into the
 mix I can limit on that string using ~y.

 HTH  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!

   
Part 1.2Type: application/pgp-signature




Please help me with getting a thread view

2002-05-10 Thread s4565

Hi

At the moment my display in mutt looks like

   8 O   May 09 02:42:07PM To mutt-users   (  32) Re: about spam
   9 O   May 09 02:08:12PM To Mutt Users   (  21) Re: ailasing mailboxes
  10 Os  May 09 11:25:35PM To mutt-users   (  47) Re: emacs-goodies
  11 O   May 09 08:37:05PM To Mutt Users   (  20) header patterns
  12 O   May 09 09:06:19PM To Mutt Users   (  19) Re: header patterns
  13 O   May 10 03:31:14PM To 'mutt-users (  28) RE: .muttrc config help.
  14 Os  May 10 09:32:40AM To Mutt Users'  (  94) Re: Putting finishing touches on mutt
  15 O   May 10 11:30:21AM To Mutt Users   (  11) Re: deleting messages and default 
folders
  16 Os  May 10 05:44:05PM To Mutt Users   (  41) Re: deleting messages and default 
folders
  17 O   May 10 08:20:08PM To mutt-users@m (  12) Debugging mutt ?
  18 O   May 10 08:25:16PM To mutt-users@m (  17) IMAP/SSL
  19 O   May 10 02:37:56PM To mutt-users@m (  20) Re: IMAP/SSL
  20 O   May 10 08:46:22PM To mutt-users@m (  26) Re: IMAP/SSL
  21 O   May 10 09:35:42PM To mutt-users@m (  16) Re: IMAP/SSL

when in a folder.  Can someone please tell me how to get the threaded view where 
arrows are used
to indicate a thread.  I have seen some example pictures on the web, but I cannot find 
the appropriate
settings in the muttrc file.

Cheers

Tony




Re: Please help me with getting a thread view

2002-05-10 Thread David Kelly

On Fri, May 10, 2002 at 06:37:03PM -0700, John Iverson wrote:
 
 The corresponding .muttrc variable would be sort, e.g.:
 
   set sort=threads

I like this combination:

set sort=threads
set sort_aux=date

-- 
David Kelly N4HHE, [EMAIL PROTECTED]
=
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.