Re: [SLUG] Emacs mail

2003-03-04 Thread Angus Lees
At 04 Mar 2003 08:56:16 +1100, Alan L Tyree wrote:
 I would very much appreciate a copy of you .wl file.

some probably needs explanation and much of it is most likely not
useful to you.  feel free to ask.

in ~/.xemacs/init.el i have:

;; use wanderlust for default compose-mail
(autoload 'wl-user-agent-compose wl-draft nil t)
(if (boundp 'mail-user-agent)
(setq mail-user-agent 'wl-user-agent))
(if (fboundp 'define-mail-user-agent)
(define-mail-user-agent
  'wl-user-agent
  'wl-user-agent-compose
  'wl-draft-send
  'wl-draft-kill
  'mail-send-hook))

my ~/.wl is attached.  its complicated by the fact that i read both
home and work mail from the one wanderlust (two different imap
servers). thus i need to fully qualify many of the mail folder names.

unless you already use BBDB, you can probably ignore that whole
section, and some of the Debian-mail-specific bits.

 - Gus

; wanderlust setup  -*- emacs-lisp -*-

; see nice example at http://www.tamaru.kuee.kyoto-u.ac.jp/~kokada/wl/src

(setq wl-user-mail-address-list
  (list [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]))

(setq wl-subscribed-mailing-list
  '([EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]))

(setq wl-local-domain inodes.org
  wl-message-id-domain gus.inodes.org) ; random unique string

; ldap
;(setq wl-use-ldap t
  ;wl-ldap-server coke.int-server.urnet.com.au
  ;wl-ldap-base ou=People,dc=urnet,dc=com,dc=au)

(setq elmo-nntp-default-server news.gmane.org)

(setq wl-from Angus Lees [EMAIL PROTECTED])
;(setq wl-from Angus Lees [EMAIL PROTECTED])

(setq wl-draft-config-alist
  '((^\\(To\\|Cc\\): [EMAIL PROTECTED]
 (From . Angus Lees [EMAIL PROTECTED]))
(^\\(To\|Cc\\): [EMAIL PROTECTED]
 (template . debian))
(^To: [EMAIL PROTECTED]
 (Mail-Followup-To . [EMAIL PROTECTED]))
(^To: [EMAIL PROTECTED]
 (From . Angus Lees [EMAIL PROTECTED]

;; add a (pgp-sign . BOOL)
(unless (assq 'pgp-sign wl-draft-config-sub-func-alist)
  (wl-append wl-draft-config-sub-func-alist
 '((pgp-sign . mime-edit-set-sign
;; add a (pgp-encrypt . BOOL)
(unless (assq 'pgp-encrypt wl-draft-config-sub-func-alist)
  (wl-append wl-draft-config-sub-func-alist
 '((pgp-encrypt . mime-edit-set-encrypt

; add a (signature . filename)
(unless (assq 'signature wl-draft-config-sub-func-alist)
  (wl-append wl-draft-config-sub-func-alist
 '((signature . wl-draft-config-sub-signature
(defun wl-draft-config-sub-signature (content)
  (require 'signature)
  (let ((signature-insert-at-eof nil)
(signature-file-name content))
;; should remove old signature first..
(goto-char (mime-edit-content-end)) ; part-bottom
(insert-signature)))

; apply wl-draft-config-alist when draft buffer is prepared, not when sent
(remove-hook 'wl-draft-send-hook 'wl-draft-config-exec)
(add-hook 'wl-mail-setup-hook
  '(lambda ()
 (unless wl-draft-reedit
   (wl-draft-config-exec wl-draft-config-alist

(setq wl-draft-reply-buffer-style 'full)

(setq wl-draft-always-delete-myself t
  wl-insert-mail-followup-to t)

; templates :)
(setq wl-template-alist
  '((default
 (From . wl-from)
 (signature . ~/.signature))
(corporate
 (From . [EMAIL PROTECTED])
 (Organization . Ursys)
 (signature . ~/.signature))
(debian
 (From . [EMAIL PROTECTED])
 (Organization . Debian)
 (signature . ~/.signature)
 (pgp-sign . t

; silly-mail headers. heh.
(if (fboundp 'sm-add-random-header)
(add-hook 'wl-mail-setup-hook 'sm-add-random-header))

; cache sent messages in 'sendlog
(setq wl-draft-use-cache t
  wl-fcc +outbox
  wl-fcc-force-as-read t
  wl-draft-delete-myself-from-bcc-fcc t)


(setq wl-plugged t
  elmo-enable-disconnected-operation t
  elmo-plugged-condition 'elmo-plug-on-by-exclude-servers
  wl-auto-flush-queue t)

(setq wl-folder-access-subscribe-alist
  '((^% . (t .)))
  wl-folder-hierarchy-access-folders
  '(^-$ ^-alt$
^-gmane$ ^-gmane.comp$ ^-gmane.linux$))

(setq wl-summary-target-above 2000
  wl-score-folder-alist
  '((^%Mail/slug$ slug.SCORE)
(^-gmane\\. gmane.SCORE)))

(setq wl-thread-insert-opened t
  wl-summary-divide-thread-when-subject-changed t)

(setq wl-highlight-folder-by-numbers 1)
(setq wl-fldmgr-add-complete-with-current-folder-list t)

;; bind b to resend-message
(define-key wl-summary-mode-map b 'wl-summary-resend-message)

;; emulate some mailcrypt (non-mime) PGP functions
(require 'wl-pgp-nonmime)

;;{{{ BBDB

Re: [SLUG] Emacs mail

2003-03-04 Thread Alan L Tyree
On Tue, 2003-03-04 at 20:25, Angus Lees wrote:
 At 04 Mar 2003 08:56:16 +1100, Alan L Tyree wrote:
  I would very much appreciate a copy of you .wl file.
 
 some probably needs explanation and much of it is most likely not
 useful to you.  feel free to ask.

Many thanks, Gus. I'm sure that I will have some questions down the
track.

Cheers,
Alan

SNIP
-- 
--
Alan L Tyree[EMAIL PROTECTED]
http://www.law.usyd.edu.au/~alant
Tel: +61 2 4782 2670
Mobile: +61 405 084 990
Fax: +61 2 4782 7092
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Emacs mail

2003-03-03 Thread Angus Lees
At 03 Mar 2003 08:38:40 +1100, Alan L Tyree wrote:
 What do emacs users use for mail other than Rmail. I find that I am
 spending more and more time in emacs. VM? MH? any other?

Rmail sucks.  its basically emacs' mail(1).

VM is good, but uses its own format to store mail.  It was important
to me that my mail client didn't do that (since I like to be able to
change mail clients easily).  If that doesn't bother you, I recommend
you give VM a try.

GNUS is good.  I haven't used it for a long time, but I see many
people who use it.  Since its heritage is as a news reader, it deals
with mailing lists extremely well (scoring, filtering, etc).  I
believe it does IMAP, etc (it supports many backends).  Apparently it
can even view an RSS feed as a mailbox, which is quite cool.

Emacs' MH is supposed to be good if you use MH already for mail, I
don't (and never have).

Wanderlust is really good, particularly with disconnected (offline)
IMAP.  Its on a par with evolution feature-wise, except that for some
reason it can't read mbox files directly (need to bounce through an
IMAP server or use Maildir or something).  Seems to combine many of
the good bits of GNUS, with a reasonably easy to use gui interface.
The only downside (other than the mbox thing) is that its from the
Japanese Free Software Alternate Dimension and so its a little hard to
find english documentation (basic user docs are fine; advanced
customisation examples are scarce).  It took me a bit of customising
before I had it up to the standard of my previous mutt configuration,
but now I'm very happy with it.

Another Japanese Free Software Alternate Dimension product is Mew.
Wanderlust borrows many of its keybindings, etc from Mew which is why
it feels a little unfamiliar to mutt-trained fingers.  I don't know
much about it, but I don't know why you would use it when wanderlust
was available.


Otherwise, you can use mutt with your editor set to gnuclient -nw -f
post-mode or something (post-el.deb for debian users).


One of the main advantages to using emacs for mail reading (I found),
is the easy customisation and heavy integration.

For example, It was a few lines of simple elisp to have the
appropriate bug numbers become hyperlinks to the Debian BTS, or to our
company RT web pages.  I have the BBDB address book automatically
tracking names, companies, x-face images, last subject line, whether
I've seen the person on a Debian or SLUG mailing list, etc - which is
much better than a manual address book.  Adding support for the new
Face header (base64 encoded PNG) was a simple matter of
cutting-and-pasting half a page of elisp code - no recompile
necessary.


Wanderlust/XEmacs configuration files availble on request, if anyone
decides to try wanderlust, I strongly recommend they grab my ~/.wl,
rather than grope through automatically translated Japanese web pages
as I did..

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Emacs mail

2003-03-03 Thread Alan L Tyree
On Mon, 2003-03-03 at 20:26, Angus Lees wrote:

SNIP
 
 
 
 Wanderlust/XEmacs configuration files availble on request, if anyone
 decides to try wanderlust, I strongly recommend they grab my ~/.wl,
 rather than grope through automatically translated Japanese web pages
 as I did..
Thanks for all that Gus. I gave up Rmail for the reasons you mentioned
(it sux), but I spend most of my time in emacs so miss the convenience
of getting mail directly.

I would very much appreciate a copy of you .wl file.

Cheers,
Alan

 
 -- 
  - Gus
 
-- 
--
Alan L Tyree[EMAIL PROTECTED]
http://www.law.usyd.edu.au/~alant
Tel: +61 2 4782 2670
Mobile: +61 405 084 990
Fax: +61 2 4782 7092
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] Emacs mail

2003-03-02 Thread Alan L Tyree
What do emacs users use for mail other than Rmail. I find that I am
spending more and more time in emacs. VM? MH? any other?

Or is there good reason not to use emacs for mail? 

Thanks
Alan
-- 
--
Alan L Tyree[EMAIL PROTECTED]
http://www.law.usyd.edu.au/~alant
Tel: +61 2 4782 2670
Mobile: +61 405 084 990
Fax: +61 2 4782 7092
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Emacs mail

2003-03-02 Thread Ben Leslie
On Mon, 03 Mar 2003, Alan L Tyree wrote:

 What do emacs users use for mail other than Rmail. I find that I am
 spending more and more time in emacs. VM? MH? any other?

Mutt.
 
 Or is there good reason not to use emacs for mail? 

None, other than all the emacs email clients I've tried sucked :)

Benno

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Emacs mail

2003-03-02 Thread Peter Chubb
 Ben == Ben Leslie [EMAIL PROTECTED] writes:

Ben On Mon, 03 Mar 2003, Alan L Tyree wrote:
 What do emacs users use for mail other than Rmail. I find that I am
 spending more and more time in emacs. VM? MH? any other?

Ben Mutt.

I use VM.  It works very well for small mailboxes; but it slows down a lot
when your mailbox gets above a few megabytes.

So I use procmail to split mailing lists into separate mailboxes
before I see them; and a cron job to save mailboxes and bzip them once
a month.

Peter C
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Emacs mail

2003-03-02 Thread Anthony Wood
On Mon, 2003-03-03 at 11:22, Peter Chubb wrote:
  Ben == Ben Leslie [EMAIL PROTECTED] writes:
 
 Ben On Mon, 03 Mar 2003, Alan L Tyree wrote:
  What do emacs users use for mail other than Rmail. I find that I am
  spending more and more time in emacs. VM? MH? any other?
 
 Ben Mutt.
 
 I use VM.  It works very well for small mailboxes; but it slows down a lot
 when your mailbox gets above a few megabytes.
 
 So I use procmail to split mailing lists into separate mailboxes
 before I see them; and a cron job to save mailboxes and bzip them once
 a month.

I use Mutt.  It is very fast, can launch graphical viewers for
attachments etc.

Evolution is OK, especially Vfolders, but I'm using it with IMAP,
which is very slow because I have 1500 messages in my inbox.

Gus uses Wanderlust under emacs, which he found was the only thing which
did Disconnected IMAP well.

cheers,
Woody
 
 Peter C
-- 
Anthony Wood [EMAIL PROTECTED]
Switch Online Group

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug