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

Re: Copying a reply message to its original message's folder



Raphael Kubo da Costa wrote:

> Hi there,
> 
> I have been wondering whether it is possible to automatically copy a reply
> I have written to the original message's folder, so that I can keep all
> messages in a thread in the same folder.
> 
> Has anyone done that? Should it be a wl-summary-reply-hook or a wl-draft-
> reply-hook?
> 
> Thanks!

Hi,

After playing around a little bit more, I ended up going with the following 
snippet:

(defun add-draft-parent-folder-to-fcc ()
  (save-excursion
    (when wl-draft-parent-folder
      (wl-draft-fcc)
      (insert wl-draft-parent-folder))))

(add-hook 'wl-draft-forward-hook 'add-draft-parent-folder-to-fcc)
(add-hook 'wl-draft-reply-hook 'add-draft-parent-folder-to-fcc)

It works fine, however my answers are only shown in Summary view if I 
manually sync it (by pressing the 's' key) or re-enter it. Is there a way to 
make this sync automatic too?

Thanks.