Re: losing mail because of too many qs

2001-01-08 Thread Abhay Ghaisas

Hi,

Andy Spiegl [EMAIL PROTECTED]  wrote --
 
 This works, but I don't like it.  I'd rather have mutt ask me whether I
 really want to abort the mail.  Or even better a quad-option like "quit".

Have you tried setting the "postpone" quad-option to something like
"ask-no" or "ask-yes"?  It's not exactly what you are asking for, but,
it will still solve your problem.  You can press Ctl-G at the question
and you will be back in the compose menu.

Regards,
Abhay.
-- 
Abhay Ghaisas / [EMAIL PROTECTED]
Motorola India Electronics Ltd., Bangalore, India.



Re: Extra line added on edit message

2000-12-29 Thread Abhay Ghaisas

Suresh Ramasubramanian [EMAIL PROTECTED]  wrote --
 Abhay Ghaisas proclaimed on mutt-users that: 
 
  I think I misled you with the clean-up part.  The script does not
  clean-up the mail-box by removing mails; I invoke it on individual mails
  to do clean-up like removing the pesky advertisements that some mailing
  list hosts like e-groups add.  Also for some other tasks like getting
 
 hmmm... couldn't you do that with procmail + sed / awk etc _before_ the mail
 lands in your mailbox?

True.  For egroups, I am doing it with procmail + perl script.  But some
other things like removing quoted text have to be done on a case to case
basis.  So, I still need the macro and editor magic.  Actually, I use a
generic perl script as editor option and pass the name of the filter
script as the first argument.  The editor script is attached.

Regards,
Abhay.
-- 
Abhay Ghaisas / [EMAIL PROTECTED]
Motorola India Electronics Ltd., Bangalore, India.

 mailCleanup.pl


Re: Default Mailbox problem

2000-12-28 Thread Abhay Ghaisas

Hi,

Frank Naumann [EMAIL PROTECTED]  wrote --
 try procmail. You will have to create a file ~/.procmailrc with the
[snip -- useful .procmailrc info]

 On Thu, Dec 28, 2000 at 11:50:46AM -0200, Peter Dobrev wrote:
  When Mutt
  starts it automaticly open /var/spool/mail/peterdob. I've set the
  mbox
  variable to "~/mail/Inbox". I want Mutt to open ~/mail/Inbox by
  default and store the
  new messages there (to move them from /var/spool/mail/peterdob).

Procmail will take care of saving messages in different inbox for you.
To make that the default spool mailbox for mutt, you will have to set
the "spoolfile" variable instead of "mbox" variable like:

set spoolfile=+Inbox

BTW, for the correct expansion of "+" to "~/mail", you will also have to
set the folder variable to "~/mail" like:

set folder="~/mail"

That, with procmail, would be what the doctor ordered.

Regards,
Abhay.
-- 
Abhay Ghaisas / [EMAIL PROTECTED]
Motorola India Electronics Ltd., Bangalore, India.



Re: Extra line added on edit message

2000-12-28 Thread Abhay Ghaisas

Suresh Ramasubramanian [EMAIL PROTECTED]  wrote --
 On Thursday 28 December 2000 11:34, Abhay Ghaisas wrote:
[snip]
  piled up at the end of the message.  Is this done with some reason or
  is it just a bug?
 
 Looks like a harmless feature to me :)

Quite harmless when hand-editing the messages; a bit of annoyance when
mixed with scripts :)

  I am using some scripts for cleaning up some mails by setting editor
  variable to script name.  And, every time I try it, new lines get
  added at end.
 
 Could you share this script?  Or you could just archive mails by using 
 date-wise folders in your .procmailrc (say mails from mutt-users in 
 march get appended to mutt-users-march)

I think I misled you with the clean-up part.  The script does not
clean-up the mail-box by removing mails; I invoke it on individual mails
to do clean-up like removing the pesky advertisements that some mailing
list hosts like e-groups add.  Also for some other tasks like getting
rid of too many additional newlines at the end (now, isn't that ironic
considering this misfeature :) or removing excessive quoting done by
some people.

Regards,
Abhay.
-- 
Abhay Ghaisas / [EMAIL PROTECTED]
Motorola India Electronics Ltd., Bangalore, India.



Extra line added on edit message

2000-12-27 Thread Abhay Ghaisas

Hi,

When I do edit-message ('e' in index menu by default), I get the
message in my editor.  It seems like there is an extra newline added at
the end of the message.  Thus, if I repeatedly keep on editing my
message and saving it (by force) without any changes, blank lines get
piled up at the end of the message.  Is this done with some reason or is
it just a bug?

I am using some scripts for cleaning up some mails by setting editor
variable to script name.  And, every time I try it, new lines get added
at end.

Regards,
Abhay.
-- 
Abhay Ghaisas / [EMAIL PROTECTED]
Motorola India Electronics Ltd., Bangalore, India.



Scoring addresses in lbdb

2000-12-19 Thread Abhay Ghaisas

Hi, all.

Is it somehow possible to score addresses I use in lbdb?

Here is the problem I have.  If I want to send a mail to somebody with
name "Sudhir", I just type "sudhir" at the To: prompt and hit ^T for
getting all possible completions.  Invariably, I get a lot of
completions that are possible.  Many of them are just alternate
addresses for the same "Sudhir" I want to contact.  The preferred
address is possibly sixth or seventh in the list.  So, I scroll down and
pick it up.  What I want to happen now is that next time when I do the
same operation, this address should get more priority and should be on
top.

I know that lbdb is a separate program and has no direct relation to
mutt.  So, I think, one possible way it can be done is to add some kind
of scoring feature in lbdb and increase the score of selected addressed
from some macro magic from mutt every time I select an address.

Any ideas?

Abhay.
-- 
Abhay Ghaisas / [EMAIL PROTECTED]