Skip to main content

UAPI Email store filter duplicates folder destination

Comments

4 comments

  • cPanelLauren
    I'm not able to replicate this when the data is entered in correctly. Here is what I did: uapi --user=myuser Email store_filter filtername=somename account=lauren%40mydomain.tld action1=save dest1=%2Fhome%2Fmyuser%2Fmail%2Fmydomaint.tld%2Flauren%2F part1=\$header_subject: match1=contains val1=anything
    This resulted in the following filter being added: #somename if $header_subject: contains "anything" then save "$home/mail/mydomain.tld/lauren/" 660 endif
    I noticed in your example you're entering some paths in incorrectly. For example the dest1 path should be /home/$user/mail/domain.tld/emailuser/
    not /home/mail/domain.tld/emailuser/
    also, note that I only URI encoded values which were encoded in the example.
    0
  • dleigh
    Thanks for your reply and insight. Changing my destination to match your example worked.:) What I HAD done was to simply URL encode what's in the filter file for the "save" destination. This does NOT contain the user id but I had not understood $home properly as something that is expanded to "home/$user". Having such an example in the help would be REALLY nice for those of us who don't play in the Linux shell all the time. (not really sure where to leave such feedback). Anyway thanks again for the help!
    0
  • cPanelLauren
    This is the right place for it! I'll make sure the team that does the documentation on this is aware. I do know they are attempting to make changes and revamp that documentation with the end-user and the developer in mind so it helps both types of users
    0
  • dleigh
    Great. Thanks!
    0

Please sign in to leave a comment.