Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Text.DecodeIMAPFolderName

Decodes text from IMAP UTF-7.

Component Version macOS Windows Linux Server iOS SDK
Text 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.DecodeIMAPFolderName"; Text )   More

Parameters

Parameter Description Example
Text The text in IMAP's modified UTF-7 encoding. "Test&AOk-"

Result

Returns OK or error.

Description

Decodes text from IMAP UTF-7.
Use this for IMAP folder names to decode the name and show to user.

See RFC 2060:
http://www.faqs.org/rfcs/rfc2060.html

You may do a directory listing for IMAP, then decode the names for display, but keep the original encoded names to later do a query for folder content.

Examples

Decode Entwürfe:

MBS( "Text.DecodeIMAPFolder"; "Entw&APw-rfe" )

Example result: "Entwürfe"

Decode Testé&

MBS( "Text.DecodeIMAPFolder"; "Test&AOk-&-" )

Example result: "Testé&"

Decode path with chinese characters:

MBS( "Text.DecodeIMAPFolder"; "~peter/mail/&ZeVnLIqe-/&U,BTFw-" )

Example result: "~peter/mail/日本語/台北"

Release notes

Blog Entries

This function checks for a license.

Created 18th March 2019, last changed 14th December 2021


Text.DecodeHexFromBase64 - Text.DecodeURLComponent