Re: binding a key to forward mail

2001-12-17 Thread David T-G

Gary, et al --

Thanks again for the help with this.  I finally got it working properly!

...and then Gary Johnson said...
% On Mon, Dec 10, 2001 at 03:21:52PM -0500, David T-G wrote:
%  
%  Hmmm...  push in the macro, you mean?  That's certainly an idea; thanks!
% 
% Yes, that's what I meant.  For example, I tried this just to see if it
% would work:
% 
% :macro pager G :push mail^Mgaryjohn^M^Mtest message^My
% 
% The third ^M is needed because I have askcc set.

Interestingly enough, I had to work it down to

  macro generic ,f enter-commandpush tag-prefixforward-messagesc

y

to get it to work.  Where the two ctrl-Ms are I had both enter and a
single ctrl-M but every time I'd run the macro I'd end up with

  To: scy

sitting on my screen; it's as though the first return gets swallowed.  It
also works with enterenter which also supports that [bizarre] theory.

Anyway, I'm a VERY happy camper :-)  Thanks again!


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


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




msg21659/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-11 Thread Rob 'Feztaa' Park

On Mon, Dec 10, 2001 at 10:31:18PM -0800, Gary Johnson (dis)graced my inbox with:
 On Mon, Dec 10, 2001 at 06:55:19PM -0700, Rob 'Feztaa' Park wrote:
  On Mon, Dec 10, 2001 at 03:00:49PM -0800, Gary Johnson (dis)graced my inbox with:
Hmmm...  push in the macro, you mean?  That's certainly an idea; thanks!
   
   Yes, that's what I meant.  For example, I tried this just to see if it
   would work:
   
   :macro pager G :push mail^Mgaryjohn^M^Mtest message^My
  
  
  And this text is actually entered into your editor? Cool, I thought the
  macro couldn't actually affect what happened once the editor opened.
 
 No, test message is the Subject.  But you're right about the macro not
 being able to affect what happens within the editor, at least not via
 the keyboard buffer since mutt and the editor don't share the same
 keyboard buffer.

Oh, oops. I thought you were providing a simpler way to implement
David's way of setting the editor to /bin/true for some recipients ;)

-- 
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
Be an MCSE - Minesweeper Consultant Solitaire Expert!



msg21488/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-11 Thread Jose Celestino

[EMAIL PROTECTED] definitely sucks. Don't use it.

Thus spake Peter Jay Salzman, on Sun, Dec 09, 2001 at 11:45:10AM -0800:
 hi there,
 
 how can i bind an unused key to:
 
 1. turn on all headers
 2. forward the email to [EMAIL PROTECTED]
 3. run a script i wrote that keeps track of how much spam i get in a day
 
 thanks!
 pete
 
 -- 
** Please don't send me html email **
 PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D
 PGP Public Key:  finger [EMAIL PROTECTED]
-- 
Jose Celestino [EMAIL PROTECTED]
-



Re: binding a key to forward mail

2001-12-11 Thread Dan Boger

On Tue, Dec 11, 2001 at 01:24:59PM +, Jose Celestino wrote:
 [EMAIL PROTECTED] definitely sucks. Don't use it.

thank you for sharing this observation.

-- 
Dan Boger
[EMAIL PROTECTED]



msg21495/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-10 Thread David T-G

Rob --

...and then Rob 'Feztaa' Park said...
% 
% On Sun, Dec 09, 2001 at 06:40:38PM -0500, David T-G (dis)graced my inbox with:
%  
%  % This will bounce the message to that address when you press Control + F
%  % in the index or the pager. It's not tested, but it should work.
%  
%  It will bounce, all right.  You want to forward, though.
% 
% Oh well, live and learn.

Of course!


% 
% bounce-message was the only one I could get to send the message without
% opening the editor ;)

Ahhh...  You simply haven't played enough, then:

  send-hook .   set editor='vim +/^\$'
  send-hook (spamcop|(submit|quick)[a-z]*)@.*spamcop.net\
'unset pgp_autosign ; set editor=/bin/true ; my_hdr Fcc: /dev/null ; \
my_hdr from: [EMAIL PROTECTED]'

I tag-forward my spams to sc (my spamcop alias) and am immediately
returned to the compose menu to hit 'y' and send it on its way.

