RT-EMAI...H-TOKENS(1)

πŸ“¦
version 5.0.10 Β· 4 versions
, in fedora 43

πŸ’Œ 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 is YYYY-MM-DD, or literally any date format that Time::ParseDate supports. your call πŸ’
  • expires-on β€” every auth token that expires on this exact date gets included in the email. format is YYYY-MM-DD, or again, any date format Time::ParseDate supports ✨
  • 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 to STDOUT and 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 is rt-email-expiring-auth-tokens, from the User Contributed Perl Documentation collection. perl v5.42.3, dated 2026-07-20.

that's the whole page, you ate it, I'm obsessed, go forth and email responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from