Re: save-message to ? and then sync the folder

2008-12-12 Thread Chris Bannister
On Fri, Dec 05, 2008 at 09:11:05AM -0500, Patrick Shanahan wrote:
 * Chris Bannister mockingb...@earthlight.co.nz [12-05-08 07:45]:
  On Mon, Dec 01, 2008 at 05:40:58PM -0600, David Champion wrote:
   * On 2008.11.27, in 20081127132013.ga17...@dracona,
   * trance...@gmx.ch trance...@gmx.ch wrote: 
 ^
  
  Have you got a %D in your set attribution=On ... wrote:?
 
 he probably does not as that in mutt would not accomplish what you
 describe.  Look at man muttrc and you will find, %n %a

Ooops, I think I spent considerable time finding out that wrong info. :(
 
  On some lists you can get flamed for including the email address in the
  attribution, (or anywhere in the body, I presume.), ... something about
  address havesters. It was interesting to note that the list(s)
  mentioned had windoze users as subscribers, i.e. vim_use and a cygwin
  list.
 
 What makes it easier to get the addresses from the body than from the
 header?  They appear both places.

It could be that the messages are archived on the web without the
headers? or M$ users don't know about headers? (Any one know how to get
outhouse to display the headers?)

-- 
Chris.
==
I contend that we are both atheists. I just believe in one fewer god
than you do. When you understand why you dismiss all the other
possible gods, you will understand why I dismiss yours.
   -- Stephen F Roberts


Re: save-message to ? and then sync the folder

2008-12-12 Thread Michael Kjorling
On 12 Dec 2008 21:59 +1300, by mockingb...@earthlight.co.nz (Chris Bannister):
 (Any one know how to get outhouse to display the headers?)

In Outlook Express 6, open the message, then File - Properties -
Details. In Outlook 2007, right-click on the message and pick Message
options, then look under Internet headers.

-- 
Michael Kjörling .. mich...@kjorling.se .. http://michael.kjorling.se
* . No bird soars too high if he soars with his own wings . *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x 758F8749 BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *



signature.asc
Description: Digital signature


Re: save-message to ? and then sync the folder

2008-12-05 Thread Chris Bannister
On Mon, Dec 01, 2008 at 05:40:58PM -0600, David Champion wrote:
 * On 2008.11.27, in [EMAIL PROTECTED],
 * [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 
   ^

Have you got a %D in your set attribution=On ... wrote:?
On some lists you can get flamed for including the email address in the
attribution, (or anywhere in the body, I presume.), ... something about
address havesters. It was interesting to note that the list(s)
mentioned had windoze users as subscribers, i.e. vim_use and a cygwin
list.

I notice the mutt default setting for the attribution doesn't include
the email address (%D?).

-- 
Chris.
==
I contend that we are both atheists. I just believe in one fewer god
than you do. When you understand why you dismiss all the other
possible gods, you will understand why I dismiss yours.
   -- Stephen F Roberts


Re: save-message to ? and then sync the folder

2008-12-01 Thread Rocco Rutte

Hi,

* [EMAIL PROTECTED] wrote:

  macro s save-message?\nsync-mailbox
 or
  macro s save-message?entersync-mailbox

I think the issue is that he would like to select a mailbox using the
folder browser, and then continue on executing the rest of the macro.


yes, I want to using the browser, then after syncing the mailbox...


Sorry, that won't work as Michael described. I already wondered why
someone would name a mailbox ? :)

Rocco


Re: save-message to ? and then sync the folder

2008-12-01 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday, November 27 at 02:20 PM, quoth [EMAIL PROTECTED]:
how can I sync the mailbox after save a message to any folder like 
this:

macro s save-message?

the above works great, but after this save mutt should sync
automatically. Like this:

macro s save-message?sync-mailbox

Well, the trick here is that you're giving mutt a bunch of things to 
do all at once, as others on this list have suggested. HOWEVER, I 
think this can be done if you're especially clever.

