Re: How to get the current folder in a macro and pass i to a Script? [WAS: Taking notes using Mutt threads]

2010-09-12 Thread mjsseppl-mutt
On 10.08.31, Michelle Konzack wrote:
 
 But you can nothing use as a parameter for a script called from a macro.
 You can not even use:
 
 my_hdr Fcc: ^
 
 which should save the message you are curently writing  in  the  CURRENT
 mailfolder.

I can't get that to work at all - even as a general default, let alone
as part of a macro.

my_hdr Fcc: ^ 

does nothing.

Michael


Re: How to get the current folder in a macro and pass i to a Script? [WAS: Taking notes using Mutt threads]

2010-09-12 Thread mjsseppl-mutt
Sorry - my bad.

As you probably noticed, I was using an old version of mutt - I upgraded
my OS, but the new upgrade had the old version of Mutt.

everything's ok now - and the note taking works fine - thanks to all the
contributors to this thread

:)

Michael


Re: Taking notes using Mutt threads

2010-09-04 Thread Brian Ryans
Quoting Chris Bannister on 2010-08-31 07:00:43, in Message-Id
20100831120043.gb18...@fischer

 I remember a program called tina whose interface was like mutts.

I'm a tina user myself, but there's a certain part of my brain that's
tickled by perverting software into doing things it wasn't designed to
do.

-- 
 _  Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 .
( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com   ..:
 X  ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org
/ \ The most powerful optimization tool . . . may be the Delete key.
  -- Eric S. Raymond


signature.asc
Description: Digital signature


Re: Taking notes using Mutt threads

2010-08-31 Thread j...@telefonica.net
As two friends ask about config to take notes, here, it is.

Postfix:
/etc/postfix/main.cf
relayhost = [smtp.xxx.com]:submission
alias_maps = hash:/etc/aliases
virtual_alias_maps = hash:/etc/postfix/virtual
/etc/postfix/virtual
@notes.localdomainblackh...@localhost
/etc/postfix/aliases
blackhole:  /dev/null

Mutt
~/.muttrc
# Macro to choose notes identity
macro index,pager f1 \
enter-command set from=notes_u...@notes.localdomainEnter\
enter-command set realname=notes_userEnter\
enter-command unset signatureEnter\
enter-command set include=noEnter\
enter-command set status_format=\%r-apuntes_j...@localhost: \
%f [%M/%m] [N=%n,*=%t,post=%p,new=%b]\Enter \
Switch to notes_u...@localhost
# Copy to notes mailbox
fcc-hook '~t \\notes_u...@notes\.localdomain\\' ~/mail/notes

I hope not forget something.

Best regards.

-- 
Jose Angel Navarro Cortes
email: j...@telefonica.net
web: http://janc.es/
Usuario Linux: #49178


Re: Taking notes using Mutt threads

2010-08-31 Thread j...@telefonica.net
Sorry, I forgot that after edit
/etc/postfix/virtual
and
/etc/postfix/aliases
you must do as root:

postmap /etc/postfix/virtual

newaliases

postfix reload

Cheers.

El 10.08.31 10:08:11 -- j...@telefonica.net dijo:
 As two friends ask about config to take notes, here, it is.
 
 Postfix:
 /etc/postfix/main.cf
 relayhost = [smtp.xxx.com]:submission
 alias_maps = hash:/etc/aliases
 virtual_alias_maps = hash:/etc/postfix/virtual
 /etc/postfix/virtual
 @notes.localdomainblackh...@localhost
 /etc/postfix/aliases
 blackhole:  /dev/null
 
 Mutt
 ~/.muttrc
 # Macro to choose notes identity
 macro index,pager f1 \
 enter-command set from=notes_u...@notes.localdomainEnter\
 enter-command set realname=notes_userEnter\
 enter-command unset signatureEnter\
 enter-command set include=noEnter\
 enter-command set status_format=\%r-apuntes_j...@localhost: \
 %f [%M/%m] [N=%n,*=%t,post=%p,new=%b]\Enter \
 Switch to notes_u...@localhost
 # Copy to notes mailbox
 fcc-hook '~t \\notes_u...@notes\.localdomain\\' ~/mail/notes
 
 I hope not forget something.
 
 Best regards.
 
 -- 
 Jose Angel Navarro Cortes
 email: j...@telefonica.net
 web: http://janc.es/
 Usuario Linux: #49178

-- 
Jose Angel Navarro Cortes
email: j...@telefonica.net
web: http://janc.es/
Usuario Linux: #49178


Re: Taking notes using Mutt threads

2010-08-31 Thread Chris Bannister
On Sun, Aug 29, 2010 at 05:13:39PM -0500, Brian Ryans wrote:
 Quoting j...@telefonica.net on 2010-08-29 12:59:20, in Message-Id
 20100829175920.gc29...@luminium.local
 
  Now I use it also to Take Notes.
 
 I'd love to see how you did it! I'd never figure mutt to be used as a
 note-taking program, and there's just a certain part of my brain tickled

I remember a program called tina whose interface was like mutts.

On my Debian (Lenny) system:

Package: tina
Priority: optional
Section: misc
Installed-Size: 84
Maintainer: Matt Kraai kr...@debian.org
Architecture: amd64
Version: 0.1.11
Depends: libc6 (= 2.6-1), libncurses5 (= 5.6)
Filename: pool/main/t/tina/tina_0.1.11_amd64.deb
Size: 16494
MD5sum: 4b3eb1544a246fb280c9821cba590192
SHA1: 9149ec2e39f128c383b2bf6f8505d606ccf35c0b
SHA256: 9896dd72f298ad57420adcff98bd3f54bd1ab10b71fb858ebabf67e4bb1d997d
Description: A curses personal information manager.
 Tina is a personal information manager with a curses interface.  It
allows the
 user to categorize short text items and to display the items in a
particular
 category.
Tag: uitoolkit::ncurses

-- 
Religion is excellent stuff for keeping common people quiet.
   -- Napoleon Bonaparte




Re: Taking notes using Mutt threads

2010-08-31 Thread Derek Martin
On Mon, Aug 30, 2010 at 03:53:47PM +1000, Cameron Simpson wrote:
 Type 'e' to edit the message. Append lines 10,20 to another file:
 
   :10,20w other_file
 

You can also use Vim's visual mode (by pressing v) to highlight the
block of text you want to write, and then press ':' -- the range will
be added after the colon prompt for you (',') and you can just add
your w command.

-- 
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.



pgpXsQqsgSvCl.pgp
Description: PGP signature


Re: Taking notes using Mutt threads

2010-08-31 Thread David Champion
* On 30 Aug 2010, mjsseppl-m...@yahoo.de wrote: 
 On a more general level, regarding Jose's idea:
 
 What are the ways to send local messages so that they end up in the mail
 spool file?
 
 It seems to me a simple question and I seem to remember being able to do
 it, but now when I try to remember how I did it, I can't find the way.

set my_real_sendmail=$sendmail
set sendmail=procmail
[send note]
set sendmail=$my_real_sendmail

-- 
David Champion  *  d...@uchicago.edu  *  IT Services  *  University of Chicago


Re: Taking notes using Mutt threads

2010-08-30 Thread mjsseppl-mutt
Hi, Jose.

That is a very interesting set up you have and it would be great if you
could post the relevant parts of your muttrc file and the configuration
of Postfix.

I don't use Postfix - I use Msmtp and Procmail - but I hope that I can
configure Msmtp to do the same as Postfix.

In any case, your idea has really got me thinking, which is good, since
it has been a long time since I have had cause to look at the way I have
my mail system set up.

kind regards

Harry.

On 10.08.29, j...@telefonica.net wrote:
 Hi, friends.
 
 Mutt is marvellous, I start with it only some days ago and now I have
 configured it very very funtional to my taste.
 
 Now I use it also to Take Notes.
 I made an alias for Postfix to send mails to a black hole, /dev/null so
 I can send clean mails to a phantom address in aliases no...@localhost
 and with a fcc-hook all of them go to mailbox =notes
 
 I have mutt with set sort=reverse-threads so I can see my Notes
 threads with nice sorting and order.
 Reply to a Notes Subject is a new note about it.
 I can have as many Subjects as I will need.
 I can Search in body notes or Subject.
 With a macro F12 show me the =notes mailbox.
 
 I choose to have all my important writings in pure text, it is
 universal, faster than other, so I will be always able to read and edit
 my papers, and Notes with Mutt is pure text.
 
 If someone find it useful, please, don't doubt to ask me about config.
 
 Best regards.
 Jose
 
 -- 
 Jose Angel Navarro Cortes
 email: j...@telefonica.net
 web: http://janc.es/
 Usuario Linux: #49178


Re: Taking notes using Mutt threads

2010-08-30 Thread mjsseppl-mutt
On a more general level, regarding Jose's idea:

What are the ways to send local messages so that they end up in the mail
spool file?

It seems to me a simple question and I seem to remember being able to do
it, but now when I try to remember how I did it, I can't find the way.

There's a discussion of the problem, in french, here:
http://linuxfr.org/forums/10/6606.html
where they sum up the problem as a mail server without a mail server.
The best solution they came up with, it seems to me, was using
getmail_mbox or getmail_maildir, and putting that in a script and putting
set sendmail=/path/to/my/myscript.sh
 presumably as part of a hook, in the rc file.

Any ideas?

Harry



On 10.08.29, j...@telefonica.net wrote:
 Hi, friends.
 
 Mutt is marvellous, I start with it only some days ago and now I have
 configured it very very funtional to my taste.
 
 Now I use it also to Take Notes.
 I made an alias for Postfix to send mails to a black hole, /dev/null so
 I can send clean mails to a phantom address in aliases no...@localhost
 and with a fcc-hook all of them go to mailbox =notes
 
 I have mutt with set sort=reverse-threads so I can see my Notes
 threads with nice sorting and order.
 Reply to a Notes Subject is a new note about it.
 I can have as many Subjects as I will need.
 I can Search in body notes or Subject.
 With a macro F12 show me the =notes mailbox.
 
 I choose to have all my important writings in pure text, it is
 universal, faster than other, so I will be always able to read and edit
 my papers, and Notes with Mutt is pure text.
 
 If someone find it useful, please, don't doubt to ask me about config.
 
 Best regards.
 Jose
 
 -- 
 Jose Angel Navarro Cortes
 email: j...@telefonica.net
 web: http://janc.es/
 Usuario Linux: #49178


Re: Taking notes using Mutt threads

2010-08-30 Thread Brian Ryans
Quoting j...@telefonica.net on 2010-08-29 12:59:20, in Message-Id
20100829175920.gc29...@luminium.local

 Now I use it also to Take Notes.

I'd love to see how you did it! I'd never figure mutt to be used as a
note-taking program, and there's just a certain part of my brain tickled
by seeing {hard,soft} used in ways not envisioned by its engineers.

-- 
 _  Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 .
( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com   ..:
 X  ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org
/ \ The most powerful optimization tool . . . may be the Delete key.
  -- Eric S. Raymond


signature.asc
Description: Digital signature


How to get the current folder in a macro and pass i to a Script? [WAS: Taking notes using Mutt threads]

2010-08-30 Thread Michelle Konzack
Hello *,

I am working on a Web-Mail interface and I use MANY functions of mutt.

In my WebMail interface I can add Notes and Files to a mailfolder or
even a Message...  This works, because it is all about virtualisation.

So, sometimes I like to do this in mutt to and generaly it can be done
easyly with a macro.

ATTENTION:  It is recommended to use Maildir

1)  Go into a mailfolder and now you want to store a file in it
2)  Write a new mail and attach the file and Save the file with Fcc:
To do this, you need a macro which does:
a)  set sendmail=/dev/null
b)  my_hdr From: local_n...@invalid
b)  my_hdr Fcc: ${current_folder}