The only thing I haven't yet figured out is how to macro or hook all
of this so that I don't have to hit 'y' to send it on (because, I must
admit, ;fscreturn is pretty simple and shouldn't need to be macro-ed
much more!).  It's not so bad, though; it's an extra safety check even
though I have yet to accidentally include the wrong item in a tag list...


% 
% -- 
% Rob 'Feztaa' Park
% [EMAIL PROTECTED]
% --
% Never believe anything in politics until it has been officially denied.
%   -- Otto Von Bismark


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




msg21449/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-10 Thread Gary Johnson

On Mon, Dec 10, 2001 at 08:07:23AM -0500, David T-G wrote:

 The only thing I haven't yet figured out is how to macro or hook all
 of this so that I don't have to hit 'y' to send it on (because, I must
 admit, ;fscreturn is pretty simple and shouldn't need to be macro-ed
 much more!).  It's not so bad, though; it's an extra safety check even
 though I have yet to accidentally include the wrong item in a tag list...

You could use :push to put the 'y' in the keyboard buffer from a macro.

Gary

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



Re: binding a key to forward mail

2001-12-10 Thread David T-G

Gary, et al --

...and then Gary Johnson said...
% 
% On Mon, Dec 10, 2001 at 08:07:23AM -0500, David T-G wrote:
% 
%  The only thing I haven't yet figured out is how to macro or hook all
%  of this so that I don't have to hit 'y' to send it on (because, I must
...
% 
% You could use :push to put the 'y' in the keyboard buffer from a macro.

Hmmm...  push in the macro, you mean?  That's certainly an idea; thanks!


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


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




msg21469/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-10 Thread Gary Johnson

On Mon, Dec 10, 2001 at 03:21:52PM -0500, David T-G wrote:
 Gary, et al --
 
 ...and then Gary Johnson said...
 % 
 % On Mon, Dec 10, 2001 at 08:07:23AM -0500, David T-G wrote:
 % 
 %  The only thing I haven't yet figured out is how to macro or hook all
 %  of this so that I don't have to hit 'y' to send it on (because, I must
 ...
 % 
 % You could use :push to put the 'y' in the keyboard buffer from a macro.
 
 Hmmm...  push in the macro, you mean?  That's certainly an idea; thanks!

Yes, that's what I meant.  For example, I tried this just to see if it
would work:

:macro pager G :push mail^Mgaryjohn^M^Mtest message^My

The third ^M is needed because I have askcc set.

Gary

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



Re: binding a key to forward mail

2001-12-10 Thread Rob 'Feztaa' Park

On Mon, Dec 10, 2001 at 03:00:49PM -0800, Gary Johnson (dis)graced my inbox with:
  Hmmm...  push in the macro, you mean?  That's certainly an idea; thanks!
 
 Yes, that's what I meant.  For example, I tried this just to see if it
 would work:
 
 :macro pager G :push mail^Mgaryjohn^M^Mtest message^My


And this text is actually entered into your editor? Cool, I thought the
macro couldn't actually affect what happened once the editor opened.

-- 
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
USA Today has come out with a new survey: Apparently, three out of four
people make up 75 percent of the population.
-- David Letterman



msg21483/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-10 Thread Gary Johnson

On Mon, Dec 10, 2001 at 06:55:19PM -0700, Rob 'Feztaa' Park wrote:
 On Mon, Dec 10, 2001 at 03:00:49PM -0800, Gary Johnson (dis)graced my inbox with:
   Hmmm...  push in the macro, you mean?  That's certainly an idea; thanks!
  
  Yes, that's what I meant.  For example, I tried this just to see if it
  would work:
  
  :macro pager G :push mail^Mgaryjohn^M^Mtest message^My
 
 
 And this text is actually entered into your editor? Cool, I thought the
 macro couldn't actually affect what happened once the editor opened.

No, test message is the Subject.  But you're right about the macro not
being able to affect what happens within the editor, at least not via
the keyboard buffer since mutt and the editor don't share the same
keyboard buffer.

Gary

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



binding a key to forward mail

2001-12-09 Thread Peter Jay Salzman

hi there,

how can i bind an unused key to:

1. turn on all headers
2. forward the email to [EMAIL PROTECTED]
3. run a script i wrote that keeps track of how much spam i get in a day

thanks!
pete

-- 
   ** Please don't send me html email **
PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D
PGP Public Key:  finger [EMAIL PROTECTED]



