FiltaQuilla icon indicating copy to clipboard operation
FiltaQuilla copied to clipboard

The path of the smb protocol will change automatically

Open tjcfnerd opened this issue 11 months ago • 2 comments

在消息过滤器里将执行动作的“save attachment to”设置为smb协议的路径,如“\\sample\temp”会自动变为“\sample\temp”从而导致附件没有被正确保存。希望可以修正这个bug。

In the message filter, if you set the action "save attachment to" to the path of the smb protocol, for example, \\sample\temp will automatically become \sample\temp, which will cause the attachment not to be saved correctly. I hope this bug can be fixed.

(I took the liberty of providing an English translation from google) (PS: after inserting the translation the first double backslash was also eaten by Github as it is interpreted as an escape backslash, unless marked as "code" using the syntax apostrophes)

tjcfnerd avatar Dec 24 '24 01:12 tjcfnerd

Filters are stored by the Thunderbird system (internally) in a file format that I cannot modify as Add-on author. Unfortunately unc paths / paths starting with a \\ are usually broken by the interpreter, for a detailed discussion, see #79 .

RealRaven2000 avatar Dec 24 '24 14:12 RealRaven2000

Workaround: try \\\ instead of \\ at the start.

  • the first \\ will be resolved to a single \
  • the second \ will then be added resulting in a double slash

When you edit the filter again you may loose one of the slashes, make sure it is \\\ when you save it again.

RealRaven2000 avatar Dec 24 '24 14:12 RealRaven2000