Rules for attachments in mail

Hi,

There is a rule configured on the server: Attachment Name contains .com -> Don't accept message

But the user does not receive the file because it contains .com in the name. For example the file is called road.compass.pdf

How to fix this problem?

Thanks

In your case the rule will have to be @LowerCase(@RighBack(filename,".")) ='com' to identify offending file ending in .com or an equivalent expression depending upon the context to identify files that end with .com rather than contains .com

In case your context is global mail rules in config document then the only options are contains, is , is not etc.

However, there seems to be a very primitive method to handle your use case. You may consider modifying the rule to :

any attachment name contains .com AND any attachment name does not contain .pdf AND ....(all other allowed options)

etc. This is a primitive work around to fool the system but may solve your pressing issue. (please see screen shot)

A rule like ends with might be good idea to cater to a neater option.

Hi,

Your simple method works. But the system can accept from 20 to 50 attachment formats. And it is not very correct to specify each format.

Is there any other way to fix the problem?

Thanks

Im afraid there is none. Actually the rule should have catered for something like "ends with" or "file extension" . There is an enhancement request for the same at

https://domino-ideas.hcltechsw.com/ideas/IDEA-I-435.

If it were not the mail router one could have found a programmetic workaround but unfortunately thats not the case. This being a core system issue, HCL will need to address this one. Regards

An enhancement request already exists for this :

https://domino-ideas.hcltechsw.com/ideas/IDEA-I-435

You can vote for this enhancement.

Hello @Moises Romero Barraneche

The rule is working properly as it matches the condition specified as the attachment name contains .com

Hence, if the file name contains .com, that message will also be blocked on the server end as per the rule configured.

Please ask the end user to rename the file name so that it does not contain the file name ".com" or any other blocked type of attachment that is included in the server mail rule

For the attachment road,compass.pdf, ask the end user to rename the file as roadcompass.pdf and then send it. The end user will receive the mail properly.

I hope this helps.

Regards,

Pramod

Hi moises

Pending the resolution of the issue at the system level (if the idea is finally implemented). You could use the workaround.

The basic issue is that you dont want to accept files that end in .xxx where as the system is capable of discerning NOT contains .xxx.

Work around one : why does the user need to name his files as yyy.xxx.zzz there should be only one dot in the end before the file extension name. Just educate your users.

Workaround 2 : modify your rule :

(Any attachment names contains .com or any attachment names contains .exe or ... all other offending types) AND (any attahment names does not contain... all use cases for allowed types)..

Im not sure how long this checking criteria is allowed to be. You may try to play around with this idea in the interim.

Hi,

Thanks for your help and workarounds.
We will try to work with the second option for now.
But of course, we are very much looking forward to fixing the problem at the system level

Have a nice day