Can't get pgp signing (w/o encrypt) to work...

2001-09-22 Thread Aaron Gaudio

Hi all. I'm running mutt 1.2.5i (which came with RH 7.1) and using
gpg version 1.0.4 and 1.0.6 (one at work, one at home).

I am able to encrypt messages and also encrypt  sign messages just fine.
However, when I attempt to only sign a message (using p-s at the 
compose menu), everything looks good, I have the right key-id, I go to
send the message, it asks for my gpg passphrase and sends the message.

However, when I read the message, there is no signature attached to it (gpg
is never invoked to verify a signature, either), and somehow the message body
gets mangled... specifically, it is word-wrapped. As you can see below, parts
of my signature take up the a full 80 characters.
Well, the sig get word-wrapped such that, for instance, the mindless.com
below gets shoved onto another line. This *never* happens when I don't
sign mail, and it never happens if I encrypt the mail (or encrypt  sign).

The pgp-related options I'm using are as follows:

send-hook . set pgp_autosign
set pgp_replyencrypt
set pgp_replysign
set pgp_replysignencrypted
set pgp_retainable_sigs
set pgp_sign_as = 0x940DF757
set pgp_timeout = 600


The pgp_sign_command is from the RH default, which is in turn from the
gpg.rc example supplied with mutt:

set pgp_sign_command=gpg --no-verbose --batch --output - --passphrase-fd 0 --armor 
--detach-sign --textmode %?a?-u %a? %f

I would appreciate any help with this... I'm not a member of the list (yet)
so please make sure any replies get sent to my personal email as well as the
list. Thanks in advance.

-- 

Aaron Gaudio  icy_manipulator @ mindless.com
 --
http://www.rit.edu/~adg1653
Information is free. Knowledge is expensive. Wisdom is priceless.
 --
Email Usage Policy: http://www.rit.edu/~adg1653/email.shtml



:set ?alternates to see how your $alternates are set

2001-09-22 Thread Bruno Postle

On Thu 20-Sep-2001 at 07:07:24AM -0400, David T-G wrote:
 
   :set ?alternates
 
 to see how your $alternates are set.

Cor, you learn something every day. I can't seem to get this trick to
work with key bindings etc.. though.

Is there some equivalent to..

:bind index ?a

..that would return something like this?:

create-alias   create an alias from a message sender

Bruno
-- 
http://bruno.postle.net/



mutt and screen: display problems

2001-09-22 Thread Vincent Lefevre

Mutt has several display problems when used in screen: the status line is
sometimes displayed at a wrong place, and spaces are added at the end of
the lines. It even corrupts the display in emacs when I edit a message.
No problem with screen when I don't use Mutt...

greux:~ mutt -v  15:43:58
Mutt 1.3.22.1i (2001-08-30)
Copyright (C) 1996-2001 Michael R. Elkins et autres.
Mutt ne fournit ABSOLUMENT AUCUNE GARANTIE ; pour les détails tapez `mutt -vv'.
Mutt est un logiciel libre, et vous êtes libre de le redistribuer
sous certaines conditions ; tapez `mutt -vv' pour les détails.

System: Linux 2.2.17 [using ncurses 5.2]
Options de compilation :
-DOMAIN
+DEBUG
-HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -DL_STANDALONE
+USE_FCNTL  -USE_FLOCK
+USE_POP  +USE_IMAP  -USE_GSS  -USE_SSL  -USE_SASL
+HAVE_REGCOMP  -USE_GNU_REGEX
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
+HAVE_PGP  +BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
+ENABLE_NLS  +LOCALES_HACK  -HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
++HAVE_LANGINFO_YESEXPR
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO
ISPELL=/users/spaces/logiciels/ispell/linux/bin/ispell
SENDMAIL=/usr/sbin/sendmail
MAILPATH=/mail
PKGDATADIR=/users/spaces/lefevre/share/mutt
SYSCONFDIR=/users/spaces/lefevre/etc
EXECSHELL=/bin/sh
-MIXMASTER
Pour contacter les développeurs, veuillez écrire à [EMAIL PROTECTED].
Pour signaler un bug, veuillez utiliser l'utilitaire flea(1).


-- 
Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: mutt and screen: display problems

2001-09-22 Thread Thomas Dickey

