Re: How to change dynamically the From hdr?

2009-02-16 Thread Ennio-Sr
* Stefan Wimmer swim...@xs4all.nl [160209, 02:20]:
 * Ennio-Sr nasr.la...@tin.it [2009-02-16 01:32]:
  [Using mutt 1.5.18-6 under GNU/Linux Lenny, from console]
  
  Hi all,
  I found many old posts explaining how to choose a different From header
  from a list of From hdrs while composing a message, but was unable to
  use them. 
  [...] 
 The easiest thing for me seems to be 'set edit_headers' which gives youthe 
 possibility to change 'From:' manually within vim ...
 
 Another possibility of course would be using hooks to define different 
 from-headers depending on the folder/recipient you're sending the mail 
 from/to 
 ...
 

Thank you, Stefan, for your suggestions: I already use hooks and was just
curious about the possibility to choose on the fly the From hdr the way
one can do it with  a mailer under X (e.g. gmail.com). Then, again, I
found strange that what was possible to do with mutt six years ago is not
achievable today...hence my doubts about incompatibility with vim...

-- 
[Why use Win$ozz (I say) if ... even a fool can do that.  \\?//
 Do something you aren't good at! (as Henry Miller used to say)]  (°|°)
Regards, Ennio. -- Please replace '.' for '_dot_' in my Reply-To.  )=(


Re: How to change dynamically the From hdr?

2009-02-16 Thread Nicolas Sebrecht

On Mon, Feb 16, 2009 at 10:50:16AM +0100, Ennio-Sr wrote:

  I already use hooks 

Ok.

  was just
 curious about the possibility to choose on the fly the From hdr the way
 one can do it with  a mailer under X (e.g. gmail.com). 

Not sure to understand what you're looking for exactly. Could you
explain, please ? What's that mysterious feature « choose on the fly the
 From: field ? »

-- 
Nicolas Sebrecht



Re: newbie install

2009-02-16 Thread James Freer
Brandon

 Are you wanting to do filtering beyond what you are doing with Gmail's
 filtering?  Or are you trying to subvert the web interface altogether?
 This matters to answering your question.

Sorry i think i might have slightly misled your thinking and should clarify.

a] I want to use mutt on IMAP to bypass the web interface to reply and
sort through email more quickly than i do. e.g. google's web interface
is v.good compared with others but still slow only listing 100
messages per screen.

b] Save important emails to my hard drive which i gathered one can do
with mutt - using maildir saving as text files as opposed to mbox. To
select emails and then save manually to certain directories would be
ideal (although can probably be done via filter). [Using Thunderbird i
used a plugin called ImportExportTools which could save emails to a
folder in html format with an index. That was fine but i'd prefer to
use something simpler and like the text style of mutt].

c] POP does work fine and i've used it but takes along time to
download all email which one then deletes a large chunk of. I did set
Thunderbird up with filters and it was fine. Downloading 50 messages
takes time with POP compared with IMAP downloading just headers and
then retrieving the message body for say 10 messages you want to reply
to. I don't know how much of one's broadband byte allocation would be
used up with 1500 messages/week but a chunk whereas with IMAP much
less as it's only the headers and the message of those one chooses to
read.

d] I want to use an editor (vim) to edit emails and mutt offers this
which other email clients don't.


Thanks
james


Re: newbie install

