I am trying to automate sending certain messages, using a script to call Mutt 1.5.16 (on Linux). It is working fine, except that despite there being a folder-hook that should (and as far as I can tell from the maillog does) get invoked setting among other things $record, no copy of the outgoing message is saved there, or apparently anywhere else for that matter. This is fairly important in my case. The actual script is included below; the objective is to simply read data from stdin and send it as a MIME attachment to the recipient. Could someone please look at it, and see if perhaps I am missing something about Fcc's in this case? Neither the Mutt manual nor Google was of much help in this case (if I am just missing it, please provide at least a key word to look for), and searching the mailing list archives did not work for some reason. #!/bin/bash FILENAME="`mktemp -q -p /tmp`" [ -f "${FILENAME}" ] || exit cat - > "${FILENAME}" mutt -a "${FILENAME}" -f "=mailbox_setting_record" -R -s "subject" -- "recipient@address" Any pointers would be much appreciated. -- Michael Kjörling .. michael@xxxxxxxxxxx .. 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 *
Attachment:
pgpXSb8WLMtM2.pgp
Description: PGP signature