Re: Setting mutt on FC7

2008-04-28 Thread hce
On Fri, Apr 25, 2008 at 7:02 PM, Michael Kjorling [EMAIL PROTECTED] wrote:
 On 25 Apr 2008 16:50 +1000, by [EMAIL PROTECTED] (hce):

  1. The receiving mail seems ok, but I could not post mails. On the
   menu, there is a o:Mail, but when I pressed the o key, it always print
   out Aborted unmodified message., it did not bring me to the edit
   page, the same when I pressed r key for replying. How can I fix it?
  

  I am using vim on xterm, and I set up the editor at muttrc:
  
   set editor=vim +':set textwidth=77' +':set wrap' +\`awk '/^$/ {print
   i+2; exit} {i++}' %s\` %s

  For one thing, backticks are expanded at config parse time. Without
  having tried, this would seem likely to cause problems in your
  case. With an editor invocation like that, you could try trimming it
  down to the bare essentials (so just vim to start with), or moving
  it to a script that does whatever argument processing etc. you want
  and then launches the actual editor.

Alright, let me remove all but just leave the vim as I've tried following:

set editor=vim

It came to the same error Aborted unmodified message. after pressing
the o key for Mailing. I am not so sure that the problem was caused
by the editor setup, or doesn't?

Thank you.

Kind Regards,

Jim


Re: Setting mutt on FC7

2008-04-28 Thread hce
Thanks for all responses, the problem has been resolved. It was an
error in my muttrc file.

Thank you.

Kind Regards.

Jim

On Mon, Apr 28, 2008 at 4:44 PM, hce [EMAIL PROTECTED] wrote:
 On Fri, Apr 25, 2008 at 7:02 PM, Michael Kjorling [EMAIL PROTECTED] wrote:
   On 25 Apr 2008 16:50 +1000, by [EMAIL PROTECTED] (hce):
  
1. The receiving mail seems ok, but I could not post mails. On the
 menu, there is a o:Mail, but when I pressed the o key, it always print
 out Aborted unmodified message., it did not bring me to the edit
 page, the same when I pressed r key for replying. How can I fix it?

  
I am using vim on xterm, and I set up the editor at muttrc:

 set editor=vim +':set textwidth=77' +':set wrap' +\`awk '/^$/ {print
 i+2; exit} {i++}' %s\` %s
  
For one thing, backticks are expanded at config parse time. Without
having tried, this would seem likely to cause problems in your
case. With an editor invocation like that, you could try trimming it
down to the bare essentials (so just vim to start with), or moving
it to a script that does whatever argument processing etc. you want
and then launches the actual editor.

  Alright, let me remove all but just leave the vim as I've tried following:

  set editor=vim

  It came to the same error Aborted unmodified message. after pressing
  the o key for Mailing. I am not so sure that the problem was caused
  by the editor setup, or doesn't?



  Thank you.

  Kind Regards,

  Jim



Re: Change unread mark without open the message

2008-04-28 Thread hce
On Sun, Apr 27, 2008 at 8:53 PM, Michael Kjorling [EMAIL PROTECTED] wrote:
 On 27 Apr 2008 11:42 +1000, by [EMAIL PROTECTED] (hce):

  But I have to check the O old state message manually to see if the
   message is truly a new messageI did not read before of if the message
   was read before but marked to unread state after messages

  Is there a problem with the approach I suggested in
  [EMAIL PROTECTED]?

I tried but did not work well. I guess I may not understand your tag
procedure well, or I did not explain my intention clearly. I am doing
following two steps:

1. Config muttrc not to mark unread message from N (new) to O (old).

I tried to set mark_old=no

But it did not work, it still marked N to O after exiting mutt.

What was wrong for the set mark_old=no?

2. Change already marked O messages to N

If set mark_old=no works, all new messages will be mark to N so that
I can use key N to change message state without open the mails in
index.

But for old messages which have already marked with O, I want to
change it back to N. I tried to use tag as you suggested above to
change all O messages to N. But did not work. Please explain more
details how can I use the tag to change all O state to N state in
one go.

Thank you.

Kind Regards,

Jim


Re: Change unread mark without open the message

2008-04-28 Thread Marianne Promberger
On 04/28/08 18:26, hce wrote:

 
 But for old messages which have already marked with O, I want to
 change it back to N. I tried to use tag as you suggested above to
 change all O messages to N. But did not work. Please explain more
 details how can I use the tag to change all O state to N state in
 one go.

I don't recall what the previously suggested solutions were. 

But this works perfectly fine for me:

(press in sequence:)
T  to tag matching the following pattern
~O the pattern (all O messages should now be tagged)
;  apply the following to all tagged messages (*)
N  set N flag on tagged messages 

(*) you should be able to omit this step if you've got set
auto_tag=yes in your .muttrc AFAIK.

I don't know why your 'set mark_old=no' doesn't work. Do you possibly
have a folder-hook somewhere that overrides it?

m.



Re: Change unread mark without open the message

2008-04-28 Thread Michael Kjorling
On 28 Apr 2008 18:26 +1000, by [EMAIL PROTECTED] (hce):
 I tried to set mark_old=no
 
 But it did not work, it still marked N to O after exiting mutt.
 
 What was wrong for the set mark_old=no?

There should be nothing wrong with it. Are you certain that it took?
(Try `:' followed by `set ?mark_old', Enter and see what it says.)


 change it back to N. I tried to use tag as you suggested above to
 change all O messages to N. But did not work. Please explain more
 details how can I use the tag to change all O state to N state in
 one go.