and thats all.

But HOW CAN I GET the ${current_folder} dynamicaly in a macro?

The same problem with the ${current_folder} is,  if  you  use  a  script
instead of sendmail, which let you do much morethings...

e.g.:  SHIFTF2  let you attach a NOTE or FILE to a folder
   SHIFTF3  let you attach a NOTE or FILE to a message

However, even here the script sendmail_local has to know the current
folder which it can get with

my_hdr X-CurFolder: ${current_folder}

by extracting it from the mail.

Note:   I am using already an sendmailwraper called tdssmtp which
is based on ssmtp and of  course,  tdssmtp  ignore  any
messages with some specialy (for 2tdssmtp) crafted headers

And last not least, if you use the Courier Mailfdir Format and like to
use a script, to enhance the function of mutt and your /Maildir/,  you
can add an additional folder like

~/Maildir/courierimapacl
  courierimapkeywords/
  courierimapuiddb
  cur/
  files/==  That it is!
  new/
  tmp/

and let the script manage this special files folder.  Then you can use
at your choice dialog or Xdialog to  manage  it,  which  is  what  I
heavyly do since many years.

Note:   You can even manage the /files/ folder from procmail.  :-D

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: How to get the current folder in a macro and pass i to a Script? [WAS: Taking notes using Mutt threads]

