This is different to the old bug. Prior to the recent change to xdg-email, simple scan "send by email" was working fine.
I think that the problem is because xdg-email assembles command line arguments such as -attach to form a mailto: URL and passes that to run_thunderbird, which recently got changed to drop the attachment field from the mailto: url (I think on the assumption that the mailto: url could only come from a browser click).
The proper fix would probably be to break any command line mailto: URL down into component parts and drop any "attach" argument before reassembling as today, and reinstate the code removed in the recent change.
In the above simple-scan bug report I added a patch which just reinstated the original code but only if the caller is not Chrome/Chromium as those are the only browsers in question in my environment (Firefox appears to call Thunderbird directly).
This is different to the old bug. Prior to the recent change to xdg-email, simple scan "send by email" was working fine.
I think that the problem is because xdg-email assembles command line arguments such as -attach to form a mailto: URL and passes that to run_thunderbird, which recently got changed to drop the attachment field from the mailto: url (I think on the assumption that the mailto: url could only come from a browser click).
The proper fix would probably be to break any command line mailto: URL down into component parts and drop any "attach" argument before reassembling as today, and reinstate the code removed in the recent change.
In the above simple-scan bug report I added a patch which just reinstated the original code but only if the caller is not Chrome/Chromium as those are the only browsers in question in my environment (Firefox appears to call Thunderbird directly).