* Josh Rodman ([EMAIL PROTECTED]) [991114 07:50]:
> * Ronny Haryanto ([EMAIL PROTECTED]) [991114 05:12]:
> > On 13-Nov-1999, Josh Rodman wrote:
> > > Thus i created ~/Mail/sent. I want two main things:
> >
> > > A) all automatically saved mail should drop into this directory
>
> However, I would ideally like to keep the behavior of
> "set save_name; unset force_name", but in a different directory.
>
> Is this possible?
With source, anything is possible.
Here is the 2 cent hack. I did this as there seemed to be no other
possible way to achieve this functionality in mutt.
Anyone think this is working into a proper diff to create a config
variable called save_name_folder or something like that?
The more general solution is of course to provide some kind of syntax or
test for conditionally using a mailbox or testing for its existence in a
pattern.
--- mutt-1.0/hook.c Mon May 31 03:44:42 1999
+++ jsr-mutt-1.0/hook.c Sun Nov 14 21:44:22 1999
@@ -320,7 +320,12 @@
{
adr = env->to ? env->to : (env->cc ? env->cc : env->bcc);
mutt_safe_path (buf, sizeof (buf), adr);
+#define JSR_HACK_DIR "sent"
+#ifdef JSR_HACK_DIR
+ snprintf (path, pathlen, "%s/%s/%s", NONULL (Maildir), JSR_HACK_DIR, buf);
+#else
snprintf (path, pathlen, "%s/%s", NONULL (Maildir), buf);
+#endif
if (!option (OPTFORCENAME) && access (path, W_OK) != 0)
strfcpy (path, NONULL (Outbox), pathlen);
}
Please let me know if I'm being an idiot, or if I should send this along
to mutt-dev, or elsewise.
-josh
--
SuSE Inc. Tel: +1-510-628-3380
580 2nd Street, #210 Fax: +1-510-628-3381
Oakland, CA 94607 Email: [EMAIL PROTECTED]
USA WWW: http://www.suse.com