2010-08-30 Thread j...@telefonica.net
Perhaps this can help

Folders abbreviations:
!   — refers to your $spoolfile (incoming) mailbox 
   — refers to your $mbox file 
   — refers to your $record file 
^   — refers to the current mailbox 
- or !! — refers to the file you've last visited 
˜   — refers to your home directory 
= or +  — refers to your $folder directory 
@alias  — refers to the default save folder as determined by the address
of the alias.


El 10.08.31 00:58:57 -- Michelle Konzack dijo:
 Hello *,
 
 I am working on a Web-Mail interface and I use MANY functions of mutt.
 
 In my WebMail interface I can add Notes and Files to a mailfolder or
 even a Message...  This works, because it is all about virtualisation.
 
 So, sometimes I like to do this in mutt to and generaly it can be done
 easyly with a macro.
 
 ATTENTION:  It is recommended to use Maildir
 
 1)  Go into a mailfolder and now you want to store a file in it
 2)  Write a new mail and attach the file and Save the file with Fcc:
 To do this, you need a macro which does:
 a)  set sendmail=/dev/null
 b)  my_hdr From: local_n...@invalid
 b)  my_hdr Fcc: ${current_folder}
 
 and thats all.
 
 But HOW CAN I GET the ${current_folder} dynamicaly in a macro?
 
 The same problem with the ${current_folder} is,  if  you  use  a  script
 instead of sendmail, which let you do much morethings...
 
 e.g.:  SHIFTF2let you attach a NOTE or FILE to a folder
SHIFTF3let you attach a NOTE or FILE to a message
 
 However, even here the script sendmail_local has to know the current
 folder which it can get with
 
 my_hdr X-CurFolder: ${current_folder}
 
 by extracting it from the mail.
 
 Note:   I am using already an sendmailwraper called tdssmtp which
 is based on ssmtp and of  course,  tdssmtp  ignore  any
 messages with some specialy (for 2tdssmtp) crafted headers
 
 And last not least, if you use the Courier Mailfdir Format and like to
 use a script, to enhance the function of mutt and your /Maildir/,  you
 can add an additional folder like
 
 ~/Maildir/courierimapacl
   courierimapkeywords/
   courierimapuiddb
   cur/
   files/==  That it is!
   new/
   tmp/
 
 and let the script manage this special files folder.  Then you can use
 at your choice dialog or Xdialog to  manage  it,  which  is  what  I
 heavyly do since many years.
 
 Note:   You can even manage the /files/ folder from procmail.  :-D
 
 Thanks, Greetings and nice Day/Evening
 Michelle Konzack
 
 -- 
 # Debian GNU/Linux Consultant ##