On Sat, Sep 22, 2001 at 03:56:36PM +0200, Vincent Lefevre wrote:
 Mutt has several display problems when used in screen: the status line is
 sometimes displayed at a wrong place, and spaces are added at the end of
 the lines. It even corrupts the display in emacs when I edit a message.
 No problem with screen when I don't use Mutt...

I usually run with screen, and haven't noticed any problems like this.
(what version of screen is that?)

-- 
Thomas E. Dickey [EMAIL PROTECTED]
http://invisible-island.net
ftp://invisible-island.net



different mutt settings...

2001-09-22 Thread Matthias LOITSCH

is it possible to have different mutt settings for different mail boxes?

and can i change all mails to read in specific mail boxes? (via procmail
or mutt)


thank you for your help.


.


-- 
Matthias Loitsch \/ \/
[EMAIL PROTECTED]chimera
www.yourth.net   /\ /\ 130599081




Procmail/sed/New Mail flag problem solved, FYI (somewhat long)

2001-09-22 Thread John P. Verel

Here's a procmail problem I solved.  Perhaps it may be of help to
others.

My objective is to strip the string [kde-linux] (no quotes) from the
subject line of the mailing list of the same name.  My first procmail
recipe attempt looked like this:

:0 fw:
* ^TO_kde-linux
| sed -e '/Subject:/s/\[kde-linux\] //g'   KDE-linux

While this stripped off the string just fine, I was getting funny
results.  Specifically, my mbox N flag was getting falsely set.
Examination of the procmail log showed why:

procmail: [1048] Sat Sep 22 10:27:13 2001
procmail: Assigning LOGABSTRACT=all
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)redhat-list
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)sparc-list
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)wine-users
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)mutt
procmail: Match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)kde-linux
procmail: Locking KDE-linux.lock
procmail: Executing  sed -e '/Subject:/s/\[kde-linux\] //g' KDE-linux
procmail: Unlocking KDE-linux.lock
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)kde-user
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)gnome-list
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)redhat-announce-list
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)redhat-watch-list
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)[EMAIL PROTECTED]
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)linux-security
procmail: No match on 
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)cgochorus
procmail: Locking /home/john/Mail/mbox.lock
procmail: Assigning LASTFOLDER=/home/john/Mail/mbox
procmail: Opening /home/john/Mail/mbox
procmail: Acquiring kernel-lock
procmail: Unlocking /home/john/Mail/mbox.lock 
procmail: Notified comsat: john@15295543:/home/john/Mail/mbox
  Folder: /home/john/Mail/mbox 1
procmail: Unlocking /home/john/.lockmail


What this log suggested to me was that using the f (consider the pipe a
filter) and w (wait for the filter to finish and check its exit code)
were not doing what I intended.  Rather than simply allowing time for
the sed edit to operate, procmail was sending the mail to the correct
box, but was continuing to process succeeding recipes, ultimately setting
the flag on mbox.

I fixed this by removing the flags and the lock (:).  New recipe looks
like this

:0
* ^TO_kde-linux
| sed -e '/Subject:/s/\[kde-linux\] //g'   KDE-linux

This solved the problem.

 
-- 
John P. Verel
Norwalk, Connecticut



Re: different mutt settings...

2001-09-22 Thread Suresh Ramasubramanian

Matthias LOITSCH mutt [22/09/01 19:14 +0200]:
 is it possible to have different mutt settings for different mail boxes?

Folder hooks.  Take a look at http://www.hserus.net/muttrc.html

 and can i change all mails to read in specific mail boxes? (via procmail
 or mutt)

Procmail should do.

VERBOSE=off
LOGFILE=$HOME/.procmail/proc.log
MAILDIR=$HOME/Mail
SENDMAIL=/usr/sbin/sendmail

#mutt
:0:
* ^Sender: [EMAIL PROTECTED]
$MAILDIR/mutt

-suresh

 PGP signature


Re: searching with collapsed threads

2001-09-22 Thread David T-G

Suresh --

...and then Suresh Ramasubramanian said...
% David T-G mutt [21/09/01 16:44 -0400]:
%  Is there a way to search every message in a collapsed mailbox and get
%  any results?  I leave open, if this is unimplemented, of how to control
% 
% Search for grepmail on freshmeat.

Heh.  Thanks, but I meant within mutt; I can always just grep the file,
too :-)


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


 PGP signature


Re: searching with collapsed threads

2001-09-22 Thread Suresh Ramasubramanian

David T-G mutt [22/09/01 14:19 -0400]:
 % Search for grepmail on freshmeat.
 
 Heh.  Thanks, but I meant within mutt; I can always just grep the file,
 too :-)

Grepmail is much better than the ordinary grep (customized for grepping
through mbox folders) - and afaik it works great along with mutt.  

-suresh


 PGP signature


Re: what makes mutt recognize mbox files?

2001-09-22 Thread Erika Pacholleck

[22.09.01 07:37 +0200] Byrial Jensen -- :
 Right, I already posted the recognized syntyx:
 From [return-path] wday month day time [zone] year
 
 The timezone in the example is badly placed after the year. It is
 recognized by Mutt anyway as Mutt currently does not test for garbage
 after the year, but I would not count on that bug not being fixed.
  
  Does doing that work?  (Instead of re-arranging every single From_ line,
  you can prolly just copy an existing one, BTW.  I've done this once or
  twice while recovering Pine mailboxes without any apparent ill effects.)
 
 The time stamp in From_ line is used as the receive time. It can be
 displayed in the index and used for sorting and searching etc. If
 you make all receice times the same, these thing will not be useful.

Hey thanks all, I finally got it working.
I --- was just tooo stupid blind to see all --- that was messed.
Now I ran the whole stuff through sed and it works perfect.

Thanks again for all your patience. Seems, that sometimes it is
not enough to push my nose directly to the right line but add some
light hits to the back of the head to activate the brain (as we
say).

-- 
Erika Pacholleck [EMAIL PROTECTED]
mutters: insert vowels of last name



Re: searching with collapsed threads

2001-09-22 Thread David T-G

Suresh, et al --

...and then Suresh Ramasubramanian said...
% David T-G mutt [22/09/01 14:19 -0400]:
%  % Search for grepmail on freshmeat.
%  
%  Heh.  Thanks, but I meant within mutt; I can always just grep the file,
%  too :-)
% 
% Grepmail is much better than the ordinary grep (customized for grepping
% through mbox folders) - and afaik it works great along with mutt.  

Hokay; I'll check it out.  If you're familiar with it, though ...

I had a given email address string ([EMAIL PROTECTED]) that I knew was in
the folder (=F.mutt) and I wanted to see the actual message in its thread
context.  I knew it was in there because I grepped for it across all of
my folders (Mail/F.*) and got back a result.

I then went to my mutt folder mail instance and tried a / search for it,
both with and without qualifications, but the message wasn't found
because it was part of a collapsed thread.

What will grepmail get me here?


% 
%   -suresh
% 


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


 PGP signature


Re: searching with collapsed threads

2001-09-22 Thread David

Ok, i looked through it.  How do *you* have it set up to work with mutt?
I see the 'grepm' wrapper script... but how would I associate this
correctly in mutt?

/db

On Sat, Sep 22, 2001 at 11:57:04PM +0530, Suresh Ramasubramanian wrote:
 David T-G mutt [22/09/01 14:19 -0400]:
  % Search for grepmail on freshmeat.
  
  Heh.  Thanks, but I meant within mutt; I can always just grep the file,
  too :-)
 
 Grepmail is much better than the ordinary grep (customized for grepping
 through mbox folders) - and afaik it works great along with mutt.  
 
   -suresh
 





Re: mutt and screen: display problems

2001-09-22 Thread Vincent Lefevre

In article [EMAIL PROTECTED],
   Thomas Dickey [EMAIL PROTECTED] wrote:

 I usually run with screen, and haven't noticed any problems like this.
 (what version of screen is that?)

Screen version 3.09.05 (FAU) 1-Sep-99

(the version distributed with the latest LinuxPPC stable release).

-- 
Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: mutt and screen: display problems

2001-09-22 Thread John Kerbawy

On Sat, Sep 22, 2001 at 09:58:50PM +0200, Vincent Lefevre wrote:
 In article [EMAIL PROTECTED],
Thomas Dickey [EMAIL PROTECTED] wrote:
 
  I usually run with screen, and haven't noticed any problems like this.
  (what version of screen is that?)
 
 Screen version 3.09.05 (FAU) 1-Sep-99
 
 (the version distributed with the latest LinuxPPC stable release).

What $TERM setting are you using? I've seen spaces appended to the end
of lines in mutt when cutting and pasting, but it went away when I
switched to vt100, I think.

-- 
   John Kerbawy | Maybe this world is another planet's hell.
 [EMAIL PROTECTED] | 
 john/EFNet | 



