Re: yes/no bug

2002-10-03 Thread Ricardo SIGNES

On Wed, Oct 02, 2002 at 05:46:29PM -0700, Martin Siegert wrote:
 
 Is there a way to tell mutt to display the correct prompt (y/n), e.g.,
 
 Create /home/siegert/Mail/xyz? ([y]/n):
 
 other than editing the source code?

No.

You could play around with doing this via a language modification (see
HAVE_LANGINFO_YESEXPR) or just by changing the yes/no strings in (curs_lib.c)
int mutt_yesorno.

-- 
rjbs



msg31479/pgp0.pgp
Description: PGP signature


Re: Mutt, SSH and Urlview

2002-10-03 Thread Ricardo SIGNES

On Thu, Oct 03, 2002 at 02:34:37PM +0200, Sven Guckes wrote:
 * D. J. Bolderman [EMAIL PROTECTED] [2002-10-03 10:55]:
   well - complain to your winxp dealer then!
   you have *paid* for the damn thing, right?
 
  No. My boss. see ?
 
 so it is either your boss's problem or you
 are using a system you did not pay for?


Jeez, Sven, settle down.

His boss has provided him with a workstation running WinXP, and it's causing
him an annoyance.  He wants to get around it.  As Bolderman's boss presumably
doesn't give two turds about his happiness, it isn't Bolderman's boss's
problem.  There are plenty of people who suffer from Windows this way, and they
don't need to be kicked while they're down.

-- 
rjbs



msg31501/pgp0.pgp
Description: PGP signature


Re: Auto Reply?

2002-09-25 Thread Ricardo SIGNES

On Wed, Sep 25, 2002 at 10:04:15AM -0500, Fred Dech wrote:
 hi.
 
 i'm going out of town for a week tomorrow.  i've never done an auto-reply
 (i'm out of town till next year) type of thing.  i checked some mutt FAQs
 and sifted through man mutt and man muttrc but didn't see anything alluding
 to this sort of thing.
 
 is this something i can do with Mutt in a relatively straightforward manner?

This isn't mutt's field of expertise.

Look at using something like procmail or maildrop, or even 'vacation.'

Your local MTA probably hands off messages for local delivery to some MDA.
Look at the files .forward or .qmail in your home directory, and/or consult
your local wizards or M(D|T)A documentation.

-- 
rjbs



msg31216/pgp0.pgp
Description: PGP signature


Re: reread configuration file

2002-09-25 Thread Ricardo SIGNES

On Wed, Sep 25, 2002 at 10:31:26PM +0200, Hans Ginzel wrote:
 
can mutt reread hiis configuration file ~/.muttrc? Has mutt command
 source like VIM?

It's so similar, it's got the same name.

Please look at the man page for muttrc.  You'll find an entry for the command
source.  

source filename
The given file will be evaluated as a configuration file.

-- 
rjbs



msg31229/pgp0.pgp
Description: PGP signature


Re: clear-flag at last message

2002-09-20 Thread Ricardo SIGNES

On Fri, Sep 20, 2002 at 10:20:18AM +0200, Nicolas Rachinsky wrote:
 * Ricardo SIGNES [EMAIL PROTECTED] [2002-09-19 20:46 -0400]:
 [...]
  I can't find a way to force clear-flag not to move, nor can I find a way
  to get back to where I was, taking into account the move that may result
  from clear-flag.
  
  Is there a solution other than hacking the source?
 
 Yes.
 From the fine manual:
 | 6.3.208  resolve

Man!  I searched, with no joy.  I'll put some $resolve toggling in there.
Thanks.

-- 
rjbs



msg31076/pgp0.pgp
Description: PGP signature


clear-flag at last message

2002-09-19 Thread Ricardo SIGNES

The following lines are in my .vimrc:

fcc-hook . =sent/`date +%Y/%m`
macro index \\ Wnk\$s=spam/`date +%Y/%m`\r
macro pager \\ \$s=spam/`date +%Y/%m`\r

The idea is that \ marks a message as spam by saving it to the current spam
folder.

I must commit my changes to the IMAP Server before saving the message, or it
will appear in the spam folder as unread.  In the pager macro, I can just
commit changes with $, because by virtue of having entered the pager, the
message is marked read.

When in the index, I must set the message unread with Wn, but this moves me
to the next message in the index.  If I am already on the last message, I
remain on that message.  I had added k after Wn to move back up, but if the
message on which I hit '\' was the last message, this results in saving the
next-to-last message to the spam folder.

I can't find a way to force clear-flag not to move, nor can I find a way to
get back to where I was, taking into account the move that may result from
clear-flag.

Is there a solution other than hacking the source?

-- 
rjbs




msg31063/pgp0.pgp
Description: PGP signature


Re: Returning to the mail spool

2002-09-19 Thread Ricardo SIGNES

On Fri, Sep 20, 2002 at 01:55:33AM +0100, kevin lyda wrote:
 On Fri, Sep 20, 2002 at 01:50:30AM +0100, Anthony Edwards wrote:
  Heh.  I don't want to go to my inbox; I want to go to my *mail spool*.
  I don't think it can be done (without quitting and staring Mutt again),
  but I'd like to if it is possible.
 
 changing to ! *is* your mail spool.  please try these things before
 giving up.

For the sake of completeness, I offer Anthony this quote from the manual:

4.7 Mailbox Shortcuts

There are a number of built in shortcuts which refer to specific mailboxes.
These shortcuts can be used anywhere you are prompted for a file or mailbox
path.

 ! -- refers to your $spoolfile (incoming) mailbox

-- 
rjbs



msg31065/pgp0.pgp
Description: PGP signature


Re: RFE: regex backrefs

2002-08-01 Thread Ricardo SIGNES

On Wed, Jul 31, 2002 at 03:57:13PM -0700, Michael Elkins wrote:
 
 While this might look simple, it's more difficult to implement than you
 might think.  Why?  Becuse the regexp here is not just one regular

No, I know how difficult it is. ;)

 At any rate, your example above can be solved as follows:
   #!/bin/sh
   for i in ~/Mail/friends.*; do
   echo folder-hook $i my_hdr From: jsmith-`echo $i|sed 
's;^.*\.;;'`@friends.domain.org;
   done