Development of Intranet and Embedded Systems with Debian GNU/Linux
 
 itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
 Owner Michelle KonzackOwner Michelle Konzack
 
 Apt. 917 (homeoffice)
 50, rue de Soultz Kinzigstraße 17
 67100 Strasbourg/France   77694 Kehl/Germany
 Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
 Tel: +33-9-52705884 fix
 
 http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
 http://www.debian.tamay-dogan.net/ http://www.can4linux.org/
 
 Jabber linux4miche...@jabber.ccc.de
 ICQ#328449886
 
 Linux-User #280138 with the Linux Counter, http://counter.li.org/



-- 
Jose Angel Navarro Cortes
email: j...@telefonica.net
web: http://janc.es/
Usuario Linux: #49178


Re: Taking notes using Mutt threads

2010-08-30 Thread Chip Camden
Quoth Cameron Simpson on Monday, 30 August 2010:
 On 29Aug2010 12:21, Chip Camden sterl...@camdensoftware.com wrote:
 | I often find that I want to copy text from an email into another file.
 | Rather than reaching for the mouse to highlight the text and then start
 | my editor and paste it, I just forward the message to myself without
 | actually sending it.  Since my email editor is vim, I can then yank the
 | text from the almost-forwarded message and then open the other file and
 | paste it.  Then quit the original file and press 'n' to avoid sending it.
 | Anyone have an even easier hack?
 
 Type 'e' to edit the message. Append lines 10,20 to another file:
 
   :10,20w other_file
 
 Quit without changing anything (thus not editing the message after all).
 
 Cheers,
 -- 
 Cameron Simpson c...@zip.com.au DoD#743
 http://www.cskk.ezoshosting.com/cs/
 
 Isaac Asimov once remarked that friends had chided him for not patenting the
 electronic pocket calculator, since he wrote of similar devices back in the
 1940's.  His reply, Have you ever noticed I only described what it looked
 like on the *outside*? - i...@mediaone.net

'e' is 'e'ven better.  Thanks!

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgpKSQUBwnnNj.pgp
Description: PGP signature


Re: How to get the current folder in a macro and pass i to a Script? [WAS: Taking notes using Mutt threads]

2010-08-30 Thread Michelle Konzack
Hello j...@telefonica.net,

Am 2010-08-31 01:19:25, hacktest Du folgendes herunter:
 Perhaps this can help
 
 Folders abbreviations:
 !   — refers to your $spoolfile (incoming) mailbox 
— refers to your $mbox file 
— refers to your $record file 
 ^   — refers to the current mailbox 
 - or !! — refers to the file you've last visited 
 ˜   — refers to your home directory 
 = or +  — refers to your $folder directory 
 @alias  — refers to the default save folder as determined by the address
 of the alias.

But you can nothing use as a parameter for a script called from a macro.
You can not even use:

my_hdr Fcc: ^

which should save the message you are curently writing  in  the  CURRENT
mailfolder.

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Taking notes using Mutt threads

2010-08-29 Thread j...@telefonica.net
Hi, friends.

Mutt is marvellous, I start with it only some days ago and now I have
configured it very very funtional to my taste.

Now I use it also to Take Notes.
I made an alias for Postfix to send mails to a black hole, /dev/null so
I can send clean mails to a phantom address in aliases no...@localhost
and with a fcc-hook all of them go to mailbox =notes

I have mutt with set sort=reverse-threads so I can see my Notes
threads with nice sorting and order.
Reply to a Notes Subject is a new note about it.
I can have as many Subjects as I will need.
I can Search in body notes or Subject.
With a macro F12 show me the =notes mailbox.

I choose to have all my important writings in pure text, it is
universal, faster than other, so I will be always able to read and edit
my papers, and Notes with Mutt is pure text.

If someone find it useful, please, don't doubt to ask me about config.

Best regards.
Jose

-- 
Jose Angel Navarro Cortes
email: j...@telefonica.net
web: http://janc.es/
Usuario Linux: #49178