2009-02-16 Thread James Freer
Kyle

 You mean procmail, not postfix, right? Procmail *APPEARS* easier, but
 has some massive problems with error handling (see

No assuming Ubuntu Linux by Von Hagan is correct.

examples [if i've learnt anything!]

MTA [mail transfer agent] - sendmail, postfix, qmail, exim, mstmp

MDA [mail delivery agent] - procmail, maildrop, qpopper, courier IMAP, cyrus

MUA [mail user agent] - evolution, mutt, kmail, pine, thunderbird
(most include an MTA and MDA)

james


Re: newbie install

2009-02-16 Thread jkinz
On Fri, Feb 13, 2009 at 06:21:47PM -0600, Derek Martin wrote:
 pedantic
 FWIW, the statement is correct as stated.  A statement which is
 phrased as an absolute which is not always true is false (i.e. not
 true).
 /pedantic

Derek has accumulated enough clarity points to win his pedant pendant
for the year 2009!  Congratulations Derek!  ;-) 

Derek Hey - are you going to BLU on the 18-th? I wonder if they
will anything new on Linux TCO. I need another club to swing in 
the myriad Win vs Lin engagements

Jeff Kinz.

-- 
Funniest signatures series: (found posted to a public email list)

IMPORTANT: This email remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the CRIMES
ACT 1914.  If you have received this email in error, you are requested to
contact the sender and delete the email. 



binding control-up, control-down

2009-02-16 Thread Sven Hergenhahn
Hi,

(sorry if double-posted, but my original post did not show up for 5 hours)

I'm trying to bind control-up and control-down.

Neither ctrlup
nor \cup
nor \111

does the trick.

Any ideas?

Thanks,
Sven


Re: How to change dynamically the From hdr?

2009-02-16 Thread Sander Smeenk
Quoting Nicolas Sebrecht (nicolas.s-...@laposte.net):

  curious about the possibility to choose on the fly the From hdr the way
  one can do it with  a mailer under X (e.g. gmail.com). 
 Not sure to understand what you're looking for exactly. Could you
 explain, please ? What's that mysterious feature « choose on the fly the
  From: field ? »

Most GUI MUA's allow you to choose a sender address from a predefined
set of 'identities' while composing messages. That's what i gather he
means with 'choose on the fly the From: field'.

Mutt doesn't offer such functionality other than the already proposed
'edit_headers' and/or folder_hooks. I use folder_hooks _AND_
edit_headers. This works like a charm with vim as the editor.

-Sndr.
-- 
| Why does a kamikazepilot wear a helmet?
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8  9BDB D463 7E41 08CE C94D


Re: How to change dynamically the From hdr?

2009-02-16 Thread Ennio-Sr
* Nicolas Sebrecht nicolas.s-...@laposte.net [160209, 12:23]:
 
 Not sure to understand what you're looking for exactly. Could you
 explain, please ? What's that mysterious feature « choose on the fly the
  From: field ? »
 

On posts going back to 2003 I red it was possible to switch identity
while composing a message. What I understood from those posts was that
you had to put the following lines in .muttrc:

macro compose z edit-from^UIdentity_tab Select from

alias  Identity_1   1st_addr...@tin.it
alias  Identity_2   2nd_addr...@tin.it
.  ..   
alias  Identity_n   nth_addre...@tin.it

then, pressing 'z' while editing a new mail, you would be able to change
your 'From:' header choosing from the list of identities. However, I did
try it with no success ;-(
 
Hope this clarifies my subject
-- 
[Why use Win$ozz (I say) if ... even a fool can do that.  \\?//
 Do something you aren't good at! (as Henry Miller used to say)]  (°|°)
Regards, Ennio. -- Please replace '.' for '_dot_' in my Reply-To.  )=(


Re: newbie install

2009-02-16 Thread Paul E Condon
On 2009-02-15_13:13:09, Brandon Sandrowicz wrote:
 On Sun, Feb 15, 2009 at 06:41:46PM +, James Freer wrote:
...snip...

 Exim is part of the default install because in the olden days all of
 your email was delivered to the 'mail spool' (usually
 /var/mail/$USERNAME or /var/spool/mail/$USERNAME) and you read it from
 there, possibly copying it to a local home directory (like ~/Mail/inbox
 or something similar). Lots of command-line and backend programs relied
 on this functionality, and sent things like error messages to your mail
 spool.  Many still do.  For example, if you define a process to run in a 
 schedule on
 cron, any output (either to STDOUT or STDERR) will be packaged into an
 email an sent to your mailspool (the assumption being that any output
 that isn't going to a log file is an error that you'll want to know
 about).

Even today an MTA is needed for hosts that have special uses.
Firewalls, etc.  On these machines there are a bunch of daemon
processes, which can get into trouble, and need to be able to call for
help. On Debian, and likely othe distributions, this is done by
sending local email to root. The sysadmin is supposed to look at this
spool periodically. Without an automatic install of a MTA, this idea
would be already broken out of the box. Debian has choosen Exim/Exim4
for this function in the base system. If you install some other MTA
or intend to rely on your MUA for MTA services, you may not be able
to remove the MTA that the distribution provided, unless you make 
sure that your substitute is actually handling this 'hidden' email
traffic. There are daemons on your computer that may, some day, need
to talk to you.

-- 
Paul E Condon   
pecon...@mesanetworks.net


Re: How to change dynamically the From hdr?

2009-02-16 Thread Rocco Rutte

Hi,

* Ennio-Sr wrote:


On posts going back to 2003 I red it was possible to switch identity
while composing a message. What I understood from those posts was that
you had to put the following lines in .muttrc:

macro compose z edit-from^UIdentity_tab Select from

alias  Identity_1   1st_addr...@tin.it
alias  Identity_2   2nd_addr...@tin.it
.  ..   
alias  Identity_n   nth_addre...@tin.it

then, pressing 'z' while editing a new mail, you would be able to change
your 'From:' header choosing from the list of identities. However, I did
try it with no success ;-(


Yes, this works like a charm. What _exactly_ happens in your case? A
guess: you put ^ and U in there instead of a Control-U character?

If you try to edit the from line, mutt fills it with the content already
there. Control-U or kill-line editor function clears that line. Thus,
the above is equivalent to:

   macro compose z edit-fromkill-lineIdentity_tab Select from

If that still doesn't work for you, please provide an error message or
whatever mutt gives you.

Rocco


binding control-up, control-down

2009-02-16 Thread Sven Hergenhahn
Hi,

I'm trying to bind control-up and control-down.

Neither ctrlup
nor \cup
nor \111

does the trick.

Any ideas?

Thanks,
Sven


Re: binding control-up, control-down

2009-02-16 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday, February 16 at 02:31 PM, quoth Sven Hergenhahn:
I'm trying to bind control-up and control-down.

Good luck - many terminals don't actually understand those as any 
different than normal up and down.

But, the way to find out if mutt can see those characters is to use 
the what-key function (sometimes bound to ctrl-G in mutt, or you can 
use :exec what-key). That will also show you what to put in your 
muttrc. That's going to be fairly machine- and terminal-specific, 
though.

~Kyle
- -- 
The price of freedom of religion, or of speech, or of the press, is 
that we must put up with a good deal of rubbish.
  -- Robert Jackson
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkmZlaYACgkQBkIOoMqOI14plwCg+YRZQwtcczk+wylj2EoMGodU
ipoAoMNTMLQ+0EH+G8zcFsz5ycu8JtWw
=n/Qn
-END PGP SIGNATURE-


Re: newbie install

2009-02-16 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday, February 16 at 12:09 PM, quoth James Freer:
Kyle

 You mean procmail, not postfix, right? Procmail *APPEARS* easier, but
 has some massive problems with error handling (see

No assuming Ubuntu Linux by Von Hagan is correct.

You said I need to use postfix OR maildrop. (emphasis mine). That 
suggests you believed them to be analogs. Even in your list here, 
postfix is an MTA, maildrop is an MDA, so they're not analogs.

examples [if i've learnt anything!]

MTA [mail transfer agent] - sendmail, postfix, qmail, exim, mstmp

MDA [mail delivery agent] - procmail, maildrop, qpopper, courier IMAP, cyrus

Strictly speaking, no, qpopper, courier IMAP, and cyrus IMAP are *not* 
MDAs because they do not *deliver* email. They *serve* email, and 
don't really fit into the usual email transfer categories 
(MTA/MDA/MUA/MRA/MSA). See http://wiki.mutt.org/?MailConcept Now, they 
may *proved* MDA features; I know dovecot IMAP has an MDA/LDA program, 
and I think courier and cyrus come with one too, but I'm pretty sure 
that qpopper doesn't.

Of course, now we're getting into pedantry, and kinda off track. :)

~Kyle
- -- 
As we enjoy great Advantages from the Inventions of others we should 
be glad of an Opportunity to serve others by any Invention of ours, 
and this we should do freely and generously.
   -- Benjamin Franklin
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkmZl/wACgkQBkIOoMqOI15QWgCfZeDFJjgsOLw3k96SNvtQ9y5l
/NsAoPsmIF1+/yu1v466WxBmw+RkBuvX
=4OQP
-END PGP SIGNATURE-


Re: newbie install

2009-02-16 Thread Noah Sheppard
On Mon, Feb 16, 2009 at 10:44:45AM -0600, Kyle Wheeler wrote:
 [..]
 Of course, now we're getting into pedantry, and kinda off track. :)

We are computer geeks; pedantry is never off-track.

http://xkcd.com/386/

Cheers,
-- 
Noah Sheppard
Assistant Computer Resource Manager
Taylor University CSE Department
nshep...@cse.taylor.edu



Re: newbie install

2009-02-16 Thread James Freer
 Of course, now we're getting into pedantry, and kinda off track. :)

 ~Kyle

Yea sure. I've been trying to learn my way through this. Now that exim
appears to be a default install and maildrop has dependencies on exim.
I'll be installing maildrop shortly and hopefully end up with the mutt
installation i've been aiming for.

Thanks for your help... and being patient!

james


experiences with offlineimap

2009-02-16 Thread Kevin Beranek
I know this is a little off topic, but I have the impression that there
are a number of people on this list that use offlineimap and this seemed
like the best forum for my question.

I've been using offlineimap for a few months now to sync a local maildir
with a gmail account and I've had some mixed experiences.  Offlineimap
functionality is great when it is working, but the problem is that it
doesn't always work.  It randomly crashes or hangs all the time, about
once per day on average, but that figure is a little misleading because
some days it crashes 5-10 times/day and other times it runs fine for 1+
week without crashing.

The stack trace is almost never the same and I have not noticed any
patterns.  I've used various versions including 6.0.1, 6.0.2, 6.0.3, and
a couple of versions from the repository, the latest of which was 4 days
ago.  I've spent a few hours digging through the code but I haven't
found anything that looks interesting yet.

I have a couple of solutions that kind of work, but I don't really like
them.

1) run from cron without autorefresh and then kill the process after a
   given amount of time to handle situations where it hangs

2) wrapper that runs offlineimap with autorefresh but kills and restarts
   the process if there has been no output for a given period of time or
   the process terminates

Has anybody had similar experiences with offlineimap or am I the only
lucky one?


-- 
Kevin Beranek
=
GPG Key: 1024D/0x5E62AB46 2009-02-13


pgpmxdJcpKMBF.pgp
Description: PGP signature


using mutt with comcast

2009-02-16 Thread Don Raikes
Hello,

Has anyone had any success using mutt to send email using the comcast smtp 
service?

I have comcast as my ISP, and while according to comcast I should be able to 
use 

smtp.comcast.net:25 as my smtp host, whenever I try to send email, I get an 
error saying that it is an invalid smtp host.

Has anyone gotten this to work?
I have comcast residential internet service in Arizona USA.

-- 
Oracle http://www.oracle.com
Donald Raikes | Accessibility Specialist
Phone: +1 602 824 6213 | Fax: +1 520 744 0826 | Mobile: +1 520 271 7608 
Oracle JDeveloper Quality Assurance
| Tucson, Arizona 

Green Oracle http://www.oracle.com/commitment  Oracle is committed to 
developing practices and products that help protect the environment  


Re: using mutt with comcast

2009-02-16 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday, February 16 at 05:51 PM, quoth Don Raikes:
smtp.comcast.net:25 as my smtp host, whenever I try to send email, I 
get an error saying that it is an invalid smtp host.

How do you send email: via mutt's $smtp_url or with $sendmail or...?

What *exactly* does the error message look like?

~Kyle
- -- 
I hold it that a little rebellion, now and then, is a good thing, and 
as necessary in the political world as storms are in the physical.
-- Thomas Jefferson
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkmZqKIACgkQBkIOoMqOI15XGACgsk4IylvU35fczIIUQppB4x9h
GE0AoJHzv2KdxNaQtdGXKbF+BRpwkozn
=+WPJ
-END PGP SIGNATURE-


Re: using mutt with comcast

2009-02-16 Thread Rem P Roberti
 Hello,
 
 Has anyone had any success using mutt to send email using the comcast smtp 
 service?
 
 I have comcast as my ISP, and while according to comcast I should be able to 
 use 
 
 smtp.comcast.net:25 as my smtp host, whenever I try to send email, I get an 
 error saying that it is an invalid smtp host.
 
 Has anyone gotten this to work?
 I have comcast residential internet service in Arizona USA.


Comcast is my provider, but port 25 does not work here.  I have to use
port 587.  I am using Mutt in conjunction with msmtp.

--Rem 


Re: using mutt with comcast

2009-02-16 Thread Charlie Kester

* Rem P Roberti remeg...@comcast.net [2009-02-16 10:00:10 -0800]:


I have comcast as my ISP, and while according to comcast I should be
able to use 


smtp.comcast.net:25 as my smtp host, whenever I try to send email, I get an 
error saying that it is an invalid smtp host.


Comcast is my provider, but port 25 does not work here.  I have to use
port 587.  I am using Mutt in conjunction with msmtp.


Same here.  


Sometime last year Comcast claimed that my machine was the source of
some spamming (it was not) and they blocked any mail I tried to send.
They required me to switch to a different port in order to re-enable
outgoing email.

Apparently port 25 is a frequent target for hack attacks, so Comcast is
shutting it down as a security measure.



Re: experiences with offlineimap

2009-02-16 Thread Nicolas Sebrecht

On Mon, Feb 16, 2009 at 11:34:31AM -0600, Kevin Beranek wrote:

 I know this is a little off topic, but I have the impression that there
 are a number of people on this list that use offlineimap and this seemed
 like the best forum for my question.

offlineimap has its own mailing list.

   It randomly crashes or hangs all the time, about
 once per day on average, but that figure is a little misleading because
 some days it crashes 5-10 times/day and other times it runs fine for 1+
 week without crashing.

 Has anybody had similar experiences with offlineimap or am I the only
 lucky one?

I use offlineimap here and had some similar crashes (not that much
however). The last version from the repository works fine here but I'm
not using the deamon mode.

-- 
Nicolas Sebrecht



Re: experiences with offlineimap

2009-02-16 Thread Kevin Beranek
On Mon, Feb 16, 2009 at 08:40:42PM +0100, Nicolas Sebrecht wrote:

 offlineimap has its own mailing list.

I'm supposedly subscribed to it but I never get any of the messages so I
figured I probably couldn't send any emails to it.

 I use offlineimap here and had some similar crashes (not that much
 however). The last version from the repository works fine here but I'm
 not using the deamon mode.

Thanks for the response.  The problems have become less frequent with
successive versions; maybe I'll just have to follow the repo more
closely for a while.


-- 
Kevin Beranek
=
GPG Key: 1024D/0x5E62AB46 2009-02-13


pgp1r3Vd75uzu.pgp
Description: PGP signature


Re: How to change dynamically the From hdr?

2009-02-16 Thread Ennio-Sr
Hi Rocco!

* Rocco Rutte pd...@gmx.net [160209, 16:44]:
 Hi,

 * Ennio-Sr wrote:

 On posts going back to 2003 I red it was possible to switch identity
 while composing a message. What I understood from those posts was that
 you had to put the following lines in .muttrc:
 
 macro compose z edit-from^UIdentity_tab Select from

 alias  Identity_11st_addr...@tin.it
 alias  Identity_22nd_addr...@tin.it
 .  ..
 alias  Identity_nnth_addre...@tin.it
 
 then, pressing 'z' while editing a new mail, you would be able to change
 your 'From:' header choosing from the list of identities. However, I did
 try it with no success ;-(

 Yes, this works like a charm. What _exactly_ happens in your case? A
 guess: you put ^ and U in there instead of a Control-U character?


I just put an '^' and a 'U' as can be seen printed in my lines above.
I do not know how to put a 'Control-U charachter' in .muttrc being
edited with 'vim'. (Tried with 'C-U, which appears to be 'vim'
syntax, to no avail). Anyway ...  

 If you try to edit the from line, mutt fills it with the content already
 there. Control-U or kill-line editor function clears that line. Thus,
 the above is equivalent to:

macro compose z edit-fromkill-lineIdentity_tab Select from


I changed the macro line to read as you suggest (with 'kill-line') but
still get the same result, i.e. nothing at all happens when I press 'z'
while being in the 'compose menu' (i.e. the page pre-filled with my
chosen headers that appears on the console when - within mutt - I press
'm').
Could it be related to my using vim as the default editor to compose the
message?

 If that still doesn't work for you, please provide an error message or
 whatever mutt gives you.


Sorry, no error message is shown: just nothing happens, except bell
ringing... ;-)

-- 
[Why use Win$ozz (I say) if ... even a fool can do that.  \\?//
 Do something you aren't good at! (as Henry Miller used to say)]  (°|°)
Regards, Ennio. -- Please replace '.' for '_dot_' in my Reply-To.  )=(


Re: newbie install

2009-02-16 Thread James Freer
2009/2/16 James Freer jesseja...@googlemail.com:
 Of course, now we're getting into pedantry, and kinda off track. :)

 ~Kyle

 Yea sure. I've been trying to learn my way through this. Now that exim
 appears to be a default install and maildrop has dependencies on exim.
 I'll be installing maildrop shortly and hopefully end up with the mutt
 installation i've been aiming for.

 Thanks for your help... and being patient!

 james


Just in case you're wondering [ and grinning] how i'm getting on. Done
my .muttrc, .mailcap, .msmtprc

My gosh what a lot of work

james


Re: How to change dynamically the From hdr?

2009-02-16 Thread Ed Blackman

On Mon, Feb 16, 2009 at 10:00:53PM +0100, Ennio-Sr wrote:

* Rocco Rutte pd...@gmx.net [160209, 16:44]:

Yes, this works like a charm. What _exactly_ happens in your case? A
guess: you put ^ and U in there instead of a Control-U character?


I just put an '^' and a 'U' as can be seen printed in my lines above.
I do not know how to put a 'Control-U charachter' in .muttrc being
edited with 'vim'. (Tried with 'C-U, which appears to be 'vim'
syntax, to no avail). Anyway ...  


If you really wanted to do this, as opposed to the much cleaner syntax 
below, to insert a literal Control-U with vim in insert mode you'd press 
Control-V, then Control-U.  vim will probably display the character in a 
different color, to emphasize that it's a single Control-U character, 
not a sequence of caret, uppercase U.



If you try to edit the from line, mutt fills it with the content already
there. Control-U or kill-line editor function clears that line. Thus,
the above is equivalent to:

   macro compose z edit-fromkill-lineIdentity_tab Select from



I changed the macro line to read as you suggest (with 'kill-line') but
still get the same result, i.e. nothing at all happens when I press 'z'
while being in the 'compose menu' (i.e. the page pre-filled with my
chosen headers that appears on the console when - within mutt - I press
'm').


It works for me.  Relevant sections of my .muttrc:

alias Identity_default Ed Blackman e...@edgewood.to
alias Identity_school  Ed Blackman a...@school.edu
alias Identity_hobby   Ed Blackman a...@hobby.org

set from=Identity_default
send-hook . my_hdr From: Identity_default
send-hook ~t .*school.edu   my_hdr From: Identity_school

macro compose z edit-fromkill-lineIdentity_tab Select from

With this configuration, when I reply or compose a new message, mutt 
prompts me for the address and subject, then runs my editor.  When I 
save and exit my editor, I come back to the mutt compose menu.  (The 
send hooks are optional, and set a different default on messages to 
people at my school.)  I can then press z and choose between the three 
identities that I established.



Could it be related to my using vim as the default editor to compose the
message?


Mutt is in control at the compose menu, so your editor doesn't matter.  
FYI, I also use vim.


Ed


signature.txt
Description: Digital signature


Re: How to change dynamically the From hdr?

2009-02-16 Thread Ennio-Sr
Hi Ed!
* Ed Blackman e...@edgewood.to [160209, 17:35]:
 ent-Transfer-Encoding: quoted-printable

 It works for me.  Relevant sections of my .muttrc:

 alias Identity_default Ed Blackman e...@edgewood.to
 alias Identity_school  Ed Blackman a...@school.edu
 alias Identity_hobby   Ed Blackman a...@hobby.org

 set from=Identity_default
 send-hook .   my_hdr From: Identity_default
 send-hook ~t .*school.edu   my_hdr From: Identity_school

 macro compose z edit-fromkill-lineIdentity_tab Select from

 With this configuration, when I reply or compose a new message, mutt  
 prompts me for the address and subject, then runs my editor.  When I  
 save and exit my editor, I come back to the mutt compose menu.  (The  
 send hooks are optional, and set a different default on messages to  
 people at my school.)  I can then press z and choose between the three  
 identities that I established.

I commented all my .muttrc lines referring to 'unhook' and 'send-hook'
and adapted the lines you suggested to my addresses. Still nothing
happens when I press 'z'!
Moreover, when I compose a new message, my 'From' hdr reads:
From: Identity_default

There might be some other devil line in .muttrc which prevent correct
execution of macro ;-(
Thanks, anyway, for your help.

-- 
[Why use Win$ozz (I say) if ... even a fool can do that.  \\?//
 Do something you aren't good at! (as Henry Miller used to say)]  (°|°)
Regards, Ennio. )=(


Change From hdr

2009-02-16 Thread Daryl
My muttrc has this setting which I find very very convenient

macro compose escjb escf\Ca\CkJoe \j...@bloggs.com\\n
macro compose escjj escf\Ca\CkJoe Bloggs \joe.bl...@bloggs.com\\n
macro compose escjf escf\Ca\CkJonathon \joe.bl...@anotherisp.com\\n

What this does is before I send my mail, push [esc] button then jj and I
become Joe Bloggs joe.bl...@bloggs.com
or [esc] jf and I become Jonathon joe.bl...@anotherisp.com

Very easy

Regards
Daryl 



Re: How to change dynamically the From hdr?

2009-02-16 Thread Ed Blackman

On Tue, Feb 17, 2009 at 01:16:14AM +0100, Ennio-Sr wrote:

I commented all my .muttrc lines referring to 'unhook' and 'send-hook'
and adapted the lines you suggested to my addresses. Still nothing
happens when I press 'z'!


Are you sure you're in the compose menu when you press 'z'?  You should 
see -- Mutt: Compose in the lower left.



Moreover, when I compose a new message, my 'From' hdr reads:
From: Identity_default


Yeah, I did that deliberately to remind myself of the option.  You might 
want to change the set from= line and the send-hook lines to have 
actual addresses if you don't want that in your editor.


The compose menu is what you get *after* you've saved your message and 
exited the editor.


Ed


signature.txt
Description: Digital signature