Re: mutt and screen: display problems

2001-09-22 Thread Vincent Lefevre

In article [EMAIL PROTECTED],
   John Kerbawy [EMAIL PROTECTED] wrote:

 What $TERM setting are you using?

screen (with the terminfo settings from ncurses 5.2).

 I've seen spaces appended to the end of lines in mutt when cutting and
 pasting, but it went away when I switched to vt100, I think.

I don't want to use vt100 because
  * I want to know (by testing $TERM) if I'm in a screen window or not;
  * I want colors.

If data for TERM=screen are broken, they should be fixed!

-- 
Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: mutt and screen: display problems

2001-09-22 Thread David Champion

On 2001.09.22, in [EMAIL PROTECTED],
Vincent Lefevre [EMAIL PROTECTED] wrote:
 
  I've seen spaces appended to the end of lines in mutt when cutting and
  pasting, but it went away when I switched to vt100, I think.
 
 I don't want to use vt100 because
   * I want to know (by testing $TERM) if I'm in a screen window or not;

test -n $STY


   * I want colors.

vt100 has never stood in the way of my colors Maybe because I'm
using slang, which seems to pay less than due attention to terminfos?


I won't argue that changing your $TERM is the right solution, but it's a
fair workaround if you can't find the right one.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago



Re: mutt and screen: display problems

2001-09-22 Thread Thomas Dickey

On Sat, Sep 22, 2001 at 03:57:02PM -0500, David Champion wrote:

 vt100 has never stood in the way of my colors Maybe because I'm
 using slang, which seems to pay less than due attention to terminfos?

yes (though about 1/4 of the comments I see in news postings, etc., don't
much like that feature - it tends to make slang unusable on some terminals
that don't support color).

-- 
Thomas E. Dickey [EMAIL PROTECTED]
http://invisible-island.net
ftp://invisible-island.net



Re: mutt and screen: display problems

2001-09-22 Thread Vincent Lefevre

In article [EMAIL PROTECTED],
   David Champion [EMAIL PROTECTED] wrote:
 On 2001.09.22, in [EMAIL PROTECTED],
   Vincent Lefevre [EMAIL PROTECTED] wrote:

  I don't want to use vt100 because
* I want to know (by testing $TERM) if I'm in a screen window or not;

 test -n $STY

Doesn't work (it is lost after a ssh).

* I want colors.

 vt100 has never stood in the way of my colors Maybe because I'm
 using slang, which seems to pay less than due attention to terminfos?

Perhaps, but most applications use terminfos.

 I won't argue that changing your $TERM is the right solution, but it's a
 fair workaround if you can't find the right one.

I've tried to set it back to rxvt (which I use when I'm not in screen),
and the display problems still occur. So, these problems are not related
to the terminfos. Only the problems related to the spaces at the end of
the lines are solved by setting TERM=rxvt.

-- 
Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: macro help (was Re: rot13 capability?)

2001-09-22 Thread Jens Paulus

On Thu, Sep 20, 2001 at 09:21:52AM -0400, David T-G wrote:
 Hey, rot13 is cool.  Now for a rot13 filter in vim :-)

From the vim helpfile:

[snip]
|v_g?|   {visual}g? perform rot13 encoding on highlighted text
|g?| g?{motion} perform rot13 encoding on the text that is moved over
   with {motion}
[snip]

However, I still don't know what the sense/purpose of rot13 is.
Also, I've never used it.

-Jens





Re: mutt and screen: display problems

2001-09-22 Thread Ryan Cook

On Sat, Sep 22, 2001 at 02:05:47PM -0400, Thomas Dickey wrote:
 Date: Sat, 22 Sep 2001 14:05:47 -0400
 From: Thomas Dickey [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: mutt and screen: display problems
 Message-ID: [EMAIL PROTECTED]
 User-Agent: Mutt/1.2.5i
 
 On Sat, Sep 22, 2001 at 03:56:36PM +0200, Vincent Lefevre wrote:
  Mutt has several display problems when used in screen: the status line is
  sometimes displayed at a wrong place, and spaces are added at the end of
  the lines. It even corrupts the display in emacs when I edit a message.
  No problem with screen when I don't use Mutt...
 
 I usually run with screen, and haven't noticed any problems like this.
 (what version of screen is that?)

I also use mutt within screen.  The only time I've noticed any
problems is when I suck over mutt via screen to a different sized
xterm windowthen things get all wonked.  Other than that, nary a
problem.

/rc



Re: mutt and screen: display problems

2001-09-22 Thread Thomas Dickey

On Sat, Sep 22, 2001 at 11:42:31PM +0200, Vincent Lefevre wrote:

 I've tried to set it back to rxvt (which I use when I'm not in screen),

screen gets confused when you do that (I've only found it to be reliable to
set $TERM before starting screen).

 and the display problems still occur. So, these problems are not related
 to the terminfos. Only the problems related to the spaces at the end of
 the lines are solved by setting TERM=rxvt.

I'd compare typescripts from the two sessions to see which feature of the
terminfo is producing the blanks.

-- 
Thomas E. Dickey [EMAIL PROTECTED]
http://invisible-island.net
ftp://invisible-island.net



patch.my_hdr_subject

2001-09-22 Thread Horacio

Ok, since I got no reply to my previous questions on hooks, I
take it doesn´t work and may be bypassed with the patch.

I was having problems with using sendhooks and folderhooks
both for choosing signatures:

- sendhook should set the sig for any mail to *.com
- but folderhook should override this and set a different sig
  when the mail is written from a given mailbox (even if the
  mail is for a *.com address)

This doesn´t work as sendhooks seem to take precedence over
folderhooks.  Just an assumption.

Since the patch.my_hdr_subject executes sendhooks before
setting the subject, I wondered if that might imply that the
folderhooks will work since they will be executed after the
sendhooks.


Thank you,
-- 
Horacio



changing config name

2001-09-22 Thread Alexey Koptsevich


Hello,

How can I change default system wide configuration file name at
compilation time?

Thanks,
Alex

PS Please cc: me your reply




Re: Procmail/sed/New Mail flag problem solved, FYI (somewhat long)

2001-09-22 Thread Aaron Schrab

At 14:09 -0400 22 Sep 2001, John P. Verel [EMAIL PROTECTED] wrote:
 :0 fw:
 * ^TO_kde-linux
 | sed -e '/Subject:/s/\[kde-linux\] //g'   KDE-linux
 
 While this stripped off the string just fine, I was getting funny
 results.  Specifically, my mbox N flag was getting falsely set.
 Examination of the procmail log showed why:

 What this log suggested to me was that using the f (consider the pipe a
 filter) and w (wait for the filter to finish and check its exit code)
 were not doing what I intended.  Rather than simply allowing time for
 the sed edit to operate, procmail was sending the mail to the correct
 box, but was continuing to process succeeding recipes, ultimately setting
 the flag on mbox.
 
 I fixed this by removing the flags and the lock (:).  New recipe looks
 like this
 
 :0
 * ^TO_kde-linux
 | sed -e '/Subject:/s/\[kde-linux\] //g'   KDE-linux

Just removing the f flag would have fixed it.  You should definitely
keep the lock.  I'd advise keeping the w flag as well, since it will
allow procmail to attempt to deliver the message in some other way if
the sed command fails for some reason.

Personally, I prefer to let procmail do the writing to my mailboxes.
It's likely to do a better job of recovering from errors than some
random program acting as a filter.

You could do this like:

:0fw
* ^TO_kde-linux
| sed -e '/Subject:/s/\[kde-linux\] //g'

  # Only if the above succeeded
  :0a:
  KDE-linux

In this case you want the f flag on the first recipe, but a lock is
unnecessary (it's not dealing with any files).

-- 
Aaron Schrab [EMAIL PROTECTED]  http://www.execpc.com/~aarons/
 At the source of every error which is blamed on the computer you will
 find at least two human errors, including the error of blaming it on
 the computer.



Re: macro help (was Re: rot13 capability?)

2001-09-22 Thread Piet Delport

On Sat, 22 Sep 2001 at 23:41:18 +0200, Jens Paulus wrote:
 On Thu, Sep 20, 2001 at 09:21:52AM -0400, David T-G wrote:
  Hey, rot13 is cool.  Now for a rot13 filter in vim :-)
 
 From the vim helpfile:
 
 [snip]
 |v_g?| {visual}g? perform rot13 encoding on highlighted text
 |g?|   g?{motion} perform rot13 encoding on the text that is moved over
  with {motion}
 [snip]
 
 However, I still don't know what the sense/purpose of rot13 is.

