@karmaniverous/jeeves-scripts-core
    Preparing search index...

    Function resolveImapPassword

    • Resolve an imap.password secretRef to the password itself, read from its file with trailing newlines removed.

      Parameters

      • password: ImapPassword

        The account's imap.password.

      • Optionaldir: string

        Secrets directory. Default: paths().imapSecretsDir.

      Returns string

      When the file is missing, unreadable or empty. The message names the ref and the path, never the value.