Re: change profile on the fly

2012-08-15 Thread Marcelo Laia
I have this code in my:

.mutt/muttrc

# Send hooks to make replies get the appropriate From field
unhook send-hook
send-hook . "source ~/.mutt/profile.gmail\n"# attribution='Hi
%v!\n\nOn %{%a, %d %b %Y}, %n wrote:\n'"
send-hook ^(offlineimap-proj...@lists.alioth.debian.org|mutt-users@mutt.org)
'set mime_forward signature="~/.mutt/sig.list"'
send-hook ^('(.*)@ufvjm\.edu\.br') "source ~/.mutt/profile.ufvjm\n"


.mutt/profile.ufvjm

# NAME: UFVJM
# DESC: UFVJM

set locale=""   # system default locale ("C")
set signature='~/.mutt/sig.ufvjm'   # signature file
set indent_string="> "  # Quoting mails with this string.
set attribution='On %{%a, %d %b %Y}, %n wrote:\n'
set post_indent_string=""   # Footer (after quotes, before 
signature).
set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o?
Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?
%?l? %l?]---(%s/%S)-default-%>-(%P)---"

# Pretty Good Privacy (PGP):
set pgp_sign_as="0x"# UserID/KeyID for signing
set nopgp_autoencrypt   # Default (no enc)
set nopgp_autosign  # Default (sign)

# Customized headers
unmy_hdr *  # remove all extra headers first.

my_hdr From: My name 
my_hdr Reply-To: My name 
#my_hdr Bcc: usern...@domain.com
my_hdr Organization: My Organization

fcc-hook . "+UFVJM/Sent"# the file to copy sent messages

If I send mail to some...@ufvjm.edu.br, my hdr From and Replay is
changed on the fly. However, If I send a mail to
some...@otherserver.com, it doesen't.

Have you some insights about this?

Thank you very much

--
  O__   --- Marcelo


Re: change profile on the fly

2012-08-15 Thread Andreas Kneib
* Marcelo Laia schrieb am 15.08.2012 um  9:50 Uhr:

> How I would change the current profile on the fly?

for example (without macros) type IN mutt

:set sendmail="/usr/local/bin/msmtp-enqueue.sh -a account1"
:my_hdr From: "Tux Penguin" 


Andreas


Re: change profile on the fly

2012-08-15 Thread Rado Q
=- Marcelo Laia wrote on Wed 15.Aug'12 at  9:50:15 -0300 -=

> I have 3 account and I would like to send mails with my username
> according to current account.

By will: "macro"s.
If you're forgetful, use specific folder per account, then use
"folder-hook" to adjust if you operate in this folder.

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.


change profile on the fly

2012-08-15 Thread Marcelo Laia
Hi,

How I would change the current profile on the fly?

I have 3 account and I would like to send mails with my username
according to current account.

Thank you very much.

-- 
  O__   --- Marcelo