Download Developing software with GNU

Transcript
32
Developing software with GNU
When you start Rmail, it moves any new mail from your mailboxes to the le `~/RMAIL'
in your home directory. So, the rst thing you need to tell Rmail is where your mailboxes
are. To do that, add the following to your `.emacs':
(require 'rmail)
(setq rmail-primary-inbox-list
(list "mailbox1" "mailbox2" ...))
If your mailboxes are on a lesystem that is mounted to your computer, then you just have
to list the corresponding lenames. If your mailbox is on a remote computer, then you have
to use the POP protocol to download it to your own computer. In order for this to work,
the remote computer must support POP. Many hobbyist developers receive their email on
an internet provider computer that is connected to the network 24/7 and download it on
their personal computer whenever they dial up.
For example, if [email protected] is your email address at your internet provider,
and they support POP, you would have to add the following to your `.emacs':
(require 'rmail)
(setq rmail-primary-inbox-list
(list "po:karl"))
(setenv "MAILHOST" "whitehouse.gov")
(setq rmail-pop-password-required t)
(setq user-mail-address "[email protected]")
(setq user-full-name "President Karl Marx")
The string `"po:username "' is used to tell the POP daemon which mailbox you want to
download. The environment variable MAILHOST tells Emacs which machine to connect to,
to talk with a POP daemon. We also tell Emacs to prompt in the minibuer to request the
password for logging in with the POP daemon. The alternative is to hardcode the password
into the `.emacs' le, but doing so is not a very good idea: if the security of your home
computer is compromised, the cracker also gets your password for another system. Emacs
will remember the password however, after the rst time you enter it, so you won't have
to enter it again later, during the same Emacs session. Finally, we tell Emacs our internet
provider's email address and our \real name" in the internet provider's account. This way,
when you send email from your home computer, Emacs will spoof it to make it look like it
was sent from the internet provider's computer.
In addition to telling Rmail where to nd your email, you may also want to add the
following conguration options:
1. Quote messages that you respond to with the > prex:
(setq mail-yank-prefix ">")
2. Send yourself a blind copy of every message
(setq mail-self-blind t)
3. Alternatively, archive all your outgoing messages to a separate le:
(setq mail-archive-file-name "/home/username /mail/sent-mail")
4. To have Rmail insert your signature in every message that you send:
(setq mail-signature t)
and add the actual contents of your signature to `.signature' at your home directory.