【问题标题】:Adding several attachments to thunderbird (from command line)向 Thunderbird 添加多个附件(从命令行)
【发布时间】:2015-01-08 09:17:37
【问题描述】:

我尝试通过命令行创建带有多个附件的新消息,但这不起作用:

thunderbird -compose "attachment='/etc/mtab',attachment='/etc/fstab'"

仅附加第一个文件。第二个不见了。

上面的命令行有什么问题?

PS:我先尝试了 xdg-email,但失败了。见How to open the user's preferred mail application on Linux?

【问题讨论】:

    标签: user-interface command-line thunderbird xdgutils


    【解决方案1】:

    命令必须指定为

    thunderbird -compose "attachment='/etc/mtab,/etc/fstab'"
    

    我在windows下试过了。

    【讨论】:

    • 我在linux下试过了,也可以。但请注意,附件必须使用其绝对路径写入。
    【解决方案2】:

    另一种附加多个文件的方法:

    thunderbird.exe -compose to="info@gmail.com" ,subject="SubjectText" ,body="bodytext" ,attachment='D:\File.txt,D:\File2.txt'
    

    【讨论】:

    • 这与该网站上已接受一年多的答案相同?
    • 谢谢。此答案有助于了解如何设置 To 和 Subject 字段。
    猜你喜欢
    • 1970-01-01
    • 2020-08-25
    • 1970-01-01
    • 2011-07-01
    • 2022-07-14
    • 1970-01-01
    • 2019-05-05
    • 2011-08-25
    相关资源
    最近更新 更多