Update dmsf_file.rb

The logic should consider the project’s DMSF notification flag as the first gate to determine whether a mail to be sent for document changed/deleted/uploaded.