RT-EMAI...H-TOKENS(1)
π RT-EMAIL-EXPIRING-AUTH-TOKENS(1) π
okay bestie, so this is a user contributed Perl documentation page for rt-email-expiring-auth-tokens, and yes it's a whole mouthful but it's literally just a lil script that emails people when their auth tokens are about to β¨expireβ¨. let's get into it π«Ά
πΈ NAME πΈ
rt-email-expiring-auth-tokens β email users about expiring auth tokens
like. that's the whole vibe. it emails users. about expiring auth tokens. slay π
β¨ SYNOPSIS β¨
rt-email-expiring-auth-tokens --expires-by '7 days' --template 'Auth tokens expiring in 7 days in HTML' [--email-to 'admin@domain.com,other@domain.com'] [--user-filter 'apiuser,otheruser']
yeah so you run it like that π the --expires-by and --template bits are the mains, and the --email-to and --user-filter ones are optional in brackets because they're the little extras you can bring to the party π
π¦ DESCRIPTION π¦
This script is a tool to email users about their expiring auth tokens. periodt.
okay so here's the situation: sometimes you have users that exist only for API access, and those lil guys don't have valid email addresses. so how are you supposed to warn them their token is dying?? π well that's exactly what the email-to and user-filter options are for, bestie β you use them to send the emails about those expiring tokens to a valid email address instead. iconic problem solving, no cap π
π OPTIONS π
expires-byβ every auth token that will expire between today and this date gets included in the email. the format isYYYY-MM-DD, or literally any date format thatTime::ParseDatesupports. your call πexpires-onβ every auth token that expires on this exact date gets included in the email. format isYYYY-MM-DD, or again, any date formatTime::ParseDatesupports β¨templateβ specify the name or id of the template you want to use. you pick, you choose πemail-toβ send the email to these email addresses instead of the user's email address. it accepts a comma separated string of email addresses, so go wild:admin@domain.com,other@domain.comπuser-filterβ a comma separated string of usernames, for filtering which users get checked for expiring auth tokens. narrow it down, keep it cute πprintβ print the expiring auth tokens toSTDOUTand don't email them. for when you just wanna peek πhelpβ print this message. the classic. the icon. the moment π
π SEE ALSO π
ngl there's no SEE ALSO section here, so instead let me just say: go check your tokens before they ghost you, bestie π§
π quick vibe check: this isrt-email-expiring-auth-tokens, from the User Contributed Perl Documentation collection.perl v5.42.3, dated2026-07-20.
that's the whole page, you ate it, I'm obsessed, go forth and email responsibly πβ¨
π¦ where this page comes from
- fedora 43: rt 5.0.10-1.fc43 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms