Community Discussions and Support
Global Rule: Modify message AND move to another user

Uhhhmmm, no I don't use pegasus mail client. I set up my server for family members that live in other states and well, for instance, trying to convince my mom to change to another email client wouldn't turn out pretty *heh*. Another approach I'm looking into is writing my own daemon to modify the message and redirect it. I'm still looking at that trying to figure out how to "run the spam.dat" file first (to get my identifying headers) before i send it to the spam account. I need to look into those POPfile and POPfileD daemons you suggested. I'm still researching, let me know if you have any ideas, Thanx - Gary

Uhhhmmm, no I don't use pegasus mail client. I set up my server for family members that live in other states and well, for instance, trying to convince my mom to change to another email client wouldn't turn out pretty *heh*. Another approach I'm looking into is writing my own daemon to modify the message and redirect it. I'm still looking at that trying to figure out how to "run the spam.dat" file first (to get my identifying headers) before i send it to the spam account. I need to look into those POPfile and POPfileD daemons you suggested. I'm still researching, let me know if you have any ideas, Thanx - Gary

I have tried:

 Label Check For Deletion 
 ExpressionNOT X-UC-Weight [[]#???] 1??? Goto Check For Spam
 Always Insert text fragment DELETE.txt
 Always Goto Rules End
 Label Check For Spam
 ExpressionNOT X-UC-Weight [[]#???] * Goto Rules End
 Always Insert text fragment SPAM.txt
 Label Rules End

And I have tried:

 Label Check For Deletion 
 ExpressionNOT X-UC-Weight [[]#???] 1??? Goto Check For Spam
 Always Move to another user spam
 Always Goto Rules End
 Label Check For Spam
 ExpressionNOT X-UC-Weight [[]#???] * Goto Rules End
 Always Move to another user spam
 Label Rules End
 
But i cannot combine the two rules to add the text fragment AND move to spam account with the modifications made, the text fragment disappears from the message when it arrives in the spam user's email account. Please let me know how to modify the original email (like the text fragment or even modify the subject or something else so SPAM or DELETE shows up "in your face") when the email gets received in the spam account. Any advice would be helpful, thanks in advance.
Gary 
<p><span style="font-size: 13.3333330154419px;">I have tried:</span></p><div><div style="font-size: 13.3333330154419px;"> Label<span class="Apple-tab-span" style="white-space: pre;"> </span>Check For Deletion </div><div style="font-size: 13.3333330154419px;"><span style="font-size: 10pt;"> ExpressionNOT</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">X-UC-Weight [[]#???] 1???</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Goto Check For Spam</span></div><div style="font-size: 13.3333330154419px;"><span style="font-size: 10pt;"> Always</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span>Insert text fragment<span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span>DELETE.txt</div><div style="font-size: 13.3333330154419px;"><span style="font-size: 10pt;"> Always</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Goto Rules End</span></div><div style="font-size: 13.3333330154419px;"><span style="font-size: 10pt;"> Label</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Check For Spam</span></div><div style="font-size: 13.3333330154419px;"><span style="font-size: 10pt;"> ExpressionNOT</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">X-UC-Weight [[]#???] *</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Goto Rules End</span></div><div style="font-size: 13.3333330154419px;"><span style="font-size: 13.3333330154419px;"> Always</span><span class="Apple-tab-span" style="font-size: 13.3333330154419px; white-space: pre;"> </span>Insert text fragment<span class="Apple-tab-span" style="font-size: 13.3333330154419px; white-space: pre;"> </span>SPAM.txt</div><div style="font-size: 13.3333330154419px;"><span style="font-size: 10pt;"> Label</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Rules End</span></div></div><div><span style="font-size: 10pt;"> </span></div><div><span style="font-size: 10pt;">And I have tried:</span></div><div> </div><div><span style="font-size: 10pt;"> Label</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Check For Deletion </span></div><div><span style="font-size: 10pt;"> ExpressionNOT</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">X-UC-Weight [[]#???] 1???</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Goto Check For Spam</span></div><div><span style="font-size: 10pt;"> Always</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Move to another user</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">spam</span></div><div><span style="font-size: 10pt;"> Always</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Goto Rules End</span></div><div><span style="font-size: 10pt;"> Label</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Check For Spam</span></div><div><span style="font-size: 10pt;"> ExpressionNOT</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">X-UC-Weight [[]#???] *</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Goto Rules End</span></div><div><span style="font-size: 13.3333330154419px;"> Always</span><span class="Apple-tab-span" style="font-size: 13.3333330154419px; white-space: pre;"> </span><span style="font-size: 13.3333330154419px;">Move to another user</span><span class="Apple-tab-span" style="font-size: 13.3333330154419px; white-space: pre;"> </span><span style="font-size: 13.3333330154419px;">spam</span></div><div><span style="font-size: 10pt;"> Label</span><span class="Apple-tab-span" style="font-size: 10pt; white-space: pre;"> </span><span style="font-size: 10pt;">Rules End</span></div><div> </div><div>But i cannot combine the two rules to add the text fragment AND move to spam account with the modifications made, the text fragment disappears from the message when it arrives in the spam user's email account. Please let me know how to modify the original email (like the text fragment or even modify the subject or something else so SPAM or DELETE shows up "in your face") when the email gets received in the spam account. Any advice would be helpful, thanks in advance.</div><div>Gary </div>

I don't know that adding a text fragment will accomplish what you want because the text fragment is added to the body of the message.  The only Mercury filter option that comes to mind that will be visible in a folder list is to highlight the message.  Another option, depending on how you access the spam mailbox, could be to use a Mercury filter to add a header and then use a client filter to detect that header and do something additional like change the message color.

I am curious what the goal is.  Only suspected spam should be in the spam users mailbox so why the need for a spam flag as well?

As for rule logic, consider this:

Detect spam    Goto SPAM
.
.
.
Label SPAM
Always Highlight
Always Move
Always Exit


<p>I don't know that adding a text fragment will accomplish what you want because the text fragment is added to the body of the message.  The only Mercury filter option that comes to mind that will be visible in a folder list is to highlight the message.  Another option, depending on how you access the spam mailbox, could be to use a Mercury filter to add a header and then use a client filter to detect that header and do something additional like change the message color. </p><p>I am curious what the goal is.  Only suspected spam should be in the spam users mailbox so why the need for a spam flag as well? </p><p>As for rule logic, consider this: </p><p>Detect spam    Goto SPAM . . . Label SPAM Always Highlight Always Move Always Exit</p><p> </p>

Mainly what I'm trying to accomplish is to move any suspected spam to the spam folder as well as any mail that should be considered for deletion because of it's "weight". I wish to put a text or change the message so it pops out in front of you when you see it for a couple reasons. One, so that I can watch the conditions and "tweak" the spam file before I actually commit to deleting them automatically, just in case so I don't miss-id and lose a message until I'm satisfied with the spam filter weights, and, two; so i can see which (easily) emails have been flagged as spam or delete (again before i commit the action) to ensure I have my weights correct, as well as, in mail live, when you check your "quickviews" there is not easily recognizable indication as to what account it's in as well as how the spam filter interpeted the message. e.g. all spam and deletes go to spam email box, but i want a quick and easy way to id whether spam filter thought it was just spam, or intends on deleting it all together. I am looking into the dameon development kit for maybe some ideas, but i'm not sure how to create a dameon to check the message/email "after" it has passed through the spam filter so i can look at the 'X-CC-Weight' header to determine it's fate.

confused yet? I am... *heh*

Gary 

<p>Mainly what I'm trying to accomplish is to move any suspected spam to the spam folder as well as any mail that should be considered for deletion because of it's "weight". I wish to put a text or change the message so it pops out in front of you when you see it for a couple reasons. One, so that I can watch the conditions and "tweak" the spam file before I actually commit to deleting them automatically, just in case so I don't miss-id and lose a message until I'm satisfied with the spam filter weights, and, two; so i can see which (easily) emails have been flagged as spam or delete (again before i commit the action) to ensure I have my weights correct, as well as, in mail live, when you check your "quickviews" there is not easily recognizable indication as to what account it's in as well as how the spam filter interpeted the message. e.g. all spam and deletes go to spam email box, but i want a quick and easy way to id whether spam filter thought it was just spam, or intends on deleting it all together. I am looking into the dameon development kit for maybe some ideas, but i'm not sure how to create a dameon to check the message/email "after" it has passed through the spam filter so i can look at the 'X-CC-Weight' header to determine it's fate.</p><p>confused yet? I am... *heh*</p><p>Gary </p>

Ahh, I understand.  I POP messages off of domain hosted mailboxes so use POPFile with the POPFileD daemon to handle the spam detection.  I can't imagine living without it.

Are you using Pegasus Mail as your client?  If so, you could use the add header filter action in Mercury and then attach a folder-open filter set in Pegasus that assigns different colors to the messages according to the header detected.

<p>Ahh, I understand.  I POP messages off of domain hosted mailboxes so use POPFile with the POPFileD daemon to handle the spam detection.  I can't imagine living without it.</p><p>Are you using Pegasus Mail as your client?  If so, you could use the add header filter action in Mercury and then attach a folder-open filter set in Pegasus that assigns different colors to the messages according to the header detected.</p>
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