[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wanderlust beginner part 2



Hi Simon -

At Tue, 20 Apr 2010 15:35:40 +0100,
Simon Brown wrote:
> […]
>
> Secondly is it possible to represent IMAP folders as a hierachy? I
> have folders for archiving things on the IMAP server (%/) which I'd
> like to be able to open and close as and when I want to see the
> contents. Like what happens with the threading code. At the moment I'm
> just getting a flat list.

See here:

  http://permalink.gmane.org/gmane.mail.wanderlust.general.japanese/6546

> Thirdly, is there an easy way to add signatures. The methods I've
> found so far are ridiculously complicated.

Lots of ways, unfortunately. Depends on the style of signature you
want. Here is my solution, which automatically adds a signature in a
separate text/plain part of a message at the end. This displays nicely
in WL & Thunderbird, at least; not so well in Outlook, where it is
hidden as an attachment.

  ;; [sig]
  (setq signature-separator "")
  (setq signature-insert-at-eof t)
  
  (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-file-name content))
      (goto-char (mime-edit-content-end))
      (mime-edit-insert-signature)))

  (setq wl-draft-config-alist
        `(((string-match "example.org" wl-draft-parent-folder)
           [...]
           (signature . ,(expand-file-name "~/.signature"))
           )))

best,
Erik

Attachment: pgpRr6X1xyxxC.pgp
Description: PGP signature