#### 3.5.2.5 Changing Mailbox/Directory ¶

Mail command: cd [dir] ¶
Mail command: chdir [dir] ¶
Mail command: ch [dir] ¶

  Change to the specified directory. If dir is omitted, `$HOME` is assumed.

Mail command: file [mailbox] ¶
Mail command: fi [mailbox] ¶
Mail command: folder [mailbox] ¶
Mail command: fold [mailbox] ¶

  When used without argument, prints the information about the current mailbox: the mailbox file name (or URL), total number of messages and the number of unread messages, e.g.:

      ? fold
      "/var/spool/mail/gray": 23 messages 22 unread

  Otherwise, closes the current mailbox and opens the mailbox named by the mailbox argument. When closing the current mailbox, its messages are processed according to their state (see mail message states).

  The mailbox argument can be the name of the existing file, a mailbox URL (see Mailbox), or any of the following shortcuts:

  %

    The system mailbox for the invoking user.

  %user

    The system mailbox for user.

  #

    The previous file.

  &

    The user’s personal mailbox.

  @

    Secondary mailbox, given using the `-f` command line option.

  +file

    The named file in the folder directory. See folder variable.