attach_file is idempotent by filename, but a re-run still called it for an attachment already on file — a wasted copy every time. Skip the call outright once the dup check finds it, instead of calling it and only using the dup flag to decide whether to count it as new.
9.9 KiB
9.9 KiB