Yeah, I do something roughly like that, now.  I've just always thought it'd be
more elegant and generically useful to have backrefs.  :)

-- 
rjbs



msg30044/pgp0.pgp
Description: PGP signature


Re: most commonly used regex lib for awk/frep/mutt/sed?

2002-08-01 Thread Ricardo SIGNES

On Thu, Aug 01, 2002 at 01:47:37PM +0200, Sven Guckes wrote:
 * Erik Christiansen [EMAIL PROTECTED] [2002-08-01 07:48]:
  While procmail seems to be out on a long plank in the
  middle of a swamp, it would be cosmically empowering to be
  able to move between mutt, vim, awk, and grep without
  tripping over too many differences in regex dialects.
 
  Is this too ambitious a wish?
 
 unfortunately, yes.
 
 let's assume you could make this change within a day.
 how many setup files, scripts, shell aliases etc
 would have to be adjusted?  can you give this service?

./configure --enable-pcre

echo  ~/.muttrc set pcre_acknowledge=on # to avoid PCRE warnings on startup

-- 
rjbs



msg30052/pgp0.pgp
Description: PGP signature


Re: most commonly used regex lib for awk/frep/mutt/sed?

2002-08-01 Thread Ricardo SIGNES

On Thu, Aug 01, 2002 at 08:22:36AM -0400, Ricardo SIGNES wrote:
 
 echo  ~/.muttrc set pcre_acknowledge=on # to avoid PCRE warnings on startup

Ok, so I don't know how to call echo, and s/=on/yes/

Still, you get the picture.

-- 
rjbs



msg30054/pgp0.pgp
Description: PGP signature


RFE: regex backrefs

2002-07-31 Thread Ricardo SIGNES

I know this has been brought up before, but I just thought I'd voice my deep
desire:  mutt should be able to have backrefs to its regexen.  If I get a
'vote' in future development, this is how I would cast it.  My C is crappy, or
I'd shut up and code it.

Imagine the power available in something as simple as:


folder-hook =friends\.([a-z]+)  my_hdr From: jsmith-\[EMAIL PROTECTED]

This is only a tiny fraction of the Supreme Cosmic Power that this could
unlock.

-- 
rjbs



