[mew-int 01788] Re: fcc to current folder
Oliver Enzmann
oliver at example.com
Mon Mar 8 23:11:48 JST 2004
On 8 Mar 2004, kazu at example.com wrote:
> Attached is a patch to implement your request. Your configuration
> should be as follows:
>
> (defun my-fcc-func ()
> (setq mew-fcc (mew-tinfo-get-summary)))
> (add-hook 'mew-draft-mode-hook 'my-fcc-func)
>
> This patch is for the CVS version, though, I guess it is eary for
> you to merge it to Mew 3.
Excellent! I've merged your changes with mew-draft.el from Mew
version 3 and mew-tinfo-get-summary does provide the functionality
I was looking for. However, it seems that the headers of the draft
are already prepared when mew-draft-mode-hook is called. The first
draft being prepared in a specific folder thus has its fcc header
set incorrectly.
I am therefore using the following my-fcc-func in combination with
your patch:
(defun my-fcc-func ()
(mew-header-delete-lines (list mew-fcc:))
(mew-draft-header-insert mew-fcc: (mew-tinfo-get-summary)))
So far, this seems to work very well.
> # If you are using "case", more tips are necessary, I bet.
I'll glean at the Mew code if using "case" becomes a necessity. I
believe "case" will be needed once use Mew for News in addition to
using it for Mail. This is, however, not yet the case.
Thanks for the nice solution.
--Oliver
More information about the Mew-int
mailing list