Variable: imap-shell-program

imap-shell-program is a customizable variable defined in imap.el.gz.

Value

("ssh %s imapd" "ssh %g ssh %s imapd")

Documentation

A list of strings, containing commands for IMAP connection.

Within a string, %s is replaced with the server address, %p with port number on server, %g with imap-shell-host, and %l with imap-default-user. The program should read IMAP commands from stdin and write IMAP response to stdout. Each entry in the list is tried until a successful connection is made.

This variable was added, or its default value changed, in Emacs 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/net/imap.el.gz
(defcustom imap-shell-program '("ssh %s imapd"
                                "ssh %g ssh %s imapd")
  "A list of strings, containing commands for IMAP connection.
Within a string, %s is replaced with the server address, %p with port
number on server, %g with `imap-shell-host', and %l with
`imap-default-user'.  The program should read IMAP commands from stdin
and write IMAP response to stdout.  Each entry in the list is tried
until a successful connection is made."
  :type '(repeat string)
  :version "29.1")