<<< Date Index >>>     <<< Thread Index >>>

Re: copy on a per email basis



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, February 12 at 08:19 PM, quoth SK:
>> Do you want to press a key to make mutt save messages to a specific
>> folder, but to not do so if you do not press this key?
>
>Yes, exactly, without even having to answer the "Yes/No" question (if
>I set ask-yes, or ask-no option) every time.

Ah, that's easy then:

     set copy=yes
     set record=
     macro compose S '<edit-fcc><kill-line>=Saved<enter>'

Thus, by default, mutt will not save a copy, because $record is empty, 
but when you press S (aka shift-s), it will set the FCC to be 
"=Saved", and when the message is sent, a copy WILL be saved to the 
"=Saved" folder.

If you want mutt to remember your decision between messages, then 
you'd have to do it a bit differently:

     set copy=yes
     set record=
     # first, we have the set-saved action:
     macro compose ,S '<edit-fcc><kill-line>=Saved<enter>\
     <enter-command>set record="=Saved"<enter>\
     <enter-command>macro compose S ,s<enter>'
     # now we have the set-not-saved action:
     macro compose ,s '<edit-fcc><kill-line><enter>\
     <enter-command>set record=<enter>\
     <enter-command>macro compose S ,S<enter>'
     # note that those two toggle the following macro back and forth
     # between them:
     macro compose S ,S

Does that help?

~Kyle
- -- 
Many who claim to have been transformed by Christ's love are deeply, 
even murderously, intolerant of criticism.
                                                          -- Sam Harris
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFHsfZLBkIOoMqOI14RAuqBAKDn9GN5XcuvrffFYGHhzPYZ+0QCOACfWUnp
L8Ttsc61pv8BpcRjU9wMLck=
=Qs8R
-----END PGP SIGNATURE-----