Svag matchende rim for envelope detection