如何解决如何使用 C shell 在 mutt 命令中附加 csv
以下是我在不附加 csv 文件的情况下尝试使用 html body 的代码。它工作正常
#!/bin/csh
mutt -e "set content_type=text/html" -s "status report on" rama@abc.com < mail1.html
以下是我在尝试附加 csv 文件时尝试的代码。但它无法正常工作并出现如下所示的错误。
#!/bin/csh
mutt -e "set content_type=text/html" -s "status report on" -a "sum.csv" rama@abc.com < mail1.html
Can't stat rama@abc.com: No such file or directory
rama@abc.com: unable to attach file.
我可以知道上面的代码出了什么问题吗??
解决方法
如果您希望收件人在附件之后,则必须添加 --
作为分隔符。
查看 mutt 的手册页:
-a file [...]
Attach a file to your message using MIME.
When attaching single or multiple files,separating filenames and recipient
addresses with "--" is mandatory,e.g. mutt -a image.jpg -- addr1
or mutt -a img.jpg *.png -- addr1 addr2. The -a option
must be placed at the end of command line options.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。