Re: Taking notes using Mutt threads

2010-08-29 Thread Chip Camden
Quoth j...@telefonica.net on Sunday, 29 August 2010:
 Hi, friends.
 
 Mutt is marvellous, I start with it only some days ago and now I have
 configured it very very funtional to my taste.
 
 Now I use it also to Take Notes.
 I made an alias for Postfix to send mails to a black hole, /dev/null so
 I can send clean mails to a phantom address in aliases no...@localhost
 and with a fcc-hook all of them go to mailbox =notes
 
 I have mutt with set sort=reverse-threads so I can see my Notes
 threads with nice sorting and order.
 Reply to a Notes Subject is a new note about it.
 I can have as many Subjects as I will need.
 I can Search in body notes or Subject.
 With a macro F12 show me the =notes mailbox.
 
 I choose to have all my important writings in pure text, it is
 universal, faster than other, so I will be always able to read and edit
 my papers, and Notes with Mutt is pure text.
 
 If someone find it useful, please, don't doubt to ask me about config.
 
 Best regards.
 Jose
 
 -- 
 Jose Angel Navarro Cortes
 email: j...@telefonica.net
 web: http://janc.es/
 Usuario Linux: #49178

That's a cool tip -- I might have to use it.  

I often find that I want to copy text from an email into another file.
Rather than reaching for the mouse to highlight the text and then start
my editor and paste it, I just forward the message to myself without
actually sending it.  Since my email editor is vim, I can then yank the
text from the almost-forwarded message and then open the other file and
paste it.  Then quit the original file and press 'n' to avoid sending it.
Anyone have an even easier hack?

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgpmojpLKSIVK.pgp
Description: PGP signature


Re: Taking notes using Mutt threads

2010-08-29 Thread Cameron Simpson
On 29Aug2010 12:21, Chip Camden sterl...@camdensoftware.com wrote:
| I often find that I want to copy text from an email into another file.
| Rather than reaching for the mouse to highlight the text and then start
| my editor and paste it, I just forward the message to myself without
| actually sending it.  Since my email editor is vim, I can then yank the
| text from the almost-forwarded message and then open the other file and
| paste it.  Then quit the original file and press 'n' to avoid sending it.
| Anyone have an even easier hack?

Type 'e' to edit the message. Append lines 10,20 to another file:

  :10,20w other_file

Quit without changing anything (thus not editing the message after all).

Cheers,
-- 
Cameron Simpson c...@zip.com.au DoD#743
http://www.cskk.ezoshosting.com/cs/

Isaac Asimov once remarked that friends had chided him for not patenting the
electronic pocket calculator, since he wrote of similar devices back in the
1940's.  His reply, Have you ever noticed I only described what it looked
like on the *outside*? - i...@mediaone.net


Re: Taking notes using Mutt threads

2010-08-29 Thread David Champion
* On 29 Aug 2010, Chip Camden wrote: 
 
 I often find that I want to copy text from an email into another file.
 Rather than reaching for the mouse to highlight the text and then start
 my editor and paste it, I just forward the message to myself without
 actually sending it.  Since my email editor is vim, I can then yank the
 text from the almost-forwarded message and then open the other file and
 paste it.  Then quit the original file and press 'n' to avoid sending it.
 Anyone have an even easier hack?

Do you have a command-line tool that copies stdin to your pasteboard or
clipboard?  (MacOS X has pbcopy.  When I used X11, I used an Xaw program
called 'xcb' for similar purposes.  I see references to something called
'xclip', but I don't know what's current in the window managers people
use these days.)

Use that as your print command, or embed it in a macro to accomplish the
same via pipe-message or decode-copy.  In the latter approach you can
add dressing to select only the decoded message body, etc.

You likely can paste with a similar solution -- pbpaste on MacOS,
or xcb/xclip/whatever on X11. '!!pbpaste' is pretty easy vs. ':r
/tmp/some-draft-file'.

-- 
David Champion  *  d...@uchicago.edu  *  IT Services  *  University of Chicago