Redirectors.pm vs DecodeShortURLs.pm
"Kent Oyer" <[email protected]> Wed, 20 May 2026 18:41:04 +0000
| Newsgroups | gmane.mail.spam.spamassassin.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_978_530938037.1779302464 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Is the ultimate goal to replace the DecodeShortURLs plugin with the Redir= ectors plugin? It seems like Redirectors was forked from DecodeShortURLs = in 2024 and new features have been added to Redirectors but not much has = changed in DecodeShortURLs. =0AThe problem I'm seeing is that Redirectors= runs at priority -15 and DecodeShortURLs runs at priority -10. So a chai= n like:=0AREDIRECTOR -> SHORTENER -> target=0Agets fully traversed, but a= chain like:=0ASHORTENER -> REDIRECTOR -> target=0Adoes not. The only fea= ture I can find in DecodeShortURLs that's not in Redirectors is url_short= ener_custom_user_agent. That would be trivial to add and then we could ju= st have one plugin, one cache, shared loop/maxchain counters, and one set= of eval rules.=0ACurrently we have an overlapping set of rules:=0Aeval:s= hort_url=0Aeval:short_url_redir=0Aeval:short_url_200=0Aeval:short_url_404= =0Aeval:short_url_code=0Aeval:short_url_chained=0Aeval:short_url_maxchain= =0Aeval:short_url_loop=0Aeval:short_url_tests <-- deprecated=0Aeval:red= ir_url=0Aeval:redir_url_valid <-- was redir_url_redir before I renamed= it=0Aeval:redir_url_404=0Aeval:redir_url_code=0Aeval:redir_url_chained= =0Aeval:redir_url_chained_domain=0Aeval:redir_url_maxchain=0Aeval:redir_u= rl_loop=0AWhat are we trying to acheive?=0AThanks=0AKent ------=_Part_978_530938037.1779302464 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <!DOCTYPE html><html><head><meta http-equiv=3D"Content-Type" content=3D"t= ext/html; charset=3Dutf-8" /></head><body><div data-crea=3D"font-wrapper"= style=3D"font-family: Tahoma, sans-serif; font-size: 16px; direction: lt= r"><div>Is the ultimate goal to replace the DecodeShortURLs plugin with t= he Redirectors plugin? It seems like Redirectors was forked from DecodeSh= ortURLs in 2024 and new features have been added to Redirectors but not m= uch has changed in DecodeShortURLs.=C2=A0</div><div><br></div><div>The pr= oblem I'm seeing is that Redirectors runs at priority -15 and DecodeShort= URLs runs at priority -10. So a chain like:</div><div><br></div><div>REDI= RECTOR -> SHORTENER -> target</div><div><br></div><div>gets fully t= raversed, but a chain like:</div><div><br></div><div>SHORTENER -> REDI= RECTOR -> target</div><div><br></div><div>does not. The only feature I= can find in DecodeShortURLs that's not in Redirectors is url_shortener_c= ustom_user_agent. That would be trivial to add and then we could just hav= e one plugin, one cache, shared loop/maxchain counters, and one set of ev= al rules.</div><div><br></div><div>Currently we have an overlapping set o= f rules:</div><div><br></div><div>eval:short_url<br>eval:short_url_redir<= br>eval:short_url_200<br>eval:short_url_404<br>eval:short_url_code<br>eva= l:short_url_chained<br>eval:short_url_maxchain<br>eval:short_url_loop<br>= eval:short_url_tests=C2=A0 =C2=A0<-- deprecated</div><div><br></div><d= iv>eval:redir_url<br>eval:redir_url_valid=C2=A0 =C2=A0 <-- was redir_u= rl_redir before I renamed it<br>eval:redir_url_404<br>eval:redir_url_code= <br>eval:redir_url_chained<br>eval:redir_url_chained_domain<br>eval:redir= _url_maxchain<br>eval:redir_url_loop</div><div><br></div><div>What are we= trying to acheive?</div><div><br></div><div>Thanks</div><div>Kent</div><= /div></body></html> ------=_Part_978_530938037.1779302464--