Re: New mail notify with Maildir spools?

2002-03-10 Thread Benjamin Smith

Can I just ask what appears in the list when you go into the mailboxes
listing in mutt (change-folder?tab)?  In this list mutt will only
show mailboxes that it can read, so this should diagnose whether mutt is
getting the list of mailboxes. So if mutt does show the mailboxes then
its a timestamp problem, it it shows some its a multi-line problem, and
if none are shown then its a problem with the path names output in the
scipt (as mentioned in another post =+ is not valid = or + alone should
expand to $folder).

Hope that helps,

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg25235/pgp0.pgp
Description: PGP signature


Re: How to bind esct to pager as it's done to index?

2002-03-02 Thread Benjamin Smith

On Sun, Mar 03, 2002 at 09:08:41AM +0200, Holger Lillqvist wrote:
 It seems you didn't understand parv's comment. The function tag-thread
 isn't available in the pager. So it is pointless to try to bind a
 non-existent function to a key...

Yes, but you could write a macro to quit the pager than tag the thread:

macro pager \eT quittag-thread Tag the current thread

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg24926/pgp0.pgp
Description: PGP signature


Re: no 'message-hook'?

2002-02-24 Thread Benjamin Smith

On Mon, Feb 25, 2002 at 06:49:13AM +0100, Erik van der Meulen wrote:
 Am I right in assuming my version does not have this feature?

Yes, this appeared sometime around 1.3.2x, although it is certainly
worth upgrading as the 1.3 versions seem quite stable and have many new
features (plus improved IMAP) over 1.2.

   Is there
 some alternative I can use?

One option is just to unignore the X-Spam headers for every message.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg24741/pgp0.pgp
Description: PGP signature


Re: Selecting messages in my threads

2002-02-22 Thread Benjamin Smith

On Fri, Feb 22, 2002 at 07:00:41AM -0500, Ben Logan wrote:
 I wanted to do the same thing, as well as watch threads that I
 didn't start.  The solution I came up with could stand vast
 improvement, but is working for me right now.

One way I could imagine doing this is to use the mutt-1.3.dgc.xlabel.3
patch.

1. Setup a macro to flag a message as being watched
macro index w 'labelwatchReturn' 'Watch current message'

2. Setup a scoring rule using ~y
score ~y watch +100

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg24682/pgp0.pgp
Description: PGP signature


Re: How can I underline the current index entry?

2002-02-10 Thread Benjamin Smith

On Sat, Feb 09, 2002 at 04:01:49PM -0600, Jeremy Blosser wrote:
 It can't be done.  Mono attributes are not currently available when color
 attributes are being used.

Why is this? This is a mutt limitation isn't it, as other ncurses apps
(w3m) can colour *and* underline, perhaps this should get placed on a
TODO list?

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg24385/pgp0.pgp
Description: PGP signature


Re: Sorting in mailbox question

2002-02-04 Thread Benjamin Smith

On Mon, Feb 04, 2002 at 02:40:48PM -0600, Kenneth Pronovici wrote:
 I guess what I'm looking for is a way to sort by thread/subject/date
 rather than just thread/subject.  It doesn't look like I can use sort
 and sort_aux to do this.  Anyone have a suggestion for some other way to
 accomplish this (other than just using procmail to put these things in a
 different folder)?

If any developers are listening perhaps one solution for the future
would be to replace $sort and $sort_aux with just one $sort variable
that contained a string like thread/subject/date which would act as
multiple levels of $sort_aux.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg24192/pgp0.pgp
Description: PGP signature


Re: regex isn't working in color index ~C ... context

2002-02-03 Thread Benjamin Smith

On Sun, Feb 03, 2002 at 03:38:18PM -0500, parv wrote:
 hi,
 
 i tried...
 
 #color index brightwhite default ~C $alternates
 color index  brightwhite default ~C (parv_@yahoo\.com|parv@(localhost|.*holy\.cow))
 
 
 ...i get error message while starting mutt...
 
 Error in /home/parv/cf/mail/mutt.cf, line 58: parentheses not balanced
 
 
 ...i don't see how above regex for ~C could be invalid.  when i tried
 w/o end parentheses, i get...
 
 Error in /home/parv/cf/mail/mutt.cf, line 59: error in pattern at: 
parv@(localhost|.*holy.cow)
 
 ...so, is not possible to specify a regex for ~C even though manual
 suggests one can...
 
   ~C EXPR  message is either to: or cc: EXPR
   ...
   In the above, EXPR is a regular expression.

Easily solved. This is due to mutt's weird parsing of its extended
regexps that means the brackets get interpreted as part of the ~
patterns stuff instead of EXPR, try this
color index  brightwhite default ~C '(parv_@yahoo\.com|parv@(localhost|.*holy\.cow))'

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg24162/pgp0.pgp
Description: PGP signature


Re: Folder Hook malfunction

2002-02-01 Thread Benjamin Smith

On Fri, Feb 01, 2002 at 01:12:53PM -0800, Michael Montagne wrote:
 Now it appears that it's the listing of multiple files that doesn't
 work:
 folder-hook . push T'~d2w !~F'enterD'~T'enter  WORKS
 folder-hook . !mjmsave !rath push T'~d2w !~F'enterD'~T'enter DOES
 NOT WORK

folder-hook uses a re to match the folder, so to match multiple files
one could use:

folder-hook . push T'~d2w !~F'enterD'~T'enter # from the bottom
folder-hook (mjmsave|rath) push T'~d2w !~F'enterD'~T'enter # from the top line

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg24122/pgp0.pgp
Description: PGP signature


Re: how much CPU?

2002-01-27 Thread Benjamin Smith

On Sun, Jan 27, 2002 at 11:30:04AM -0500, Derek D. Martin wrote:
 At some point hitherto, Ricardo SIGNES hath spake thusly:
  It's dependent on a lot of things:  hard drive speed, processor speed, 
  and memory.  IE: all those hardware issues.
 
 Much more drive speed and memory than cpu though, most likely in that
 order unless your mailboxes are HUGE and the amount of available RAM
 is TINY. 

CPU does become important if you're using threading as mutt needs to
trawl through the mailbox trying to match up threads.  This is further
slowed is $strict_threads are unset as it needs to play with
$reply_regexp on every message.

Useless info:
  A gui needs to respond with in 0.25 s to feel responsive to a users.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg23866/pgp0.pgp
Description: PGP signature


Display of email addresses in the index

2002-01-23 Thread Benjamin Smith

Hi,

One (hopefully easily answered) question:

In my index_format I'm using %f to show the From: address of the
message. Sometimes people have a From: header like this:

