Community Discussions and Support
Filter-rules: deleting attachment

OK, thanks! Yes, it's the same as I am doing. So good to know that in principle, it works, even though no idea what is wrong in my case. So I will delete it manually.

OK, thanks! Yes, it's the same as I am doing. So good to know that in principle, it works, even though no idea what is wrong in my case. So I will delete it manually.

I have the following problem: I get daily an e-mail from the same address, containing a pdf-file in the attachment. What I want to do with this e-mail is the following: 1) save the attached pdf to a folder on my hard-disk 2) delete the attachment in pegasus 3) move the remaining mail to a pre-defined folder in pegasus.

For this, I use filters. Steps 1 and 3 work perfectly. Unfortunately, step 2 (deleting the attachment in pegasus after it has been saved to the disk) does not work. I defined three filter-rules for new mail; this is how it looks in the WINRULES.PMC file (leaving away the other filter-rules that are not relevant here):

NoDisplay:New mail filtering rules
If attachment FullName matches "ABC*.pdf" SaveAttmt "[Folder on my hard-disk]" 1
If attachment FullName matches "ABC*.pdf" DeleteAttmt ""
If header "F" contains "[e-mail address of the sender]" Move "RYMM02NR:563F:FOL04989"

If I delete the first filter for step 1 (save to hard-disk), the attachment is deleted, but not so when filter-rule 1 exists.

I use the full german version of Pegasus 4.7 on a Windows 7 system.

PS: I am aware of the fact that attachments can be deleted only in the inbox-folder.

<p>I have the following problem: I get daily an e-mail from the same address, containing a pdf-file in the attachment. What I want to do with this e-mail is the following: 1) save the attached pdf to a folder on my hard-disk 2) delete the attachment in pegasus 3) move the remaining mail to a pre-defined folder in pegasus. For this, I use filters. Steps 1 and 3 work perfectly. Unfortunately, step 2 (deleting the attachment in pegasus after it has been saved to the disk) does not work. I defined three filter-rules for new mail; this is how it looks in the WINRULES.PMC file (leaving away the other filter-rules that are not relevant here): NoDisplay:New mail filtering rules If attachment FullName matches "ABC*.pdf" SaveAttmt "[Folder on my hard-disk]" 1 If attachment FullName matches "ABC*.pdf" DeleteAttmt "" If header "F" contains "[e-mail address of the sender]" Move "RYMM02NR:563F:FOL04989" If I delete the first filter for step 1 (save to hard-disk), the attachment is deleted, but not so when filter-rule 1 exists. I use the full german version of Pegasus 4.7 on a Windows 7 system.</p><p>PS: I am aware of the fact that attachments can be deleted only in the inbox-folder. </p>

I'm not shure about what happens there, but it reads like Pegasus is still working on the first rule while second rule is tried to be executed.

If you have this rules in a block in your ruleset, try to move some of the other rules between first an second rule. Don't know if that would be a workaround.

bye    Olaf

<p>I'm not shure about what happens there, but it reads like Pegasus is still working on the first rule while second rule is tried to be executed.</p><p>If you have this rules in a block in your ruleset, try to move some of the other rules between first an second rule. Don't know if that would be a workaround. </p><p>bye    Olaf </p>

Right, it seems as if pegasus doesn't go to the relevant rule. I tried what you proposed, still with no result. Even tried to move the rule for deleting the attachment to "closing inbox" rules, still without result. Any idea what to do?

Right, it seems as if pegasus doesn't go to the relevant rule. I tried what you proposed, still with no result. Even tried to move the rule for deleting the attachment to "closing inbox" rules, still without result. Any idea what to do?

FWIW, I just ran a test using an attachment file named 1234_turbo.pdf and the attachment was both saved and deleted.  From my winrules.pmc...

NoDisplay:New mail filtering rules
If attachment FullName matches "*turb*.pdf" SaveAttmt "C:\\Temp\\testmail" 1
If attachment FullName matches "*turb*.pdf" DeleteAttmt ""

I don't see any difference from what you have done so don't have a clue why yours is not working.   At least we know the logic works.

<p>FWIW, I just ran a test using an attachment file named 1234_turbo.pdf and the attachment was both saved and deleted.  From my winrules.pmc...</p><p>NoDisplay:New mail filtering rules If attachment FullName matches "*turb*.pdf" SaveAttmt "C:\\Temp\\testmail" 1 If attachment FullName matches "*turb*.pdf" DeleteAttmt ""</p><p>I don't see any difference from what you have done so don't have a clue why yours is not working.   At least we know the logic works. </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