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}inboxYou can also get j to send automatic blind copies of outgoing messages:
bcc = peter@armedbear.orgTo read mail, use the openMailbox command. For IMAP, mailbox URLs should look like this:
{user@host}folderFor example:
{peter@annie}inbox {peter@annie}/var/spool/mail/peter {peter@annie}mail/jFor POP, mailbox URLs should look like this:
pop://user@hostFor example:
pop://peter@annie pop://pgraves@vipmail.comOnce 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 = 80You can use the command attachFile to attach one or more files to your outgoing message.
popKeepMessagesOnServer = falseIf 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 = trueThe popKeepMessagesOnServer and popExpungeDeletedMessagesOnServer properties only apply to POP mailboxes.