Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon Support > Rule with MACRO

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon Support  /

Rule with MACRO

[Deus, Javier Meilán]
Javier Meilán …
Newbie
Newbie
Posts: 44
Javier Meilán Deus - 03:13am, Aug 16 2022

Hi,
Can someone give me a hand with a rule of mail.

I have a rule that executes a program that receives two arguments

$SUBJECT$
$SENDER$

F:\Mdaemon\CFilter\Attachments\retos\Ficheros vbs\PBD.exe $SUBJECT$ $SENDER$

The rule is working, because in the log I can see how the exe is executed.

The problem is in the $SBJECT$, if it contains spaces, it doesn't pass it to me as a single text string. This causes the exe to detect multiple arguments and not execute correctly.

Any way for the $SUBJECT$ macro to pass all the text as a single string?

  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Arron Caruth - Aug 16, 2022 7:22 am (#1 Total: 2)  

Guest User  

Photo of Author
Posts: 1
The $SUBJECT$ macro expands to the value of the subject.  If there are spaces in the subject then there will be spaces in the value the $SUBJECT$ macro expands into.  
 
Have you tried putting quotes around the $SUBJECT$ macro?
 

--
Arron Caruth
VP of Product Development
o: 817-601-3222    e: Arron.Caruth@mdaemon.com

MDaemon Technologies
Simple Secure Email

Visit us on www.mdaemon.com | Facebook | LinkedIn | YouTube
Sent using the MDaemon Email Server
 
On Tue, 16 Aug 2022 03:13:03 -0500, "lists-md-support@mdaemon.com (Javier Meilán Deus)" <lists-md-support@mdaemon.com> wrote:
Hi,
Can someone give me a hand with a rule of mail.

I have a rule that executes a program that receives two arguments

$SUBJECT$
$SENDER$

F:\Mdaemon\CFilter\Attachments\retos\Ficheros vbs\PBD.exe $SUBJECT$ $SENDER$

The rule is working, because in the log I can see how the exe is executed.

The problem is in the $SBJECT$, if it contains spaces, it doesn't pass it to me as a single text string. This causes the exe to detect multiple arguments and not execute correctly.

Any way for the $SUBJECT$ macro to pass all the text as a single string?


View/reply at Rule with MACRO
--MD-SUPPORT--------------------------------------------------------------
This list is for questions and discussion about MDAEMON. To unsubscribe 
from this mailing list send an email to md-support-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!-----------------------------------------------------

--------------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user 
support and discussion.  MDaemon staff members may participate in the 
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical 
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
--------------------------------------------------------------------------

--MD-SUPPORT--------------------------------------------------------------
This list is for questions and discussion about MDAEMON. To unsubscribe 
from this mailing list send an email to md-support-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!-----------------------------------------------------

--------------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user 
support and discussion.  MDaemon staff members may participate in the 
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical 
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
--------------------------------------------------------------------------

Javier Meilán Deus - Aug 23, 2022 1:44 am (#2 Total: 2)  

 

Photo of Author
Javier Meilán …
Newbie
Newbie
Posts: 44
Yes but, not work.

but I think there must be something in the script that I send to execute, I am reviewing the process. If I find any error I will report it.

thx,
JM



  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.