If all messages marked old should be changed to new:

* Press T (upper case T) for tag-pattern

* At the prompt, input the pattern ~O, which matches all old
  messages, and press Enter

* Press ; (semicolon) for tag-prefix

* Press w (lower case W) for set-flag

* Press N for new

* Optionally, press $ to commit the changes to disk

Done.

If only some messages should have the flag changed, replace the first
two steps above with manually tagging the relevant messages using t
(lower case T).

-- 
Michael Kjörling .. [EMAIL PROTECTED] .. http://michael.kjorling.se
* . No bird soars too high if he soars with his own wings . *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x 758F8749 BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *



signature.asc
Description: Digital signature


Re: Change unread mark without open the message

2008-04-28 Thread Vladimir Marek
 I don't know why your 'set mark_old=no' doesn't work. Do you possibly
 have a folder-hook somewhere that overrides it?

mark_old also does not work for IMAP. I'm attaching patch fixing the
annoyance.

-- 
Vlad
IMAP mark_old patch

diff --git a/imap/command.c b/imap/command.c
--- a/imap/command.c
+++ b/imap/command.c
@@ -895,7 +895,7 @@
 dprint (3, (debugfile, Found %s in buffy list (OV: %d ON: %d U: 
%d)\n,
 mailbox, olduv, oldun, status-unseen));
 
-if (olduv  olduv == status-uidvalidity)
+if (olduv  olduv == status-uidvalidity  option(OPTMARKOLD))
 {
   if (oldun  status-uidnext)
 inc-new = status-unseen;


pgp0y0KY5hTIl.pgp
Description: PGP signature


coloring headers

2008-04-28 Thread Ravi Uday
Hi,

1. In the header of the recvd mail, how to make each mail address
different color and
   reflect the same color in the body of the mail if it(the
name/address) appears there. ?

2. When we reply ('g'/'r'), oriiginal mail will prepend each line with
'', how to make it show
'--' instead

Sorry if these questions are asked before !

Ravi


Re: Change unread mark without open the message

2008-04-28 Thread hce
On 4/28/08, Marianne Promberger [EMAIL PROTECTED] wrote:
 On 04/28/08 18:26, hce wrote:

  
   But for old messages which have already marked with O, I want to
   change it back to N. I tried to use tag as you suggested above to
   change all O messages to N. But did not work. Please explain more
   details how can I use the tag to change all O state to N state in
   one go.


 I don't recall what the previously suggested solutions were.

  But this works perfectly fine for me:

  (press in sequence:)
  T  to tag matching the following pattern
  ~O the pattern (all O messages should now be tagged)
  ;  apply the following to all tagged messages (*)
  N  set N flag on tagged messages

  (*) you should be able to omit this step if you've got set
  auto_tag=yes in your .muttrc AFAIK.

Thank you. That works fine.

  I don't know why your 'set mark_old=no' doesn't work. Do you possibly
  have a folder-hook somewhere that overrides it?

No, there is no other setting to overrides it.

From comments from Vladimir, is it a bug in mutt?

I installed mutt binary in Debian box. Seems I have to install a
source package then to make change as Vladimir suggested.

Thank you all.

Kind Regards,

Jim


New mail - 'un-collapses' thread ... Can I stop this ?

2008-04-28 Thread Wilkinson, Alex
Hi all,

I have the following folder-hook:

   folder-hook . \
   set sort=reverse-threads ;\
set sort_aux=last-date-received ;\
push 'collapse-all' ;\
set index_format='%3N %4C %Z %{%b %d} %-15.15F (%4c) %?M?%M 
?%s' ;\
set display_filter='t-prot -acelmtS -Mmutt --spass'

As well as this I have the following defined:

   set collapse_unread=yes

My problem:

   My INBOX will be open all day within a terminal as per usual and as soon as a
   new message for a particular thread arrives the thread un-collapses.

Is it possible to stop threads un-collaping as new mail arrives ?

 -aW

IMPORTANT: This email remains the property of the Australian Defence 
Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 
1914.  If you have received this email in error, you are requested to contact 
the sender and delete the email.




Re: coloring headers

2008-04-28 Thread Markus Maria Miedaner
On Mon, Apr 28, 2008 at 03:13:40PM -0700, you (Ravi Uday) wrote:

Hi Ravi,


 1. In the header of the recvd mail, how to make each mail address
 different color and
reflect the same color in the body of the mail if it(the
 name/address) appears there. ?
 

# coloring of the header
# -
color header white green From
color header white red X-Spam-Level
color header white yellow Subject
color header white blue Date
color header white magenta Reply-To

# email addresses
color body brightmagenta black 
((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])

That's how I color my mails. However it only highlights email addresses - it 
does not color matching emails in the same
color.

What I would try is something like (untested!) 
# mark the bosses messages in red:
color index red black [EMAIL PROTECTED]

# some guy
color index red white [EMAIL PROTECTED]

and replace the index with the name of the view where you wanna see the 
coloring (pager, )



 2. When we reply ('g'/'r'), oriiginal mail will prepend each line with
 '', how to make it show
 '--' instead
 

set indent_string=  # prefix for quoted messages

is what you may be looking for.


Hope that helps,

Cheers,
Markus

-- 
Please note that this email-transaction has been logged due to German laws. To 
ensure the privacy of further communication please encrypt your message using 
the following KeyID = 694F9952

A. Lincoln: Those who give a little bit of liberty to gain more safety deserve 
neither liberty nor safety.




signature.asc
Description: Digital signature