Vg unf znal boshfpngbel hfrf, enatvat sebz gur fvyyl gb gur fbzrjung
frevbhf, fhpu nf cebgrpgvat fcbvyref be cbgragvnyyl bssrafvir grkg sebz
pnfhny ernqvat va choyvp sbehzf.  (Vg'f hfrq va arjftebhcf fhpu nf
erp.uhzbe.* sbe aba-cbyvgvpnyyl-pbeerpg wbxrf, sbe rknzcyr, gb cerirag
pbzcynvagf.  Vs lbh'er jnearq gung gur wbxr vf cbgragvnyyl bssrafvir,
ohg lbh jrag naq qrpelcgrq vg naljnl, ubj pna lbh pbzcynva?)

Sha snpg bs gur qnl: `iv' EBG13'q orpbzrf `vi'.

 Also, I've never used it.

Lbh unir abj. :-)

-- 
Piet Delport [EMAIL PROTECTED]
Today's subliminal thought is:

 PGP signature


Re: macro help (was Re: rot13 capability?)

2001-09-22 Thread Jens Paulus

On Sat, Sep 22, 2001 at 11:41:18PM +0200, Jens Paulus wrote:
 On Thu, Sep 20, 2001 at 09:21:52AM -0400, David T-G wrote:
  Hey, rot13 is cool.  Now for a rot13 filter in vim :-)
 
 From the vim helpfile:
  ^
Hey, this is bad: what I just experienced is that after the transmission
of my mail I see that there is a quotation character just before 'From '
(...  the vim helpfile). I didn't put it there and it doesn't come from
David. Obviously the software thinks that there should be a distingtion
to the mail separation From_ line in mbox format and inserts the
quotation character itself automatically. I wonder if there is a way to
avoid that. I just made an other test with an other sentence and the
same result. Let's see what happens.

From heaven to earth.
From alpha to omega.

-Jens





Re: macro help (was Re: rot13 capability?)

2001-09-22 Thread Jens Paulus

On Sun, Sep 23, 2001 at 03:15:29AM +0200, Piet Delport wrote:
 Vg unf znal boshfpngbel hfrf, enatvat sebz gur fvyyl gb gur fbzrjung
 frevbhf, fhpu nf cebgrpgvat fcbvyref be cbgragvnyyl bssrafvir grkg sebz
 pnfhny ernqvat va choyvp sbehzf.  (Vg'f hfrq va arjftebhcf fhpu nf
 erp.uhzbe.* sbe aba-cbyvgvpnyyl-pbeerpg wbxrf, sbe rknzcyr, gb cerirag
 pbzcynvagf.  Vs lbh'er jnearq gung gur wbxr vf cbgragvnyyl bssrafvir,
 ohg lbh jrag naq qrpelcgrq vg naljnl, ubj pna lbh pbzcynva?)
 
 Sha snpg bs gur qnl: `iv' EBG13'q orpbzrf `vi'.

Url, gung'f ernyyl pbby. Gunax lbh sbe lbhe rkcynangvba.

  Also, I've never used it.
 
 Lbh unir abj. :-)

Gung'f evtug.

-Jens





Re: macro help (was Re: rot13 capability?)

2001-09-22 Thread David T-G

Jens --

...and then Jens Paulus said...
% On Sat, Sep 22, 2001 at 11:41:18PM +0200, Jens Paulus wrote:
%  On Thu, Sep 20, 2001 at 09:21:52AM -0400, David T-G wrote:
%   Hey, rot13 is cool.  Now for a rot13 filter in vim :-)
%  
%  From the vim helpfile:
%   ^
% Hey, this is bad: what I just experienced is that after the transmission

Well, yes and no...  It's an escape to prevent your mail agent from
thinking that it's the start of a new message.


% of my mail I see that there is a quotation character just before 'From '
% (...  the vim helpfile). I didn't put it there and it doesn't come from
% David. Obviously the software thinks that there should be a distingtion

That's included by the MTA by design when it's delivered.


% to the mail separation From_ line in mbox format and inserts the
% quotation character itself automatically. I wonder if there is a way to

Sure; switch to a mail folder format that doesn't require it.  I hear
that maildir is good.


% avoid that. I just made an other test with an other sentence and the
% same result. Let's see what happens.
% 
% From heaven to earth.
% From alpha to omega.

As expected :-)


% 
% -Jens
% 

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!


 PGP signature


Re: Address Book for Vim?

2001-09-22 Thread Christian Ordig

On Mon, Sep 17, 2001 at 08:13:39AM -0700, Ryan Allen wrote:
 I'm just curious what people are using for an address book application
 if anything at all?? 
http://freshmeat.net/projects/muttaddressbook/

-- 
Christian Ordig
Germany



Re: does %F index_format option in verson 1.0.1i not work right?

2001-09-22 Thread David T-G

Ben --

...and then Ben Johnson said...
% Thanks for your help.

Sure thing!


% 
% I tried :set ?alternates on all the machines that have mutt installed
% and with one exception I got 'alternates=' on all machines.  The one

Now that's interesting; I wouldn't have expected that.  But, then again,
I thought you had multiple email addresses :-)


% exception simply cleared the command line and printed nothing.  to clear
% up any ambiguity I edited all the config files and explicitly set
% alternates=.  The behavior has not changed in any of the
% installations.
% 
% My excellent systems administrator upgraded the troubled mutt to version
% Mutt 1.2.5i (2000-07-28) at my request but that also has not changed the
% behavior.

That's a good thing -- he or she is now primed to install 1.4 when it
comes out any minute ;-)


% 
% Could it be something else on my system?
% 
% 
% --
% 
% ah! darn.  I diff'd my config files on two different systems and found
% that on the affected system I had the set hostname line commented out.
% When I uncommented that and set it to watchguard.com (the second half of
% my email) it started to work fine.  pebcak!

How very interesting.  I'll have to file that one!


% 
% Thanks again for your help.

HTH


% 
% - Ben


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


 PGP signature


Re: :set ?alternates to see how your $alternates are set

2001-09-22 Thread David T-G

Bruno --

...and then Bruno Postle said...
% On Thu 20-Sep-2001 at 07:07:24AM -0400, David T-G wrote:
%  
%:set ?alternates
%  
%  to see how your $alternates are set.
% 
% Cor, you learn something every day. I can't seem to get this trick to

Happy to help :-)


% work with key bindings etc.. though.
% 
% Is there some equivalent to..
% 
% :bind index ?a
% 
% ..that would return something like this?:
% 
% create-alias   create an alias from a message sender

How about just hitting the question mark (unless you've re-bound help
already)?


% 
% Bruno
% -- 
% http://bruno.postle.net/


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


 PGP signature


Re: different mutt settings...

2001-09-22 Thread David T-G

Matthias --

...and then Matthias LOITSCH said...
% is it possible to have different mutt settings for different mail boxes?

Suresh has already answered this one...


% 
% and can i change all mails to read in specific mail boxes? (via procmail
% or mutt)

If you mean change all mails in a specific folder from unread to read,
then I'd recomment mutt.  Use tag-pattern (bound by default to T) and
enter '.' as your pattern to tag them all, and then tag-prefix (;)
clear-flag (W) new (N) to clear both 'N'ew and 'O'ld indicators.


% 
% 
% thank you for your help.

HTH  HAND


% 
% 
% .
% 
% 
% -- 
% Matthias Loitsch \/ \/
% [EMAIL PROTECTED]chimera
% www.yourth.net   /\ /\ 130599081


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


 PGP signature


Re: patch.my_hdr_subject

2001-09-22 Thread David T-G

Horacio --

...and then Horacio said...
% Ok, since I got no reply to my previous questions on hooks, I

Sorry about that, but I for one wasn't sure what you were asking...


% take it doesn?t work and may be bypassed with the patch.
% 
% I was having problems with using sendhooks and folderhooks
% both for choosing signatures:
% 
% - sendhook should set the sig for any mail to *.com
% - but folderhook should override this and set a different sig
%   when the mail is written from a given mailbox (even if the
%   mail is for a *.com address)
% 
% This doesn?t work as sendhooks seem to take precedence over
% folderhooks.  Just an assumption.

Well, yes and no; a folder-hook gets executed whenever you enter a
matching folder, while a send-hook gets executed whenever you send a
matching email.

Have you tried defining a folder-hook that redefines your send-hook?

Please post your question again, perhaps with more detail, and I at least
will see if I can make heads or tails of it.


% 
% Since the patch.my_hdr_subject executes sendhooks before
% setting the subject, I wondered if that might imply that the
% folderhooks will work since they will be executed after the
% sendhooks.

You probably don't need this -- though it's a fine patch anyway.


% 
% 
% Thank you,

HTH  HAND


% -- 
% Horacio


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


 PGP signature