msg29996/pgp0.pgp
Description: PGP signature


Re: RFE: regex backrefs

2002-07-31 Thread Ricardo SIGNES

On Wed, Jul 31, 2002 at 05:08:25PM +0200, Roman Neuhauser wrote:
  my deep desire:  mutt should be able to have backrefs to its regexen.
 
 this reminds me: how hard would it be to make mutt use libpcre?

And, how much would it slow down / bloat up mutt, if at all?

-- 
rjbs



msg29997/pgp0.pgp
Description: PGP signature


Form Letters

2002-05-23 Thread Ricardo SIGNES

Does anyone have a good method for writing form letters with mutt?

Ideally, I'd like to have a folder that acts like drafts, but doesn't store
To information and doesn't delete messages once they're sent.

Maybe the best thing is to make a keybinding that changes the value of
$postponed and some other variables temporarily.

Does anyone have a pre-packaged solution for this?

-- 
rjbs



msg28298/pgp0.pgp
Description: PGP signature


Re: [mutt-users] Form Letters

2002-05-23 Thread Ricardo SIGNES

On Thu, May 23, 2002 at 11:45:31AM -0400, Tim Kennedy wrote:
 I just store them as dot-files. in my home directory, and using vim as
 my editor just read them in with :r .file.

I thought I might do that -- but it'd be nice to have the postponed-style
choose for form letters. :)

-- 
rjbs



msg28301/pgp0.pgp
Description: PGP signature


Re: Form Letters

2002-05-23 Thread Ricardo SIGNES

On Thu, May 23, 2002 at 10:45:46AM -0500, David T-G wrote:
 ...and then Ricardo SIGNES said...
 % Ideally, I'd like to have a folder that acts like drafts, but doesn't store
 % To information and doesn't delete messages once they're sent.
 
 Have you looked at resend-message (bound to esc-e by default)?  It uses a
 message as a template, and you could probably store the template without a
 To: list and then fill it in (probably also even using aliases).  I don't
 think it deletes the message once it's resent.  Play with it and see.

I hadn't ( looked at | thought of ) that yet.  I'll give it a try, it might
be just what I want.

 % Maybe the best thing is to make a keybinding that changes the value of
 % $postponed and some other variables temporarily.
 Perhaps a universal binding that quickly changes you to =Drafts and then
 a binding in there that maps enter to resend-message so that you
 don't have to hit esc-e...

Well, I won't want to store these in =drafts, as I'll constantly get bugged
about recall postponed? -- which is nice when it was postponed, but annoying
if I just have form letters.

Changing to =forms, though, and doing that... I think I'll do this:
make a one-keystroke binding to switch to =forms
put a folder-hook on forms to remap enter
make a default folder-hook to map enter normally

I'll let y'all know how it goes.

-- 
rjbs



msg28303/pgp0.pgp
Description: PGP signature


Re: Form Letters

2002-05-23 Thread Ricardo SIGNES

My solution (JEEZ! I love mutt!):

macro index Escf c=forms\r
folder-hook .   bind index return display-message
folder-hook .   bind index escreturn noop
folder-hook =forms  bind index return resend-message
folder-hook =forms  bind index escreturn 
display-message

Should require no explanation. 

Thanks for the idea!

-- 
rjbs



msg28305/pgp0.pgp
Description: PGP signature


Re: Form Letters

2002-05-23 Thread Ricardo SIGNES

On Thu, May 23, 2002 at 11:19:02AM -0500, David T-G wrote:
 ...and then Ricardo SIGNES said...
 % folder-hook .   bind index return display-message
 % folder-hook .   bind index escreturn noop
 
 Quite good of you to clean up after yourself, but how worried are you
 really that you might accidentally hit esc-enter in a non-form folder and
 suddenly be thrust into the pager when you didn't expect it?
 
 That is, you might find it simpler to just leave the esc-enter macro
 active all of the time.

Well, now that those lines are in .muttrc, it'd be more work to remove them
than not! :)

-- 
rjbs



msg28309/pgp0.pgp
Description: PGP signature


Re: OT: procmail, \/, and mailing lists.

2002-04-26 Thread Ricardo SIGNES

