modify subject for email

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Remlle
Posts: 11
Joined: 16 Apr 2013, 19:52

modify subject for email

Post by Remlle »

I would like to modify the subject when the script sends an email saying its done. I would like to add something to the nature of "at the lake" or "at home" is this possible? the reason is I run this from 3 locations and need to know which location has downloaded and extracted the video files. Im using utorrent and filebot. everything works great just want that

Im using the below script.
"C:\Program Files\FileBot\filebot.exe" -script fn:amc --output c:\videos\ --log-file c:\videos\torrents\amc.log -non-strict --action move --def ignore=XXX --def gmail=Exxxxx:"xxxx" --def mailto=xxxx--conflict override --def clean=y --def music=y artwork=y "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"
User avatar
bonelifer
Power User
Posts: 81
Joined: 23 Mar 2013, 18:27

Re: modify subject for email

Post by bonelifer »

I don't see any commandline stuff, but you could run a local copy of AMC from each location and edit the local copy.

Either change the subject like so:
From

Code: Select all

subject: "[FileBot] ${emailTitle}",
To:

Code: Select all

subject: "[FileBot] ${emailTitle} - at the lake",
or you could put it in the body like so:

Find:

Code: Select all

p("FileBot finished processing ${emailTitle} (${renameLog.size()} files).");
On New line after, ADD:

Code: Select all

p("Location: at the lake");
-script C:\scripts\amc.groovy instead of -script fn:amc

Get the script from: http://filebot.net/scripts/amc.groovy

Click the RAW button, then copy and paste that into a file called amc.groovy
Post Reply