The 'save-message?' part of the macro puts you into the browser. To 
then get mutt to do something as you *exit* the browser (i.e. after 
you've selected an entry), you'd need to tuck your desired behavior 
into the methods of exiting from the browser. For example:

 macro index s enter-command macro browser \\return\\
 'select-entrysync-mailbox'entersave-message?

It would be even cooler if you could have the secondary macro clean up 
after itself:

 macro index s enter-command macro browser \\return\\
 'enter-commandbind browser
 returnenterselect-entrysync-mailbox'entersave-message?

... but there seems to be some problem with the handling of enter in 
the rebinding part that I can't quite figure out.

~Kyle
- -- 
Look, I can surely say by now that I've got the antibodies to 
communism inside me. But when I think of consumer society, with all 
its tragedies, I wonder which of the two systems is better.
 -- Pope John Paul II, 1979
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkkz//EACgkQBkIOoMqOI14IBACfcx9aKGaIIgXGXKFLVxJ/uYCu
478AnRJNnUPwqMj4H8XIKyUjNIkN3ceP
=ltLX
-END PGP SIGNATURE-


Re: save-message to ? and then sync the folder

2008-12-01 Thread David Champion
* On 2008.11.27, in [EMAIL PROTECTED],
*   [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 
 
 Hello 
 
 how can I sync the mailbox after save a message to any folder like this:
 
 macro s save-message?
 
 the above works great, but after this save mutt should sync
 automatically. Like this:
 
 macro s save-message?sync-mailbox

This works for me.

macro index S 'enter-commandset my_folder=`mutt-prompt Save to folder \\`; 
push refreshsave-message$my_folder\enter\sync-mailboxenter'

Be sure to enter it in only one line.  The backslashes are wacky, but so
are mutt's quoting rules.  This is no typo; it really does work on my
system.

A mutt-prompt script is required; see attachment.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago
#!/bin/sh
##
## usage: mutt-prompt prompt text
## 
## In muttrc:
##   set my_var=`mutt-prompt Folder`
##

# save current tty state
s=`stty -g`

# redirect default i/o, saving current stdout in fd 5
exec 51
exec /dev/tty /dev/tty

# reset tty state
stty icanon sane onlcr

# position cursor at bottom of screen
rows=`tput lines`
rows=`expr $rows - 1`
tput cup $rows 0

# print prompt and read response
printf ${1}: 
read answer

# return response to mutt
echo $answer 5

# reset tty state
stty $s


Re: save-message to ? and then sync the folder

2008-11-30 Thread trance202
   macro s save-message?\nsync-mailbox
  or
   macro s save-message?entersync-mailbox

 I think the issue is that he would like to select a mailbox using the
 folder browser, and then continue on executing the rest of the macro.

yes, I want to using the browser, then after syncing the mailbox...

thanks for your answers
rap


Re: save-message to ? and then sync the folder

2008-11-28 Thread Michael Elkins
On Thu, Nov 27, 2008 at 02:20:13PM +0100, [EMAIL PROTECTED] wrote:
 how can I sync the mailbox after save a message to any folder like this:
 
 macro s save-message?
 
 the above works great, but after this save mutt should sync
 automatically. Like this:
 
 macro s save-message?sync-mailbox
 
 but, this doesn't work, because mutt wait for any data from user and
 take then ync-mailbox as mailbox-destination, which is wrong. 

Unfortunately Mutt does not have any way to do what you want.  The
keyboard macro support is not really a substitute for full scripting,
which is really what you'd need here.

me


Re: save-message to ? and then sync the folder

2008-11-28 Thread Rocco Rutte

Hi,

* Michael Elkins wrote:

On Thu, Nov 27, 2008 at 02:20:13PM +0100, [EMAIL PROTECTED] wrote:

how can I sync the mailbox after save a message to any folder like this:

macro s save-message?

the above works great, but after this save mutt should sync
automatically. Like this:

macro s save-message?sync-mailbox

but, this doesn't work, because mutt wait for any data from user and
take then ync-mailbox as mailbox-destination, which is wrong.


Unfortunately Mutt does not have any way to do what you want.  The
keyboard macro support is not really a substitute for full scripting,
which is really what you'd need here.


Hmm, how about

 macro s save-message?\nsync-mailbox

or

 macro s save-message?entersync-mailbox

if I get the problem right.

Rocco


Re: save-message to ? and then sync the folder

2008-11-28 Thread Michael Elkins
On Fri, Nov 28, 2008 at 09:16:52PM +0100, Rocco Rutte wrote:
 Hmm, how about

  macro s save-message?\nsync-mailbox
 or
  macro s save-message?entersync-mailbox

 if I get the problem right.

I think the issue is that he would like to select a mailbox using the
folder browser, and then continue on executing the rest of the macro.

me


save-message to ? and then sync the folder

2008-11-27 Thread trance202

Hello 

how can I sync the mailbox after save a message to any folder like this:

macro s save-message?

the above works great, but after this save mutt should sync
automatically. Like this:

macro s save-message?sync-mailbox

but, this doesn't work, because mutt wait for any data from user and
take then ync-mailbox as mailbox-destination, which is wrong. 

any tips?

Thank you.
Raphael