On Fri, Apr 19, 2002 at 11:48:45PM -0600, Rob 'Feztaa' Park wrote:
 I know I could do something like this (untested):
 
 :0:
 * ^TO_\/.*@qux\.com
 ~/mail/$MATCH
 
 But, the problem being that the foldernames would be the actual address
 of the list ('[EMAIL PROTECTED]' instead of 'foo', which is what I really
 want).

I do something like this, and use sed.

Try something like this (untested): 

MLIST=`echo $MATCH | sed -e 's/\(foo\|bar\|baz)@qux\.com*/\1/i'`
~/mail/$MLIST

-- 
rjbs



msg27687/pgp0.pgp
Description: PGP signature


Re: IMAP Subscription and Mailboxes

2002-04-04 Thread Ricardo SIGNES

On Wed, Apr 03, 2002 at 11:00:50PM -0500, David T-G wrote:
 % Is there a way to tell mutt to either:
 %  a) use my IMAP subscriptions as my 'mailboxes' (to check for new mail)
 %  b) tell mutt to consider all mailboxes as 'mailboxes'
 No, not really.

:-(

 % I don't like having to list all of my 50+ folders, to which procmail writes,
 % just to have it tell me if there's new mail in them.
 So whip up a little script that goes through your procmail rules and
 grabs where you write and source that in your mailboxes line.

My procmail rules use regexes to generate folder names on the fly!

Oh well.  Maybe I'll just try and putz with the mutt source.

-- 
rjbs



msg26659/pgp0.pgp
Description: PGP signature


Re: IMAP Subscription and Mailboxes

2002-04-04 Thread Ricardo SIGNES

On Thu, Apr 04, 2002 at 07:57:51AM -0500, David T-G wrote:
 ...and then Ricardo SIGNES said...
 % My procmail rules use regexes to generate folder names on the fly!
 
 Hmmm...  So have procmail generate the folder name and then hand it off
 to a script which checks a list to see if it's known and adds it if it
 isn't and then have your mutt mailboxes script utilize that file, mebbe.

I'm thinking I'll make a Makefile for my .muttrc.  It's getting scary, anyway.

 % Oh well.  Maybe I'll just try and putz with the mutt source.
 That's always nice, too.  Let us know if you come up with anything!

I will.  But expect nothing!

-- 
rjbs



msg26687/pgp0.pgp
Description: PGP signature


IMAP Subscription and Mailboxes

2002-04-03 Thread Ricardo SIGNES

Hello!

Is there a way to tell mutt to either:
 a) use my IMAP subscriptions as my 'mailboxes' (to check for new mail)
 b) tell mutt to consider all mailboxes as 'mailboxes'

I don't like having to list all of my 50+ folders, to which procmail writes,
just to have it tell me if there's new mail in them.

-- 
rjbs



msg26641/pgp0.pgp
Description: PGP signature


Re: OT: OS / distro / kernel

2002-03-28 Thread Ricardo SIGNES

On Thu, Mar 28, 2002 at 07:47:29AM -0800, Michael Elkins wrote:
 Mike Schiraldi wrote:
Except that Linux is only the kernel.  Linux + GNU + some other files and
configuration is the OS.  That, plus some applications is the distribution.
   
   You're wrong.
  
  How is he wrong?
 
 In the computer science sense, an operating system is the piece of
 software which interfaces with the hardware.  In many cases this is just
 the kernel.  Generically people refer to as OS as the collection of all
 software plus the kernel.  But technically, the Linux kernel is an
 operating system in the true sense of the word (all the user apps aren't
 really necessary to run the computer, they're just a convenience ;-).
 
Like many other definitions of recent concepts, this is not hard and fast, and
depends on where you find your definition.  I will gladly cede that in oldskool
UNIX parlance, the kernel is the operating system, and even such low-level
programs as init(8) are technically user-space apps.

Generally, though, it's been my experience that the usage of 'operating system'
now refers also to user-space system-controlling processes.  Probably, this
could be considered a bastardization stemming from DOS's monolithic stance on
OS tasks.  

The question of which is right is probably flame material.  We both have our
reasons to say we're right.  Based on something like Bach's Design of the UNIX
Operating System, the kernel is technically the OS.  Based on the definition
of GNU, many user-space applications are also the OS.

And that's all I have to say about that.

-- 
rjbs



msg26361/pgp0.pgp
Description: PGP signature


Re: M$ Outhouse E. for UNIX

2002-03-27 Thread Ricardo SIGNES

On Wed, Mar 27, 2002 at 09:33:36AM -0500, Shawn McMahon wrote:
 
 Think of it as like a Linux distribution.  Linux is the OS, RedHat or
 Debian is the distribution.  Saying Solaris is like saying Debian,
 only slower and less free.  :-)
 
