Category Archives: emacs

reading and writing mails from rmail in Emacs

Its been a long search for me to get this thing working. Not because of dearth of sample settings around, but because it took me a while to get my search terms right.


;; settings for reading mails
(setq rmail-pop-password-required t)
(setq rmail-primary-inbox-list (quote ("pop://user@domain.com")))
(setq user-mail-address "your email address")
;; (setq rmail-preserve-inbox t)
;; (setq rmail-movemail-flags nil)
;; (setq rmail-movemail-program "/usr/lib/emacs/22.1/i486-linux-gnu/movemail")
;; (setq rmail-pop-password "guess my password")

;; settings to handle attachments in rmail
(defun metamail-message ()
(interactive)
(metamail-buffer (get-buffer-create "*Metamail output*")))

;; settings for sending mails
(setq send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
smptmail-starttls-credentials '(("smtp.server" 25 nil nil))
smtpmail-auth-credentials
'(("smtp.server" 25 "email address" nil))
;; (expand-file-name "~/.authinfo")
;; must learn to properly setup ~/.authinfo soon
smtpmail-default-smtp-server "smtp.vsnl.net"
smtpmail-smtp-server "smtp.vsnl.net"
;; smtpmail-smtp-service 25 ;; defaults to 25
smtpmail-debug-info t)
(require 'smtpmail)

hm, still, I seem to be missing something or the other in the ~/.authinfo entries. Every entry that I saw on the Internet, I tried that out. I should be missing on some format of the entry to be made, I suppose.

Next, gotta see how to setup IMAP with RMAIL.

Then there is gnus to be conquered. But that will wait for a while. Gotta get other things straight here.

Since a few seniors such as RMS intend to use RMAIL and don’t intend to change to any other mail reader, gotta see what is in RMAIL. But a very simple mail reader, RMAIL is.

Emacs (and Vi) automatically make scripts executable

http://www.debian-administration.org/articles/571 shows the how to. I have installed shebang.el. This entry here is to help me find it easier when I’m actually looking for it.

Interestingly, the same post explains how to achieve this with Vi as well. So, I’d better keep a reference to that post here.

An Emacs vulnerabitily..

http://www.ubuntu.com/usn/usn-541-1

Only a few days now I was discussing about enable-local-variables with one of the regulars at #emacs on freenode. He advised me not to enable local variables all the time, warning it might lead to vulnerabilities. Now someone has discovered such a vulnerability. Looks like this vulnerability is only Ubuntu specific.

Learning curves

http://bc.tech.coop/blog/060302.html shows the learning curves of a few common editors. I love this! Learning never ends with Emacs. An amusing post as well.

Emacs as a regex IDE

This blog shows a regex tool to make Emacs an IDE of sorts for regular expressions.

regex-tool.el

An Emacs dot-file

I think I’m getting obssessed with this Emacs. But it is not a harmful one. At least it hasn’t harmed me so far. So, here’s a .emacs file. I will pick bits from this file that I like.

An Emacs intro for new comers

New to Emacs and are intrigued by its weird looking keybindings? Intrigued enough to learn Emacs bu put off by its basic C-h t tutorial? Perhaps take a look at the below mentioned page. It can be used as a first step to scale the tallest mountain that is Emacs.

http://research.iiit.ac.in/~masatran/emacs/ is an introduction for those Windows using PC users who get scared by looking at C-a or M-x and need someone to tell them that C-a is actually Control-a and M-x is Meta-x which is Alt-x on a PC.