Re: binding a key to forward mail

2001-12-09 Thread Cliff Sarginson

On Sun, Dec 09, 2001 at 11:45:10AM -0800, Peter Jay Salzman wrote:
 hi there,
 
 how can i bind an unused key to:
 
 1. turn on all headers
 2. forward the email to [EMAIL PROTECTED]

macro index B [EMAIL PROTECTED]\n\n Forward spam to spamcop

-- 
Regards
Cliff





Re: binding a key to forward mail

2001-12-09 Thread Rob 'Feztaa' Park

On Sun, Dec 09, 2001 at 11:45:10AM -0800, Peter Jay Salzman (dis)graced my inbox with:
 hi there,

Hello!

 1. turn on all headers

This is bound to 'h' by default.

 2. forward the email to [EMAIL PROTECTED]

Just put together a macro that looks something like this:

macro index \Cf bounce-message[EMAIL PROTECTED]entery
macro pager \Cf bounce-message[EMAIL PROTECTED]entery

This will bounce the message to that address when you press Control + F
in the index or the pager. It's not tested, but it should work.

 3. run a script i wrote that keeps track of how much spam i get in a day

Sorry, I don't know exactly how to do that. It can be done, though!

-- 
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
The Windows NT workstations locked up every 2.58 minutes... The Linux
workstations [which replaced them] haven't had a problem.
-- Randy Kessell, SBC Communications Inc.



msg21395/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-09 Thread Cliff Sarginson

On Sun, Dec 09, 2001 at 08:58:09PM +0100, Cliff Sarginson wrote:
 On Sun, Dec 09, 2001 at 11:45:10AM -0800, Peter Jay Salzman wrote:
  hi there,
  
  how can i bind an unused key to:
  
  1. turn on all headers
  2. forward the email to [EMAIL PROTECTED]
 
 macro index B [EMAIL PROTECTED]\n\n Forward spam to spamcop
 
p.s. This is tested and does work :)
I use it to forward mail to my work address.
You might want to bind it to the pager as well.

-- 
Regards
Cliff





Re: binding a key to forward mail

2001-12-09 Thread Peter Jay Salzman

thanks everyone.

i just realized that running my script that keeps track of spam/day can be
done pretty easily using procmail -- i forward the spam with mutt.

spamcop sends a reply, and i can catch the reply with procmail and run the
external script.

thanks for filling in the missing piece!  :)

i love automation!   ;)

pete


begin: Rob 'Feztaa' Park [EMAIL PROTECTED] quote
 On Sun, Dec 09, 2001 at 11:45:10AM -0800, Peter Jay Salzman (dis)graced my inbox 
with:
  hi there,
 
 Hello!
 
  1. turn on all headers
 
 This is bound to 'h' by default.
 
  2. forward the email to [EMAIL PROTECTED]
 
 Just put together a macro that looks something like this:
 
 macro index \Cf bounce-message[EMAIL PROTECTED]entery
 macro pager \Cf bounce-message[EMAIL PROTECTED]entery
 
 This will bounce the message to that address when you press Control + F
 in the index or the pager. It's not tested, but it should work.
 
  3. run a script i wrote that keeps track of how much spam i get in a day
 
 Sorry, I don't know exactly how to do that. It can be done, though!
 
 -- 
 Rob 'Feztaa' Park
 [EMAIL PROTECTED]
 --
 The Windows NT workstations locked up every 2.58 minutes... The Linux
 workstations [which replaced them] haven't had a problem.
   -- Randy Kessell, SBC Communications Inc.



-- 
   ** Please don't send me html email **
PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D
PGP Public Key:  finger [EMAIL PROTECTED]



Re: binding a key to forward mail

2001-12-09 Thread David T-G

Cliff, et al --

...and then Cliff Sarginson said...
% 
% On Sun, Dec 09, 2001 at 11:45:10AM -0800, Peter Jay Salzman wrote:
%  hi there,
%  
%  how can i bind an unused key to:
%  
%  1. turn on all headers
%  2. forward the email to [EMAIL PROTECTED]
% 
% macro index B [EMAIL PROTECTED]\n\n Forward spam to spamcop

No!  You should *forward* mail to spamcop, not bounce it.  And be sure to
turn on mime_forward while you're at it.


% 
% -- 
% Regards
% Cliff
% 


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