Except that Linux is only the kernel.  Linux + GNU + some other files and
configuration is the OS.  That, plus some applications is the distribution.

-- 
rjbs



msg26323/pgp0.pgp
Description: PGP signature


Re: how much CPU?

2002-01-27 Thread Ricardo SIGNES

On Sun, Jan 27, 2002 at 07:49:54AM -0800, Ken Weingold wrote:
 I have one mailbox that has A LOT of messages in it, as in quite a few
 thousand.  It is in mbox format.  For mutt to open it as quickly as
 possible, it is dependent on processor speed?  I moved my mail to a

It's dependent on a lot of things:  hard drive speed, processor speed, 
and memory.  IE: all those hardware issues.

I'd suggest using Maildir instead of mbox -- my experience has been that 
Maildir is faster.  There's much less to worry about in parsing a Maildir
entry -- every file is one message and starts with headers.  There's more
fh opening and closing, to be sure, but you may find it faster.  Give it
a try.

-- 
rjbs



msg23863/pgp0.pgp
Description: PGP signature


Re: available MDA's: are you satisfied?

2002-01-24 Thread Ricardo SIGNES

On Fri, Jan 25, 2002 at 02:58:20AM +0100, Roman Neuhauser wrote:
 looks like there's just two MDA's in use: Procmail, and Maildrop. Both
 have their fine (and not so fine) points, which I'll summarize briefly
 (YMMV):

Consider perl's Mail::Audit module.

-- 
rjbs



Re: naming the pgp sig attachment.

2002-01-08 Thread Ricardo SIGNES

On Tue, Jan 08, 2002 at 08:01:47AM -0500, Walt Mankowski wrote:
 On Tue, Jan 08, 2002 at 01:57:47PM +0100, Nick Wilson wrote:
  Is there a way of giving the gpg signiture a default name like
  'nicks_electronic_signiture' or something equally as clear?
  
  On some clients it's coming up labled the same as the subject and on
  others, some weird default like 'attach0023'
  
  Most confusing.
 
 Why do you care what the attachment is named?  Mutt should take care
 of everything for you behind the scenes.

For people who don't run mutt and basically never will, but to whom we
wish to speak anyway (my mom, for example), attachments like AT029102.TXT
are confusing.  If it was called SIGNATURE.TXT or something, she might
more easily understand it and ignore it.  

Et cetera.

-- 
rjbs



msg22581/pgp0.pgp
Description: PGP signature


Re: signed emails, why ?

2002-01-07 Thread Ricardo SIGNES

On Mon, Jan 07, 2002 at 12:52:25PM +, Steve Kennedy wrote:
 Why does everyone send signed emails to the list, is it always
 necessary ?
 It slows reading down, and digests dont look so nice ...
 I can understand that certain things should be signed, but it
 seems more than not are now signed.

This was answered on the list less than a week ago.

My answer, one of a few:

Signing messages, even if their content is harmless and relatively unimportant
is a good practise.  If you only sign 'important' messages, then it's easy for
people to forge messages from you -- they don't need to sign it.  The policy
should be that if it isn't signed, it isn't from you.

If you sign everything, that policy is realistic.  If you sign only some
messages, it is not.

-- 
rjbs



msg22447/pgp0.pgp
Description: PGP signature


Re: Why use pgp with mutt?

2002-01-04 Thread Ricardo SIGNES

On Fri, Jan 04, 2002 at 10:54:46PM +0100, Nick Wilson wrote:
 Hi folks
 I've been seeing 'pgp signitures' and suchlike since joining this group
 and I'm a bit baffled. 
 Why the need to encrypt harmless text? 
 It looks interesting and I wondered if you might share some opinions and
 pointers with me?

Ah, you mistake signature and encryption! :)

