Author |
|
goofybnu Newbie
Joined: 15 July 2013 Location: Brazil
Online Status: Offline Posts: 3
|
Posted: 30 June 2014 at 10:40am | IP Logged
|
|
|
I'm try to create a copy of message when user click on not spam button, but i need to test if the destination folder exist before i copy the message.
I need this for training spam filter, the message will be copied to specific folder than i run an shell_exec command after copy.
I have added and if on the function MessageMove on file 'libraries/afterlogic/common/managers/mail/manager.php':
if(strtolower($sFromFolderFullNameRaw)=='spam' AND strtolower($sToFolderFullNameRaw)=='inbox'){
// trainning command will be here
}
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 01 July 2014 at 1:55am | IP Logged
|
|
|
IMAP doesn't offer direct ways of checking whether the folder exists. Instead, you need to retrieve list of folders and look up required folder there. Mail manager offers Folders method which returns list of folders for specific account.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|