msg21423/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-09 Thread David T-G

Rob, et al --

...and then Rob 'Feztaa' Park said...
% 
% On Sun, Dec 09, 2001 at 11:45:10AM -0800, Peter Jay Salzman (dis)graced my inbox 
with:
%  hi there,
% 
% Hello!

And the same back to you.


% 
%  1. turn on all headers
% 
% This is bound to 'h' by default.

Yes, but he probably means for the forwarding.  The answer here is
$mime_forward, BTW.


% 
%  2. forward the email to [EMAIL PROTECTED]
% 
% Just put together a macro that looks something like this:
% 
% macro index \Cf bounce-message[EMAIL PROTECTED]entery
% macro pager \Cf bounce-message[EMAIL PROTECTED]entery

No, no, no!


% 
% This will bounce the message to that address when you press Control + F
% in the index or the pager. It's not tested, but it should work.

It will bounce, all right.  You want to forward, though.


% 
%  3. run a script i wrote that keeps track of how much spam i get in a day
% 
% Sorry, I don't know exactly how to do that. It can be done, though!

I have some ideas...


% 
% -- 
% Rob 'Feztaa' Park
% [EMAIL PROTECTED]
% --
% The Windows NT workstations locked up every 2.58 minutes... The Linux
% workstations [which replaced them] haven't had a problem.
%   -- Randy Kessell, SBC Communications Inc.


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




msg21424/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-09 Thread David T-G

Peter --

I see that you've figured out how to track how much spam you get...

...and then Peter Jay Salzman said...
% 
% hi there,
% 
% how can i bind an unused key to:
% 
% 1. turn on all headers
% 2. forward the email to [EMAIL PROTECTED]

I have $mime_forward and $forward_decode set so that message that I
forward along are encapsulated as MIME attachments.

Note that I am *not* talking about bouncing, which simply redirects the
original mail along to somewhere else.


% 3. run a script i wrote that keeps track of how much spam i get in a day

FWIW, I catch spam in =F.spam (or move it there from $spoolfile if it
leaks through), so I tag-forward it all from there and get back a note
from spamcop saying spamcop has accepted NNN mails for processing
and urlview the sucker and off I go.  Then I tag-save all of the spams
(after writing a 'r'eply flag to them for my info) to =OF.spam (an 'O'ld
'F'older, BTW) in case I need to refer back to them; they're available
for counting in a few different ways.


% 
% thanks!
% pete

HTH  HAND


% 
% -- 
%** Please don't send me html email **
% PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D
% PGP Public Key:  finger [EMAIL PROTECTED]


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




msg21427/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-09 Thread David T-G

Cliff --

...and then Cliff Sarginson said...
% 
% On Sun, Dec 09, 2001 at 08:58:09PM +0100, Cliff Sarginson wrote:
...
%  
%  macro index B [EMAIL PROTECTED]\n\n Forward spam to spamcop
%  
% p.s. This is tested and does work :)
% I use it to forward mail to my work address.

Ah, I get it.  No, when the mail goes to spamcop you don't want it to
look like it came from someone else; you need it to have come from your
spamcop address (whatever you used when you signed up to submit spam;
mine, as you might guess, is davidtg-spamcop@JPO) so that you can get the
send-the-nasty-note URLs message back.


% You might want to bind it to the pager as well.

I generally tag-forward from the index; see my reply soon.


% 
% -- 
% Regards
% Cliff
% 


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




msg21429/pgp0.pgp
Description: PGP signature


Re: binding a key to forward mail

2001-12-09 Thread Rob 'Feztaa' Park

On Sun, Dec 09, 2001 at 06:40:38PM -0500, David T-G (dis)graced my inbox with:
 % Just put together a macro that looks something like this:
 % 
 % macro index \Cf bounce-message[EMAIL PROTECTED]entery
 % macro pager \Cf bounce-message[EMAIL PROTECTED]entery
 
 No, no, no!
 
 % This will bounce the message to that address when you press Control + F
 % in the index or the pager. It's not tested, but it should work.
 
 It will bounce, all right.  You want to forward, though.

Oh well, live and learn.

bounce-message was the only one I could get to send the message without
opening the editor ;)

-- 
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
Never believe anything in politics until it has been officially denied.
-- Otto Von Bismark



msg21436/pgp0.pgp
Description: PGP signature