Skip to content

Commit

Permalink
Fix #1309
Browse files Browse the repository at this point in the history
  • Loading branch information
andreleblanc11 authored and petersilva committed Nov 29, 2024
1 parent 2b9ff66 commit 6056c95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sarracenia/flowcb/send/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ def send(self, msg):

# have a list of email destinations...
logger.debug("email: %s" % self.o.file_email_to)
ipath = os.path.normpath(msg['relPath'])
if not msg['relPath'].startswith(self.o.baseDir):
ipath = os.path.normpath(f"{self.o.baseDir}/{msg['relPath']}")
else:
ipath = os.path.normpath(f"{msg['relPath']}")

# loop over all the variables from config file, if files match, send via email
for header in self.o.file_email_to:
Expand Down

0 comments on commit 6056c95

Please sign in to comment.