Quote:
Originally Posted by gheorghiua
Just tested with the settings mentioned in the 3 files and it all works ok when executed after the new mail is passed to the folders. A command of c was added in the macro C which executes the saving of the attachment of the latest e-mail with subject CDR. However, there is the same complaint that 'No recipients were specified'. I guess at this point, there is no way to run a mutt command without actually interacting with the interface for acknowledgement of recieving new mail. In this situation it appears to me that somehow the command is interpreted as if an e-mail needs to be sent. Will keep digging.
Thanks again for the assistance and various tips which were of great help in understanding mail process in linux.
|
More on the testing:
I configured muttrc to toss the new messages from /var/spool/mail/alice to my home mail directory as seen below
Quote:
#From .muttrc
set mbox=+mbox #copy mail from spool here
20 set move=yes #don't ask abt moving messages, just do it
21 mailboxes \
22 $MAIL \
23 =cdrs \
24 =mbox*\
25 =postponed
|
, and even added a command that sends a message to me in my shell script
Quote:
|
echo "for cdrs" | mutt -s "cdrs" -f /home/alice/Mail/cdrs -e 'push "C"' alice@gmail.com
|
while it executes the macro.
I even created a piece of script that runs mutt macro again and scheduled it in cron to run after the failed script
Quote:
|
mutt -f /home/alice/Mail/cdrs -e 'push "C"<enter>'
|
All to no avail. But if I run the culprit macro above from the command line and press enter manually, all works perfectly.
Will continue investigating