A signature is just that -- it's a cryptographic message that proves that you
'signed' (and, presumably) sent a message.  If I send you a message that I've
signed with gpg, you can be sure that I wrote it.  (Or at least that I approved
it.)

Even without GPG, though, you can read the body of the message, as it isn't 
encrypted.

Signing messages, even if their content is harmless and relatively unimportant
is a good practise.  If you only sign 'important' messages, then it's easy for
people to forge messages from you -- they don't need to sign it.  The policy 
should be that if it isn't signed, it isn't from you.  

If you sign everything, that policy is realistic.  If you sign only some 
messages, it is not.

No one sends encrypted messages to a mailing list unless there's a shared key
for decrypting messages -- and that would be an unusual situation.

-- 
rjbs



msg22287/pgp0.pgp
Description: PGP signature


Re: Browser problem on text/html

2001-11-02 Thread Ricardo SIGNES

On Thu, Nov 01, 2001 at 06:43:58PM -0900, Tim Johnson wrote:
 When I receive an email in text/html, I do the following
 press 'v' and then the enter key.
 
 I then receive the following error message:
   sh: syntax error near unexpected token `openURL(''
   sh: -c: line 1: `netscape -remote openURL('/tmp/muttJQ7lNS')'

Easy to fix!

 1)What can I do to correct this and launch a browser?

You need to set up how MIME message types are handled, and change that netscape
line to work with (a) your shell (b) your browser.

 2)Where is documentation on this?

Read `man 5 muttrc`, specifically the section on auto_view.  It will further
direct you to `man 5 mailcap`, which is the system config file for MIME type
handling.

Happy mutting.

-- 
rjbs

 PGP signature


coloring the indicator

2001-10-25 Thread Ricardo SIGNES

YACQ:

I'd really like to colorize my indicator.  I no longer use %Z in my
index_format, and use index coloring to pass along the flag-info I care about.
Unfortunately, that means that I can't tell what's up with the message
currently under the indicator.  Any hints on using patterns to hilight the
indicator somehow?

-- 
rjbs

 PGP signature


Colorizing Headers full width

2001-10-20 Thread Ricardo SIGNES

Hello!

I have some rules in my .muttrc to colorize headers.  Here's an example:

color hdrdefault brightwhite blue

This colorizes the header only until the end of the string.  This is pretty
ugly when the string is, say, 30 characters long.

I'd like to make it colorize all the way until the end of the line on which
the header terminates.

Is there a trick?

-- 
rjbs

 PGP signature


Colorizing Headers full width

2001-10-20 Thread Ricardo SIGNES

Hello!

I have some rules in my .muttrc to colorize headers.  Here's an example:

color hdrdefault brightwhite blue

This colorizes the header only until the end of the string.  This is pretty
ugly when the string is, say, 30 characters long.

I'd like to make it colorize all the way until the end of the line on which
the header terminates.

Is there a trick?

-- 
rjbs

 PGP signature


mostly-generic mutt hooks

2001-08-07 Thread Ricardo SIGNES

Greetings.

I'd like to set up a folder hook so that when entering a folder that looks 
like =bar/foo, my From is set to [EMAIL PROTECTED]

While I know I can do this pretty easily with one folder hook per folder,
I wonder if I can use regex to simplify it.  For example, something like

folder-hook /=(\d+)/(\d)+/ set from_addr=samael-$2@$1.manxome.org

(I know this is probably quite wrong.  I have less-than-extensive 
experience with mutt regex and hooks.  I wrote my muttrc and forgot about
it -- but I remember basically how it works.

I assume going back to normal can be handled with a simple !pattern...

Any suggestions?

-- 
rjbs

 PGP signature


Re: Newsgroups

2001-07-13 Thread Ricardo SIGNES

In a message dated Thu, Jul 12, 2001 at 04:06:50PM -0700, Ryan Cook wrote:
 OK...I don't see it anywhere in the man pages or the Mutt manual.  Is
 there a way to subscribe to newsgroups through the use of Mutt...or
 view newsgroups in Mutt...like if I want to sign up for
 alt.comp.os.linux or something?

Mutt is a mail user agent, not a news client.  I suggest you google for
'slrn'.  It's my preferred news agent.

-- 
rjbs

 PGP signature