CiderW...::Util(3pm)
π¦ CiderW...::Util π¦
okay bestie, welcome to CiderW...::Util β the 3pm manual, aka User Contributed Perl Documentation, and honestly? it's giving utility drawer energy in the best way. it's a grab bag of helper functions for folder trees, URIs, message grouping, and encryption. let's get into it π
β¨ FUNCTIONS β¨
π add_foldertree_uris
add_foldertree_uris($c, {folders => $folder_tree, path => 'folder/path', uris => [{action => 'view', uri => 'view_folder'}, ...]})
Adds some URIs to a folder tree. that's it, that's the whole vibe. you hand it the folders, a path, and a little list of action/uri pairs, and it just... slots them in. iconic. β¨
πΈ add_foldertree_icons
add_foldertree_icons($c, {folders => $folder_tree})
Adds some icons to a folder tree. folders deserve cute little icons too, fr fr. π
π uri_mask_folder_path
uri_mask_folder_path($path)
Mask all slashes in folder path for use in URIs. slashes are NOT invited to the URI party, so this function escorts them out. lowkey essential. π
π¦ add_foldertree_to_stash
add_foldertree_to_stash($c)
Gets a folder tree and folders hash from the model, adds 'view' uris and puts them on the stash. so it does a lil three-step: grab from the model, sprinkle in the 'view' uris, drop it on the stash. main character behavior honestly. π
β send_foldertree_update
send_foldertree_update($c)
Common function to reply to a request with a new folder tree. Used in AJAX commands. it's the shared reply-girl for AJAX commands β one function, everyone calls it. no cap. π₯
π§ filter_unusable_addresses
filter_unusable_addresses(@addresses)
Filters a list of addresses (string or Email::Address::XS) to get rid of stuff like 'undisclosed-recipients:' yes, it takes both plain strings and Email::Address::XS objects, and it yeets the junk. you're welcome. π
π message_group_name
message_group_name
formats a date/subject/address for message-grouping β for examples, it removes (re:|fwd:) from subjects. so like, no more Re: Re: Re: chaos in your grouping. we love a clean subject line. π
π encrypt
encrypt({ string => $string })
encrypt a string. secrets stay secret. πβ¨
π decrypt
decrypt({ string => $string })
decrypt a string. and then secrets get un-secreted again, as a treat. π«Ά
π₯ get_key
get_key()
gets the server-side encryption key β and if no key exists, one will be created. so it's never gonna leave you hanging, bestie. ππ
ngl, that's the whole page β every function, every signature, every detail, all accounted for. nothing skipped, nothing invented. periodt. π
and that's a wrap! this page is from perl v5.40.1, dated 2025-03-02, and it lives under CiderW...::Util(3pm) in the User Contributed Perl Documentation. mwah π take care of her! π¦πΈβ¨
π¦ where this page comes from
- debian trixie: ciderwebmail 1.05+20240702-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: ciderwebmail 1.05+20240702-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms