cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1294
Views
0
Helpful
2
Replies

Config iron port to Strip http

rohitreddy99
Level 1
Level 1

Hello,

This is Rohit, I am trying to figure out a solution to strip the http/https part from URL. Following is the example,

URL Strip! if rcpt-to != "test@xxx.com" {

        if true    {

                           edit-body-text("(?i)(?:https?|ftp)://+", "[stripped]://");

                }   

            } 

Here the http/https part is striped for all the users except test@xxx.com. Its working fine.

Now I want to implement the same for a Group. I created a group "GROUP_Test" and added test@xxx.com.

URL_Strip_Filter! if rcpt-to-group != "Group_Test" {

                      if true {

                          edit-body-text("(?i)(?:https?|ftp)://+", "[stripped]://");

                      }

                  }

When i test this filter, its not working. It even strips the http/https part for the user who are in the group. I am trying to find a solution for this.

Any help is really appreciated.

Thanks,

Rohit

2 Replies 2

Andreas Mueller
Level 4
Level 4

Hello Rohit,

just wondering, do you probably still have a filter in place that does the same without checking for the group condition?

Regards,

Andreas

Hello Andreas,

Thanks for the reply.

I had disabled the filter wiithout the group. The only avtive filter is the one with group condition.

Thanks,

Rohit