---
name: "CiderWebmail::Util"
section: "3pm"
platform: "linux"
package: "ciderwebmail"
version: "1.05+20240702-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CiderWebmail::Util"
---

# CiderWebmail::Util(3pm)

## FUNCTIONS

### add\_foldertree\_uris($c, {folders =\> $folder\_tree, path =\> 'folder/path', uris =\> \[{action =\> 'view', uri =\> 'view\_folder'}, ...\]})

Adds some URIs to a folder tree.

### add\_foldertree\_icons($c, {folders =\> $folder\_tree})

Adds some icons to a folder tree.

### uri\_mask\_folder\_path($path)

Mask all slashes in folder path for use in URIs.

### add\_foldertree\_to\_stash($c)

Gets a folder tree and folders hash from the model, adds 'view' uris and puts them on the stash.

### send\_foldertree\_update($c)

Common function to reply to a request with a new folder tree. Used in AJAX commands.

### filter\_unusable\_addresses(@addresses)

Filters a list of addresses (string or Email::Address::XS) to get rid of stuff like 'undisclosed-recipients:'

### message\_group\_name

formats a date/subject/address for message-grouping for examples it removes (re:\|fwd:) from subjects

### encrypt({ string =\> $string })

encrypt a string

### decrypt({ string =\> $string })

decrypt a string

### get\_key()

gets the server-side encryption key if no key exists one will be created
