This is something that might be useful:
command! mail thunderbird -compose "attachment='file:///%f:p'"
I'd remove all the quotes, this way there should be no issues with escaping (Vifm does it right outside of quotes and putting quotes around might affect it negatively):
command! mail thunderbird -compose attachment=file:///%f:p