,-
| A Good Person [EMAIL PROTECTED]
`-

(note: they don't all use aol)

In the index this displays with the quotation marks included and this
looks kinda weird, I'm just wondering if this is correct behaviour, and
even if it is, what can be done about it.

TIA.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg23600/pgp0.pgp
Description: PGP signature


Re: Display of email addresses in the index

2002-01-23 Thread Benjamin Smith

On Wed, Jan 23, 2002 at 11:34:36AM -0800, Will Yardley wrote:
 i suppose you could strip this out somehow, but i don't really see the
 point personally.

1. It doesn't look right
2. If they're added as protection against weird characters, shouldn't
there be a consistent method to remove them again?
3. It uses up a character in my index view using up screen space and
chopping ends of names.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg23611/pgp0.pgp
Description: PGP signature


Re: Display of email addresses in the index

2002-01-23 Thread Benjamin Smith

On Wed, Jan 23, 2002 at 04:30:31PM -0500, David T-G wrote:
 What about just using %F instead?

Yes, that what I want, thanks. Should have read the manual.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg23634/pgp0.pgp
Description: PGP signature


Re: Hook?

2002-01-16 Thread Benjamin Smith

On Wed, Jan 16, 2002 at 02:56:04PM +0100, Philip Wittamore wrote:
 Hi,
 
 Newbie question:
 
 Is it possible to have 
 
 set record = outbox depending on sender
 
 thanks,
 Phil.

You can use fcc-hook for setting the record folder based on the
recipient, if you're changing $from in a hook to get different senders,
you can just set $record where ever you set $from.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg23162/pgp0.pgp
Description: PGP signature


Re: 1.3.25/pgp

2002-01-14 Thread Benjamin Smith

On Mon, Jan 14, 2002 at 02:03:52PM +0100, René Clerc wrote:
 There seem to be two patches out there that fix this. The last one was
 posted to mutt-dev yesterday by Thomas Roessler, and I believe it has
 been merged with cvs now. I'll attach it for convenience, although I
 still use the former patch.

I know this may seem a bit stupid but I can't find on the mutt.org
webpages any mention of an anonymous cvs server. Is there one? And if so
how does one access it?

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg23099/pgp0.pgp
Description: PGP signature


Re: Like to see your script

2002-01-12 Thread Benjamin Smith

In the script it mentions that the message can't be piped through it
since there is then no access to stdin to prompt the user. One way round
this is to do this:

open(TTYOUT, /dev/tty);
open(TTYIN, /dev/tty);
print TTYOUT Hello World!;
$abc = TTYIN;
close(TTYIN);
close(TTYOUT);

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22984/pgp0.pgp
Description: PGP signature


Re: A little macros help...

2002-01-12 Thread Benjamin Smith

On Sat, Jan 12, 2002 at 12:02:22PM +0100, Nick Wilson wrote:
 
 Hi everyone.
 I've been trying to work out how to do this
 
 Remap the 'G' key to execute a shell command.
 
 So instead of '!' followed by the command I'd just like to hit 'G' and
 have it done automatically.
 
 I've been looking through the manual and it doesn't look like it's
 possible. Please feel free to prove me wrong :)

That is indeed possible using a simple macro like this:

macro index 'G' 'shell-commandecho Hello World!Return' 'Help message'

This is a section in the manual on this if you look for the keyword
'macro'.

HTH  HAND.

(OT: When I reply to traditional PGP posting like this one, I get the
signature data inserted into the reply, is there any way this can be
avoided? TIA).

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22991/pgp0.pgp
Description: PGP signature


Re: A little macros help...

2002-01-12 Thread Benjamin Smith

On Sat, Jan 12, 2002 at 12:50:32PM +0100, Nick Wilson wrote:
 * On 12-01-02 at 12:47 
 * Benjamin Smith said
 
  On Sat, Jan 12, 2002 at 12:02:22PM +0100, Nick Wilson wrote:
   
   Hi everyone.
   I've been trying to work out how to do this
   
   Remap the 'G' key to execute a shell command.
   
  That is indeed possible using a simple macro like this:
  
  macro index 'G' 'shell-commandecho Hello World!Return' 'Help message'
  
  This is a section in the manual on this if you look for the keyword
  'macro'.
  
 
 Thanks, I never saw the shell-command bit when I looked. I just did it
 with macro index G !my_commandreturn

Its good practise to use the function name in brackets, as it means that
even people with weird mapping can use the macro.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22994/pgp0.pgp
Description: PGP signature


Re: A little macros help...

2002-01-12 Thread Benjamin Smith

On Sat, Jan 12, 2002 at 04:07:49PM +0100, Michael Wagner wrote:
 On Samstag, 12. Jan. 2002 at 11:41:30, Benjamin Smith wrote:
  
  (OT: When I reply to traditional PGP posting like this one, I get the
  signature data inserted into the reply, is there any way this can be
  avoided? TIA).
  
 Hello Benjamin,
 
 press first ESCP on the mail. Then mutt verifies the signatur and
 when you answer mutt won't include the signatur in the reply.
 
 Hth Michael

Thanks.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg23007/pgp0.pgp
Description: PGP signature


Re: mutt mime.types

2002-01-12 Thread Benjamin Smith

On Sat, Jan 12, 2002 at 05:58:56PM +0100, Roman Neuhauser wrote:
 Hi there,
 
 some time ago I reported problems with mailcap handlers for tar.(gz|bz2)
 files. I didn't investigate it further until yesterday when I tried (and
 failed) to get mutt recognize a file by its extension no matter where I
 put the ext - MIME type mapping (i. e. /usr/local/etc/mime.types or
 ~/.mime.types).
 
 I got really bothered by this, and run mutt in strace. While I could see
 mutt opening ~/.mailcap, there was no mention of mime.types. So I got
 mutt log debug info, but this didn't show mutt using mime.types either.
 Might be the right piece of code doesn't call the dprint() macro; the
 only place where the code mentions mime.types is check_mime_type() in
 sendlib.c, however. Plus, it looks like this function is only called
 when you *compose* a message (because then I get the right content
 type).
 
 So... could someone point me to the function which mutt uses to
 determine the MIME type of the attachments when you view a message?

I've always believed that the mime type of an attachment was actually
stored in the mime headers and so was independant of the file name. Of
course when composing a message, mutt needs a method of mapping
extensions to mime types and so uses mime.types, but when viewing a
message this is unnecessary.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg23013/pgp0.pgp
Description: PGP signature


Re: Suggestion for List Etiquette

2002-01-11 Thread Benjamin Smith

On Fri, Jan 11, 2002 at 06:37:52PM +0100, Roman Neuhauser wrote:
 I guess that quite a few of the subscribers are just devoted to
 flooding this list with chitchat. I would suggest creating
 mutt-chat, so that those who feel the urge to send non-technical, OT
 stuff to mutt-users would have a place to go.

Yeah, but the problem is that when 'chitchat' spins off from another
thread, it rarely (in my experience) ends up getting moved.  Although if
people think that it will actually get used, I would support it

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22959/pgp0.pgp
Description: PGP signature


Re: Working with mbox

2002-01-06 Thread Benjamin Smith

On Sun, Jan 06, 2002 at 01:30:35AM -0700, Rob 'Feztaa' Park wrote:
 Alas! Benjamin Smith spake thus:
  The ways that script works is by outputting the muttrc to a tempory
  file, the name of which is outputted for source, but what you can do is
  just to put:
  
  `~/bin/do-whatever.sh`
  
  In the muttrc and mutt will interpret the output of the shell script
  without the need of tempory files.
 
 Nope, that was the first thing I tried, didn't work. I had to modify the
 script to output the mbox hooks to a temp file, and then output the
 tempfile's name to stdout, which could then be sourced in the .muttrc.

Strange, I seemed to work fine with me when I tried

`echo push ?`

so that mutt would always popup the help screen.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22377/pgp0.pgp
Description: PGP signature


Re: News reader that's good with mutt?

2002-01-06 Thread Benjamin Smith

On Sun, Jan 06, 2002 at 03:45:11PM +0100, Nick Wilson wrote:
 * Thorsten Haude [EMAIL PROTECTED] [020106 15:40]:
  Moin,
  
  * Nick Wilson [EMAIL PROTECTED] [02-01-06 14:26]:
  * Thorsten Haude [EMAIL PROTECTED] [020106 14:22]:
   * David T-G [EMAIL PROTECTED] [02-01-06 12:55]:
   You should try replying in context instead of at the bottom; it's even
   better ;-)
   Yeah, and we like totally unlike anything that would made mails hard
   to read for no good reasons.
  So does that mean you are for 'replying in context' or against?
  I couldn't understand your sentence.
  Sorry to confuse you, I was only referring to an old quarrel with
  David.
  
  IMHO you should make reasonable bits out of the mail you answer and
  write your answer in each context.
  
  Thorsten
  -- 
  There is no drug known to man which becomes safer when its
  production and distribution are handed over to criminals.
 
 Problem is that I find that format more confusing and prefer to only
 quote if the point I refer to _really_ needs it. (like it's a really
 long mail)
 
 I take it that this topic is much debated?
 Or do I constitute a minority? :)

Its also good if people don't quote signatures as people names are given
in the attrib lines.


-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22394/pgp0.pgp
Description: PGP signature


Re: Working with mbox

2002-01-05 Thread Benjamin Smith

On Sat, Jan 05, 2002 at 10:11:10AM -0700, Rob 'Feztaa' Park wrote:
 Alas! Gerhard Siegesmund spake thus:
  You could put that in a script such as the one I've attached, and run
  it from .muttrc like this:
  source `$HOME/bin/mutt-prep folders=$HOME/mail`
Thanks for your help, guys, this is what I've come up with:
my .muttrc contains this line:
source `~/bin/mbox-hooks`
   This has been a great discussion.  I didn't know mutt could source the
   output of a command.
  
  Which version of mutt does this? I am using 1.2.5.1i and I just get an
  error trying to source the output of a command. TIA
 
 I'm fairly sure that mutt will only source the output of a command if
 the output of a command is a filename for mutt to source :)
 
 The .muttrc is fairly robust. You can put almost any shell command into
 backticks (``), and it will be as though the output of that command is
 actually in the .muttrc file. This is why mutt is so much better than
 pine :)
 
 -- 
 Rob 'Feztaa' Park
 [EMAIL PROTECTED]
 --
 The perfect computer has been developed. You just feed in your
 problems and they never come out again.
   -- Al Goodman

The ways that script works is by outputting the muttrc to a tempory
file, the name of which is outputted for source, but what you can do is
just to put:

`~/bin/do-whatever.sh`

In the muttrc and mutt will interpret the output of the shell script
without the need of tempory files.


-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22342/pgp0.pgp
Description: PGP signature


Re: Hope the patch for X-label editing can be merged into mutt soon

2002-01-03 Thread Benjamin Smith

On Fri, Jan 04, 2002 at 10:35:00AM +1100, Cameron Simpson wrote:
 On Tue, Jan 01, 2002 at 10:11:48PM +0800, Charles Jie [EMAIL PROTECTED] wrote:
 | That's exactly the function I want.
 | 
 | But because it's a sourcer-level patch that I need to
 | patch-compile-install. I'm afraid that might cause trouble with my
 | current installation from rpm package by Mandrake 8.1.
 
 Just do the install somewhere else. I routinely start my builds like this:
 
   ./configure --prefix=/opt/mutt-version
 
 eg
 
   ./configure --prefix=/opt/mutt-1.3.25-label-patch
 
 Then just run the new executable - no need to deinstall the Mandrake one.

According to the FHS, you can use /usr/local for this purpose as a
distribution should do nothing to the tree apart from initialise the
directory structure. /opt is meant for large software systems like
athena, gnome or kde.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22212/pgp0.pgp
Description: PGP signature


Re: A happy new year!

2002-01-02 Thread Benjamin Smith

On Wed, Jan 02, 2002 at 02:26:46AM -0700, Rob 'Feztaa' Park wrote:
  Happy 2002 to you all!
 
 Lets hope it turns out better than the last one!

Why? Did something bad happen in 2002BC?

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22087/pgp0.pgp
Description: PGP signature


Re: To log the time I spend in reading/writing a mail

2002-01-02 Thread Benjamin Smith

On Wed, Jan 02, 2002 at 03:58:15PM +0100, Cliff Sarginson wrote:
  Are the solution there? Or quick solution available?
  
 A stopwatch, and/or an alarm clock.
 Excuse me but this is Mr Dumb question of 2002 :)

I disagree, using a stopwatch means learning how to use it, then
remembering *to* use it. A completely automated system is much more
fool-proof and usuable even when you've forgotten your stopwatch.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22114/pgp0.pgp
Description: PGP signature


Re: GPG and \012

2002-01-02 Thread Benjamin Smith

The same bug also bites me, see in my pager I see a '?' instead of \012.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22134/pgp0.pgp
Description: PGP signature


Re: Getting pgp to work

2002-01-01 Thread Benjamin Smith

On Mon, Dec 31, 2001 at 07:08:57PM -0500, Ian P. Thomas wrote:
   Here is the error message that appears after I try and sign my 
 mail with my gpg key:
 
 Can't open PGP subprocess!: No such file or directory (errno = 2)
 
   I figured that it couldn't find the ~/.gnupg directory, but it's 
 there.  I have set pgp_sign_as=my key id in my muttrc.  
   Here are the steps leading up to the error:
 1. Enter contents of message
 2. Hit p
 3. Hit s, my key id appears
 4. prompted for passphrase. I enter the passphrase
 5. the error comes up
 
   Any suggestions?
 
 Ian

If you're using the standard gpg.rc supplied with mutt, then the problem
would be not finding the gpg executable in your path. Can you run gpg
from the shell ok?

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22067/pgp0.pgp
Description: PGP signature


Re: Using message-hook to run messages through a filter

2002-01-01 Thread Benjamin Smith

(Neat feature: tagged reply)

On Mon, Dec 31, 2001 at 01:36:03PM +0100, Andre Majorel wrote:
 On 2001-12-28 18:22 +0100, Roman Neuhauser wrote:
 
   I thought that 
   
 message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle
   
   would do the trick but Mutt says pipe-message: unknown command.
  
  It's pipe-message (incl. the angle brackets) isn't it?
 
 I've tried that too and Mutt doesn't like it either.

If you're trying to call a function you need to push or exec it onto the
keyboard buffer ie.

message-hook ~f joe@blow\.com push 'pipe-message/usr/local/bin/unmangleReturn' 
(untested)
or
message-hook ~f joe@blow\.com exec pipe-message /usr/local/bin/unmangle (untested)

Although the method I use is in the next message as works 100%:

On Mon, Dec 31, 2001 at 01:37:39PM +0100, Andre Majorel wrote:
 On 2001-12-28 17:15 +0100, Nicolas Rachinsky wrote:
  On Fri, Dec 28, 2001 at 05:09:05PM +0100, Andre Majorel [EMAIL PROTECTED]
  wrote:
   I thought that 
   
 message-hook ~f joe@blow\.com pipe-message /usr/local/bin/unmangle
   
   would do the trick but Mutt says pipe-message: unknown command.
  
  I would try
  message-hook . unset display_filter
  message-hook ~f joe@blow\.com set display_filter=/usr/local/bin/unmangle
  
  but this is untested.
 
 Thanks, this works fine, at least for the viewing part of the
 deal. I guess we need a reply_filter variable.


-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22068/pgp0.pgp
Description: PGP signature


Outlook pgp compatability patch

2002-01-01 Thread Benjamin Smith

I've had a good look in the archives, but I've been unable to find the
URL for the outlookpatch, does anyone know where to find it?

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22069/pgp0.pgp
Description: PGP signature


Re: Getting pgp to work

2002-01-01 Thread Benjamin Smith

On Tue, Jan 01, 2002 at 03:21:09PM -0500, Ian P. Thomas wrote:
  If you're using the standard gpg.rc supplied with mutt, then the problem
  would be not finding the gpg executable in your path. Can you run gpg
  from the shell ok?
 
   I don't have a gpg.rc.  I installed mutt using the package system on NetBSD.
 What is the variable you need to set in mutt to tell it the path to gpg?  I can
 run gpg fine from the shell.
 

The variables you need to set are in the manual, see pgp_*_command. To
help I've attached a gzip'ed copy of gpg.rc (997 bytes) as it's very
small.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



gpg.rc.gz
Description: application/gunzip


msg22075/pgp0.pgp
Description: PGP signature


Re: Timestamps feature

2001-12-30 Thread Benjamin Smith

On Sat, Dec 29, 2001 at 10:28:41PM -0600, Felipe Contreras wrote:
 Hi,
 
 I really don't get this guys, why mutt whouldn't modify a timestamp after 
 modifying a mbox! And the worst is that it rely on the timestamps to know 
 when there are new msgs.
 
snip

The reason mutt does this is that a number of new mail notifier programs
(such as xbiff and pals) use the modification time to detect the arrival
of new mail. If mutt did modify the mtime, then everytime you (for
example) deleted an email, you would be notified of having new mail,
which I'm sure would annoy you a great deal more.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg22015/pgp0.pgp
Description: PGP signature


Case sensitivity in regular expressions

2001-12-28 Thread Benjamin Smith

Although the manual doesn't explicitly mention it, regular expressions in
mutt seem to be case insensitive. So even although mutt supports
[:lower:] and [:upper:], they do not work as expected and end up being
equivalent to [:alpha:]. So does anyone know solutions to this,
overrides in mutt, or any helpful patches.

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg21986/pgp0.pgp
Description: PGP signature


Re: Case sensitivity in regular expressions

2001-12-28 Thread Benjamin Smith

On Fri, Dec 28, 2001 at 12:40:26PM -0800, Gary Johnson wrote:
 On Fri, Dec 28, 2001 at 05:17:27PM +, Benjamin Smith wrote:
  Although the manual doesn't explicitly mention it, regular expressions in
  mutt seem to be case insensitive. So even although mutt supports
  [:lower:] and [:upper:], they do not work as expected and end up being
  equivalent to [:alpha:]. So does anyone know solutions to this,
  overrides in mutt, or any helpful patches.
 
 From the mutt manual:
 
   4.1.  Regular Expressions
 
   ...
 
   The search is case sensitive if the pattern contains at least one
   upper case letter, and case insensitive otherwise. 
 
 So it may be that the pattern must contain at least one literal
 upper-case letter to be case-sensitive and that [:upper:] doesn't count
 for that.  If using [:upper:] doesn't make the search case-sensitive, I
 would say that's a bug.

I must have missed that when I read that section. Thanks. Before I tried
[:upper:] I tried [A-Z] and it didn't seem to work either (I was doing
'~s [A-Z]' and it still showed messages *not* containing any upper case
letters). Perhaps 'bracketed' things somehow miss the check for upper
case letters. It probably doesn't check everything for upper case
letters as (presumably) something like ~C shouldn't get taken as one. I
had a quick glance at the source, but state machines and re compilers
are not really *that* fun.

 
 HTH,
 Gary
 
 -- 
 Gary Johnson   | Agilent Technologies
 [EMAIL PROTECTED]   | Spokane, Washington, USA
 http://www.spocom.com/users/gjohnson/mutt/ |

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg21988/pgp0.pgp
Description: PGP signature


Re: Configuration problems

2001-12-27 Thread Benjamin Smith

On Thu, Dec 27, 2001 at 08:29:00AM -0500, Philip Mak wrote:
 On Thu, 27 Dec 2001, [iso-8859-1] René Clerc wrote:
 
  * Skylar Thompson [EMAIL PROTECTED] [27-12-2001 14:10]:
 
  | (1) Vim no longer does syntax highlighting. It isn't major, but it did look
  | nice.
 
  set editor=vim -u ~/.muttvimrc +/^$
 
 It looks like you're using the code that I posted to this mailing list
 recently for better paragraph formatting (I recognize that set editor
 line). I'm guessing maybe something in my code is causing your syntax
 hilighting to be turned off. When you specify -u ~/.muttvimrc, that
 *overrides* your normal vim settings.
 
  Cool, but you didn't attache the ~/.muttvimrc. You could post that.
 
 Here's what he probably has in his .muttvimrc, assuming he just took what
 I posted:
 
 function! PrevPara()
   if !search(^[ ]*$, 'bW')
 1
   endif
 endfunction
 
 function! NextPara()
   if !search(^[ ]*$, 'W')
 $
 normal $
   endif
 endfunction
 
 set bs=indent,eol,start
 set formatoptions=tcqv
 set comments=nb:
 set tw=75
 set cpo-=
 map { :call PrevPara()ENTER
 map } :call NextPara()ENTER
 map C-J {gq}j
 imap C-J ESC{gq}j
 

To enable syntax colouring he needs a 'syntax on' command in there. I
believe its off by default, but turned on in the sample ~/.vimrc.

This is what I use for colouring:

if t_Co  2 || has(gui_running)
  syntax on
  set background=dark
  set hlsearch
endif

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg21939/pgp0.pgp
Description: PGP signature


Re: Bug? Pressing $ when new mail arrives

2001-12-27 Thread Benjamin Smith

On Thu, Dec 27, 2001 at 11:20:07AM -0500, Philip Mak wrote:
 On Thu, 27 Dec 2001, Brian Clark wrote:
 
   if new mail has arrived that mutt didn't see yet, it
   will show the new mail and *abort* the purge operation. Is this a bug/is
   there a workaround for this?
 
  If you don't want to be asked, I think you want this:
 
  ### delete
  ### Type: quadoption
  ### Default: ask-yes
  ### Controls whether or not messages are really deleted when closing or
  ### synchronizing a mailbox.
 
 That's not what I was talking about, actually. I was saying that when it
 asks me Purge 8 deleted messages? ([yes]/no): and I answer yes, it DOES
 NOT purge the messages if new mail has just arrived.
 

I've found this irritating too, but since it does no actual harm I don't
really worry about it, especially since I don't delete mail often. I
think I may happen because if the mailbox has been modified (mbox
format) mutt may not be able to identify the relevant messages to remove
easily?

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg21945/pgp0.pgp
Description: PGP signature


Re: Bug? Pressing $ when new mail arrives

2001-12-27 Thread Benjamin Smith

On Thu, Dec 27, 2001 at 05:53:40PM +0100, René Clerc wrote:
 * Benjamin Smith [EMAIL PROTECTED] [27-12-2001 17:47]:
 
 |  That's not what I was talking about, actually. I was saying that when it
 |  asks me Purge 8 deleted messages? ([yes]/no): and I answer yes, it DOES
 |  NOT purge the messages if new mail has just arrived.
 |  
 | 
 | I've found this irritating too, but since it does no actual harm I don't
 | really worry about it, especially since I don't delete mail often. I
 | think I may happen because if the mailbox has been modified (mbox
 | format) mutt may not be able to identify the relevant messages to remove
 | easily?
 
 I was thinking of that too, but since mutt still knows how to mark the
 messages to be deleted after the purge, why not delete them after the
 check... ?

Good question... Currently the code just does this (in
mbox_sync_mailbox):

/* Check to make sure that the file hasn't changed on disk */
if ((i = mbox_check_mailbox (ctx, index_hint)) == M_NEW_MAIL ||  i == M_REOPEN
{
  /* new mail arrived, or mailbox reopened */
  need_sort = i;
  rc = i;
  goto bail;
}

 
 -- 
 René Clerc  - ([EMAIL PROTECTED])
 
 To get what you want, STOP doing what isn't working.
 -Dennis Weaver

We could, but where's the fun of fixing it?

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg21950/pgp0.pgp
Description: PGP signature


Re: big mailbox v.s. rotated mailbox; thoughts

2001-12-27 Thread Benjamin Smith

On Thu, Dec 27, 2001 at 06:33:53PM +, Thomas Hurst wrote:
 * Philip Mak ([EMAIL PROTECTED]) wrote:
 
  A fine-grained rotation scheme might work better; e.g. I could have
  a primary folder that holds the last 3 months of messages, and an
  archive folder that holds everything else.
 
 I have a script scan all my mailspools (I use mbox) and move anything
 older than a week to archive/year/mailbox/month-year-mailbox -
 this keeps my active mail easily to hand, and searching for older mail's
 as easy as I need it to be.
 
 This is pretty similar to your idea, only it uses mbox and saves to a
 more structured format.

How does it scan your mailboxes, does it use grep mail or some other
methods? If its short could you perhaps post it?

TIA

 
 -- 
 Thomas 'Freaky' Hurst  -  [EMAIL PROTECTED]  -  http://www.aagh.net/
 -
 I couldn't remember when I had been so disappointed.  Except perhaps the
 time I found out that MMs really DO melt in your hand.
   -- Peter Oakley

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg21956/pgp0.pgp
Description: PGP signature


Re: Mailing list replies

2001-12-17 Thread Benjamin Smith

On Sun, Dec 16, 2001 at 11:36:49PM +0100, Andreas Landmark wrote:
 While we're on the subject of the difference of subscribe and lists, can
 anybody tell me how to get the functionality of subscribe (I.E.
 Mail-Followup-To set correctly), but still show the sender instead of
 the listname in the From-field in the mailbox-index?

One useful (default) keybinding is @ which tells you the From: header
in the status bar.


 
 (I'm sure there is a dead-easy solution that I've missed in the manual)
 -- 
 Andreas D Landmark / noXtension
 God is the tangential point between zero and infinity.
   -- Alfred Jarry

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg21696/pgp0.pgp
Description: PGP signature


Re: Mailing list replies

2001-12-16 Thread Benjamin Smith

On Sun, Dec 16, 2001 at 11:53:27AM +0200, Jussi Ekholm wrote:
 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  I wonder, what option in my .muttrc shall I use to make mutt reply lists
  like mutt-users properly, i.e. set To: [EMAIL PROTECTED],
  not To: user_who_sent_original@message. I compiled my .muttrc of 
  several example configs available on the net, but mostly it is derived 
  from http://www.linuxbrit.co.uk/downloads/dot.muttrc. Perhaps it should 
  be not To:, but Cc/Bcc: - I don't know. Or maybee mutt shall use 
  To:, Mail-Followup-To: or Sender: header fields to get mailing 
  list address - no ideas here.
 
 You need to put the following line in your ~/.muttrc:
 
 subscribe [EMAIL PROTECTED]
 
 Now, when you want to reply to a message, that belongs to a mailing
 list (you can define all your mailing lists just the same way), use
 'L' (list_reply) instead of 'R'. 
 
 So, just add all your mailing lists to your ~/.muttrc (or a 
 ~/.mutt/mailinglists in my case) and now Mutt recognizes all the
 messages originating from an address you have specified with
 'subscribe'. Mine, for example, looks like this:
 
 -clip-
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 subscribe [EMAIL PROTECTED]
 -clip-
 
 It can get long, huh? :-)
 
 -- 
 Jussi Ekholm, Everything is so fine it could be
 a spineless jelly. don't let your mind take you in misery
 [EMAIL PROTECTED]all the feelings you're not so much pleased
 http://ekhowl.goa-head.org   they're just to take you to sweet harmony

I've never really understood the difference between using 'subscribe' and
'lists' to specify a mailing list. I've just looked in the manual and it
does seems to have anything enlightening in it so, could someone perhaps
clarify it for me?

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg21632/pgp0.pgp
Description: PGP signature


Re: Mailing list replies

2001-12-16 Thread Benjamin Smith

On Sun, Dec 16, 2001 at 12:25:21PM +0100, Michael Wagner wrote:
 On Sonntag, 16. Dez. 2001 at 10:18:57, Benjamin Smith wrote:
 
 I've never really understood the difference between using 'subscribe' and
 'lists' to specify a mailing list. I've just looked in the manual and it
 does seems to have anything enlightening in it so, could someone perhaps
 clarify it for me?
 
 Hello Benjamin,
 
 from the mutt-help:
 
 ---snip---
 Additionally, when you send a message to a subscribed list, mutt will
^^ 
 add a Mail-Followup-To header to tell other users' mail user agents
 ^ 
 not to send copies of replies to your personal address.
 ---snip---
 
 Hth Michael

Thanks, I must not have read the manual carefully enough.

(Apologies for the off list copy Michael, I only spotted in the sendmail
-q -vvv output)

 
 -- 
 Registred Linux-User: 183712
 GnuPG Key: B3F038DC 
 GnuPG-fingerprint: 21A7 B384 6629 F320 8AFC  A2B5 4071 E5C3 B3F0 38DC

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]



msg21641/pgp0.pgp
Description: PGP signature


Re: Hiding read messages in a newsgroup?

2001-09-30 Thread Benjamin Smith

On Sat, Sep 29, 2001 at 10:14:19PM -0400, Matej Cepl wrote:
 Maybe, that I am asking too much, but my experience with mutt is
 that everything is possible -- one just has to know, what to put
 in .muttrc. So,
 
 would it be possible to hide read messages in a newsgroups (using
 VVV patch for nntp on mutt 1.3.22.1i and listerver is local
 leafnode)? I mean, that it would be much better if there would be
 only unread messages in opened newsgroup.
 
 Sorry for my English, it's getting to late on me :-)
 
 Thanks for answer
 
 Matej Cepl

Couldn't you use the limit feature to do this.

Try something like

l ~N

to only show new messages or

l ~N | ~O

to only show new and old messages.

limit works in any mailbox (or newsgroup).

-- 
Benjamin Smith [EMAIL PROTECTED]

 PGP signature


Re: Hiding read messages in a newsgroup?

2001-09-30 Thread Benjamin Smith

On Sun, Sep 30, 2001 at 03:46:16PM +0200, Matthias LOITSCH wrote:
 On Sun, Sep 30, 2001 at 02:33:17PM +0100, Benjamin Smith wrote:
  Couldn't you use the limit feature to do this.
  
  Try something like
  
  l ~N
  
  to only show new messages or
  
  l ~N | ~O
  
  to only show new and old messages.
  
  limit works in any mailbox (or newsgroup).
 
 is there a possibility to combine this with a folder-hook in the .muttrc
 file?
 

Well, you could use push to send the keys in the folder-hook.

 
 
 .
 
 
 -- 
 enyo vel cora
 

-- 
Benjamin Smith [EMAIL PROTECTED], [EMAIL PROTECTED]

 PGP signature