Door seal help needed

Can someone tell me how to terminate the door seal on the pillar side?
Thank you