What is the problem you are having with rclone?
File paths containing + or , will fail a rclone copy command when issued to the WebDAV facility of a Stalwart mail server.
The server advertises the files as fully URL-encoded, i.e. href response fields to a ls contain + encoded as %2B and , as %2C.
rclone nevertheless tries to propfind without URL encoding those two characters (I haven't checked with other characters). This doesn't please Stalwart which then issues a 404.
Stalwart is behaving differently from other WebDAV servers and I would prefer if they could align although, technically, it seems that there should be no guarantee that + and , will be served in the same way as their URL-encoded counterparts since they are reserved as sub-delims in the RFC.
Either way I am going to see if I can rewrite in nginx but it would be nice if we could configure which characters get URL-encoded in the request, unless I am missing an existing rclone option?
Run the command 'rclone version' and share the full output of the command.
rclone v1.60.1-DEV
- os/version: debian 13.7 (64 bit)
- os/kernel: 6.12.111+deb13-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.2
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone copy "WebDAV Stalwart":"<REDACTED>TEST CHAR +.pdf" /tmp
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
debian's packaged rclone doesn't implement the rclone config redacted command. Still:
[WebDAV Stalwart]
type = webdav
url = <REDACTED>
vendor = other
user = <REDACTED>
pass = <REDACTED>
A log from the command that you were trying to run with the -vv flag
rclone propfind includes the raw +:
rclone copy "WebDAV Stalwart":"<REDACTED>TEST CHAR +.pdf" /tmp -vv --dump headers
2026/10/10 14:33:08 DEBUG : rclone: Version "v1.60.1-DEV" starting with parameters ["rclone" "copy" "WebDAV Stalwart:<REDACTED>TEST CHAR +.pdf" "/tmp" "-vv" "--dump" "headers"]
2026/10/10 14:33:08 DEBUG : Creating backend with remote "WebDAV Stalwart:<REDACTED>TEST CHAR +.pdf"
2026/10/10 14:33:08 DEBUG : Using config file from "<REDACTED>"
2026/10/10 14:33:08 DEBUG : found headers:
2026/10/10 14:33:08 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2026/10/10 14:33:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2026/10/10 14:33:08 DEBUG : HTTP REQUEST (req 0xc000748140)
2026/10/10 14:33:08 DEBUG : PROPFIND /dav/file/<REDACTED>TEST%20CHAR%20+.pdf HTTP/1.1
Host: <REDACTED>
User-Agent: rclone/
Authorization: XXXX
Depth: 1
Referer: <REDACTED>/dav/file/
Accept-Encoding: gzip
2026/10/10 14:33:08 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2026/10/10 14:33:08 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2026/10/10 14:33:08 DEBUG : HTTP RESPONSE (req 0xc000748140)
2026/10/10 14:33:08 DEBUG : HTTP/1.1 404 Not Found
Access-Control-Allow-Headers: Authorization, Content-Type, Accept, X-Requested-With
Access-Control-Allow-Methods: POST, GET, PATCH, PUT, DELETE, HEAD, OPTIONS
Access-Control-Allow-Origin: *
Connection: keep-alive
Date: Sat, 10 Oct 2026 12:33:08 GMT
Server: nginx
Content-Length: 0
Stalwart's listing includes the full URL-encoded +:
rclone ls "WebDAV Stalwart":"<REDACTED>/" --max-depth 1 -vv --dump bodies
[...]
<D:href>/dav/file/<REDACTED>TEST%20CHAR%20%2B.pdf</D:href>
[...]
Stalwart can't handle the files without the URL-encode:
curl -u <REDACTED>:<REDACTED> -I "<REDACTED>/dav/file/<REDACTED>TEST%20CHAR%20+.pdf"
HTTP/1.1 404 Not Found
curl -u <REDACTED>:<REDACTED> -I "<REDACTED>/dav/file/<REDACTED>TEST%20CHAR%20%2B.pdf"
HTTP/1.1 200 OK