* Gerard Robin <[email protected]> [08-23-09 12:35]: > On Sun, Aug 23, 2009 at 09:05:07AM -0400, Patrick Shanahan wrote: > > > >Then, perhaps you have failed to execute it properly? > > I put the following lines in my .muttrc: > # my_hdr From: [email protected] > ---------------------------8<-------------------------- > send-hook . my_hdr From:[email protected] > send-hook @name_of_my_box my_hdr From: us...@name_of_my_box > ---------------------------8<-------------------------- > If I send a mail to us...@name_of_my_box it work as expected > If I send a mail to [email protected] it work as expected > but my command in my crontab is: > echo "perform full charge of the battery" | /usr/bin/mutt -s "battery" > us...@name_of_my_box > When I run this command, the From of the mail is [email protected] instead of > us...@name_of_my_box > I can't figure out what I am missing ? ...
Perhaps, send-hook doesn't work on the cl?? I have little experience here as I usually use mail/nail in cron. You might try "send2-hook" instead. At least you do have a workable solution :^). > >What do you find lacking? > I do not quite understand the purpose of "send-hook . 'unmy_hdr'" > However, if I do not write the line "send-hook . my_hdr From:[email protected]" > this does not work well when I send a mail to [email protected]. Most settings similar to "send-hook" and "my_hdr" are *persistent* and unmy_hdr removes "my_hdr" conditions previously set. Your usage is not quite kosher, "send-hook . 'unmy_hdr'", ie: send-hook . would remove *all* send-hook setting previously made, clean the slate. > Finally I think I am wrong, nothing is lacking if we take the time to > follow all the links ($from, $realname in chap 4) but after following > all the links I'm still not solve the problem of the command in > crontab ? > Though it would be nice if there was a little more examples ... I can agree with the need for more examples, but with anything posessing the number of possible condiitons and their interaction with each other, mutt does a very good job. Maybe someone with more knowledge, Kile, Rocco, will join in and explain why the send-hook is not working. gud luk, -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org
