Community Discussions and Support
Queue files in use

Try running the program from a policy and select "This task modifies the raw data of the job it examines":

In some cases, you may wish to allow the external task to modify the actual data in the mail message it examines (for instance, you may want it to add a header to the message). Checking this control tells Mercury to copy the temporary file it creates containing the message's data back into the queue job when policy processing is complete. It is your responsibility to ensure that the policy does not corrupt or damage the message data in this case, and to ensure that the message data remains in legal RFC2822 format. Checking this control will slightly increase the time it takes to process policies on your system. 

Another way to do it would be by using a daemon, but the policy approach is probably easier.

 

<p>Try running the program from a policy and select "This task modifies the raw data of the job it examines":</p><blockquote><p><i><span style="font-size: 10pt;">In some cases, you may wish to allow the external task to modify the actual data in the mail message it examines (for instance, you may want it to add a header to the message). Checking this control tells Mercury to copy the temporary file it creates containing the message's data back into the queue job when policy processing is complete. It is your responsibility to ensure that the policy does not corrupt or damage the message data in this case, and to ensure that the message data remains in legal RFC2822 format. Checking this control will slightly increase the time it takes to process policies on your system.</span><span style="font-size: 10pt;"> </span></i></p></blockquote><p>Another way to do it would be by using a daemon, but the policy approach is probably easier.</p><p> </p>

Hello,

I use Mercury mail and I receive messages from a very old gaming server, they come in like this and get added to 'C:\xampp\MercuryMail\QUEUE':
 
--- 
Return-path: <ccc@xxx.com>
Received: from KAOS (xx.xx.xx.xx) by CD SMTP (Mercury/32 v4.62) ID MG00000F;
   19 Sep 2014 18:28:38 -0700

from: ccc@xxx.com
to: nnn@xxx.ca
subject: Password for account 'XXXXX'
You are receiving this message because you have requested that your password be emailed to you.

The password for your account, XXXXX, is: BBBBB
---



Removed sensitive data obviously... As you can see the data is a bit of a mixup. When I get the actual message, it uses all of this for the body because of bad formatting:
 
--- 
from: ccc@xxx.com
to: nnn@xxx.ca
subject: Password for account 'XXXXX'
You are receiving this message because you have requested that your password be emailed to you.

The password for your account, XXXXX, is: BBBBB
---

And the subject/etc is blank. This is due to a formatting issue when the message is sent to me. I have a program I created that fixes the issue. It works when I run it manually but if Mercury attempts to run it as a filter (aka RUN PROGRAM in global rules) it ends up claiming the queue file is in use, so I cannot modify it.

What can be done in this case? I don't mind other solutions to get this working. The gaming server that sends the mails however cannot be modified as I don't have direct access to it and cannot modify it. This used to work before I believe on an older Mercury system but does not anymore.


Is there a way to get this going? Is it possible to make a new queue file (I can do this part) and ignore/delete the other one after use correctly?
&lt;div&gt;Hello,&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;I use Mercury mail and I receive messages from a very old gaming server, they come in like this and get added to &#039;C:\xampp\MercuryMail\QUEUE&#039;:&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;---&amp;nbsp;&lt;/div&gt;&lt;div&gt;Return-path: &amp;lt;ccc@xxx.com&amp;gt;&lt;/div&gt;&lt;div&gt;Received: from KAOS (xx.xx.xx.xx) by CD SMTP (Mercury/32 v4.62) ID MG00000F;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;19 Sep 2014 18:28:38 -0700&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;from: ccc@xxx.com&lt;/div&gt;&lt;div&gt;to: nnn@xxx.ca&lt;/div&gt;&lt;div&gt;subject: Password for account &#039;XXXXX&#039;&lt;/div&gt;&lt;div&gt;You are receiving this message because you have requested that your password be emailed to you.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;The password for your account, XXXXX, is: BBBBB&lt;/div&gt;&lt;div&gt;---&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Removed sensitive data obviously... As you can see the data is a bit of a mixup. When I get the actual message, it uses all of this for the body because of bad formatting:&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;---&amp;nbsp;&lt;/div&gt;&lt;div&gt;from: ccc@xxx.com&lt;/div&gt;&lt;div&gt;to: nnn@xxx.ca&lt;/div&gt;&lt;div&gt;subject: Password for account &#039;XXXXX&#039;&lt;/div&gt;&lt;div&gt;You are receiving this message because you have requested that your password be emailed to you.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;The password for your account, XXXXX, is: BBBBB&lt;/div&gt;&lt;div&gt;---&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;And the subject/etc is blank. This is due to a formatting issue when the message is sent to me. I have a program I created that fixes the issue. It works when I run it manually but if Mercury attempts to run it as a filter (aka RUN PROGRAM in global rules) it ends up claiming the queue file is in use, so I cannot modify it.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;What can be done in this case? I don&#039;t mind other solutions to get this working. The gaming server that sends the mails however cannot be modified as I don&#039;t have direct access to it and cannot modify it. This used to work before I believe on an older Mercury system but does not anymore.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Is there a way to get this going? Is it possible to make a new queue file (I can do this part) and ignore/delete the other one after use correctly?&lt;/div&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft