[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with draft/sent folders
- To: wl-en@ml.gentei.org
- Subject: Re: Problems with draft/sent folders
- From: Karl Fogelmark <karlfogel@gmail.com>
- Date: Fri, 29 Jun 2012 18:16:30 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:subject:in-reply-to:references:user-agent :mime-version:content-type; bh=uS6kCqrN8w6e6nmq2Lq2sXBFDVR39hTxgjLBZmy19NM=; b=kfLWsDctcjd8dnJ2JkFVUctwrg/Gjxapos0cZmtHsxbGLssuoTIEU+5EyCm+dAiVvz 5AXkReglljIeY6iUHlLB3/VvAcub9TjJngKcwyni5S3UkwUly9/FdoSPMMpQY+/xAoUV jZJF7n9k6MB/62VdF9vDvSL7f9d0eH62/BuTJC9fs1T+OZlhTho1ihicBf44Hxy8tLYi kQ9ulAe77XFz8K82xUQgQWlf2UVfzYjcQ62ye05FO1SKbYIwu23FakCDego/lc7qckBr X+P5ZO9VnuDS1Q0FcYkEFnmBAH6FMeD5wc6BhIYMIy0A5jdIW1eNpHl2nET8CkeSnQx/ lOQw==
- In-reply-to: <20120627190117.B9BC54B803A__1758.38143700293$1340823777$gmane$org@msa106.auone-net.jp>
- List-help: <mailto:wl-en-ctl@ml.gentei.org?body=help>
- List-id: wl-en.ml.gentei.org
- List-owner: <mailto:wl-en-admin@ml.gentei.org>
- List-post: <mailto:wl-en@ml.gentei.org>
- List-software: fml [fml 4.0 STABLE (20040215/4.0.4_BETA)]
- List-unsubscribe: <mailto:wl-en-ctl@ml.gentei.org?body=unsubscribe>
- References: <87ehpbbg67.wl%f@mazzo.li> <SNT108-W27602A45703B9728B95EC5EAE70@phx.gbl> <20120627190117.B9BC54B803A__1758.38143700293$1340823777$gmane$org@msa106.auone-net.jp>
- Reply-to: wl-en@ml.gentei.org
- User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO)
> > > Try below code. When writing a draft from Folder buffer by "w",
> > > wl-draft-parent-folder is not set.
> (snip)
> > I tried the code above but everything is as previously described when
> > doing "w" (or M-x wl-folder-write) in Folder-buffer, i.e. it starts a
> > new draft from my non-gmail account, but "Fcc" isn't in the header and
> > sending it won't produce a copy in my "Sent" folder.
> >
> > When in this "wl-folder-write" started draft I did an Eval:
> > wl-draft-parent-folder and it returns:
> > #("GMAIL" 0 5 (wl-folder-entity-id 1 wl-folder-is-group is-group))
> >
> > Which I suspect might not be correct?
>
> I expect you run wl-folder-write from the top position of the folder
> group. In that case, wl-draft-parent-folder is set to the name of
> the group.
Yes, I was in the "Desktop" folder. I tested this some, and I'm
starting to understand some of the stuff. "#("GMAIL" 0 5..." is
returned since the cursor/point was on that folder (but not in it)
when I did "w".
So the code below:
> If you want to apply a template in such condition, try adding below
> code, or modify your wl-draft-config-alist's value directly.
>
> (add-to-list
> 'wl-draft-config-alist
> '((string= "GMAIL" wl-draft-parent-folder)
> (template . "gmail")))
>
...kind of does what I wanted, but only if the marker is on exactly
the GMAIL folder when doing "w". If I have it anywhere else in the top
hierarchy ("Desktop") it defaults to the faulty(/non-Fcc-working)
template.
My folder structure:
Desktop
GMAIL works if marker is here when doing "w"
THEP (work) but not here...
draft ...or here
NEWS ...or here.
This is a minor thing, and I recently started reading "Structure and
interpretation of computer programs" so it could be left as "an
exercise for the reader".
Tried switching "GMAIL" part in the code for "Desktop" and then it
only works for that line, obviously, so then I should add-to-list
wl-draft-config-alist one for GMAIL, one NEWS, etc.
Thanks again for the help.