J provides support for IMAP, POP and SMTP. (By coincidence, it's also
possible to use the openMailbox
command to open a read-only view of a Unix mbox-style mailbox, but that's
not officially sanctioned yet.)
To set up mail, you need to add a few lines to your
preferences file:
enableExperimentalFeatures = true
enableMail = true
# Default "From" address information.
userFullName = Peter Graves
userMailAddress = peter@armedbear.org
# The SMTP server to be used for sending mail.
smtp = annie
(Your name, mail address and SMTP server may be different. On a Unix system,
setting smtp to "localhost" might work.)
inbox = {peter@annie}inbox
You can also get j to send automatic blind copies of outgoing messages:
bcc = peter@armedbear.org
To read mail, use the openMailbox
command. For IMAP, mailbox URLs should look like this:
{user@host}folder
For example:
{peter@annie}inbox
{peter@annie}/var/spool/mail/peter
{peter@annie}mail/j
For POP, mailbox URLs should look like this:
pop://user@host
For example:
pop://peter@annie
pop://pgraves@vipmail.com
Once you're in your mailbox, you can use
mailboxReadMessage, mapped by
default to Enter, to read the message at the current location of the caret.
SendMailMode.wrapCol = 80
You can use the command attachFile to
attach one or more files to your outgoing message.
popKeepMessagesOnServer = false
If you prefer, you can configure j to keep messages on the server when they
are first retrieved, but delete them on the server when you have deleted and
expunged them locally. To do so, add these two lines to your
preferences file:
popKeepMessagesOnServer = true
popExpungeDeletedMessagesOnServer = true
The
popKeepMessagesOnServer
and popExpungeDeletedMessagesOnServer
properties only apply to POP mailboxes.