I tried to create a customized version of sendemail.py and named it "sendemail2.py" As I know normally we should be able to override a search command by a copy of commands.conf in $SPLUNK_HOME/etc/system/local/commands.conf or $SPLUNK_HOME/etc/system/local/commands.conf.
However, I've tried both locations still see Splunk looking for sendemail.py in default location $SPLUNK_HOME/etc/apps/search/bin/sendemail.py
Is there any workable way to create own version of sendemail without changing the original copy?
[sendemail] filename = sendemail2.py streaming = false run_in_preview = false passauth = true required_fields = changes_colorder = false supports_rawargs = true