WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Move file after email?
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1498746603

Message started by The Ginger Monkey on Jun 29th, 2017 at 4:30pm

Title: Move file after email?
Post by The Ginger Monkey on Jun 29th, 2017 at 4:30pm
Hi,

I have numerous tasks which monitor folders for files arriving which are then emailed (combined) as attachments on to their final destination. This works well but I would like to archive these files after they have been emailed - is this possible?

I already do this with printing PDFs on another task, but that's a "move" option on the "print PDF" definition, whereas the only option I can see on the "send an email" definition is to "remove the file after sending the message".

Cheers,

TGM

Title: Re: Move file after email?
Post by Gert on Jun 30th, 2017 at 7:58am
Hi,

The way you can set this up is to create a "Run Subtasks" task - http://www.watchdirectory.net/wdhelp/plugins/wdopMultiPlugin.html

As the FIRST subtask, create a "Copy Files" task and copy (not move) the detected file to your backup location.

The SECOND subtask can email the file with the option to "delete the detected file".

I can see this would be easier if the move is implemented inside the email task, we will look into it for a future release.
Gert

Title: Re: Move file after email?
Post by The Ginger Monkey on Jun 30th, 2017 at 6:34pm
Thanks Gert

I've not used subtasks before but will give that a try - sounds like it should do the trick for now

Cheers

TGM

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.