* mailpath issues
@ 2005-03-28 23:00 Nikolai Weibull
2005-03-28 23:43 ` Bart Schaefer
0 siblings, 1 reply; 5+ messages in thread
From: Nikolai Weibull @ 2005-03-28 23:00 UTC (permalink / raw)
To: zsh-users
If ~/.maildir is a maildir, won't all subdirectories to it also be
checked if i set my mailpath to include that directory? I'm looking at
the checkmailpath function and it seems it should, but it's not...Am I
missing something?
Thanks,
nikolai
--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mailpath issues
2005-03-28 23:00 mailpath issues Nikolai Weibull
@ 2005-03-28 23:43 ` Bart Schaefer
2005-03-29 0:29 ` Nikolai Weibull
0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2005-03-28 23:43 UTC (permalink / raw)
To: zsh-users
On Mar 29, 1:00am, Nikolai Weibull wrote:
} Subject: mailpath issues
}
} If ~/.maildir is a maildir, won't all subdirectories to it also be
} checked if i set my mailpath to include that directory?
It depends on whether zsh was compiled with MAILDIR_SUPPORT defined.
} I'm looking at the checkmailpath function and it seems it should, but
} it's not...Am I missing something?
Look at the mailstat() function, also in utils.c. Note that if it finds
that the directory being examined is a maildir, then it falsifies the
stat structure to behave as if the directory is actually a plain file.
In this case it won't recur into subdirectories.
There is no support for hierarchical objects that are simultaneously mail
folders and containers of other mail folders.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mailpath issues
2005-03-28 23:43 ` Bart Schaefer
@ 2005-03-29 0:29 ` Nikolai Weibull
2005-03-29 1:24 ` Bart Schaefer
0 siblings, 1 reply; 5+ messages in thread
From: Nikolai Weibull @ 2005-03-29 0:29 UTC (permalink / raw)
To: zsh-users
* Bart Schaefer (Mar 29, 2005 01:50):
> On Mar 29, 1:00am, Nikolai Weibull wrote:
> } Subject: mailpath issues
> }
> } If ~/.maildir is a maildir, won't all subdirectories to it also be
> } checked if i set my mailpath to include that directory?
> It depends on whether zsh was compiled with MAILDIR_SUPPORT defined.
Yes, that I figured.
> } I'm looking at the checkmailpath function and it seems it should, but
> } it's not...Am I missing something?
> Look at the mailstat() function, also in utils.c. Note that if it finds
> that the directory being examined is a maildir, then it falsifies the
> stat structure to behave as if the directory is actually a plain file.
> In this case it won't recur into subdirectories.
> There is no support for hierarchical objects that are simultaneously mail
> folders and containers of other mail folders.
mailpath=(~/.maildir)
for p in $mailpath; do
for subp in $p/.*(/); do
mailpath+=$subp
done
done
But that's not great,
nikolai
--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mailpath issues
2005-03-29 0:29 ` Nikolai Weibull
@ 2005-03-29 1:24 ` Bart Schaefer
2005-03-29 8:54 ` Nikolai Weibull
0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2005-03-29 1:24 UTC (permalink / raw)
To: zsh-users
On Mar 29, 2:29am, Nikolai Weibull wrote:
}
} mailpath=(~/.maildir)
} for p in $mailpath; do
} for subp in $p/.*(/); do
} mailpath+=$subp
} done
} done
mailpath=(~/.maildir ~/.maildir/**/.*(/D))
or
mailpath=( ~/.maildir/**/cur/.(/D:h:h) )
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mailpath issues
2005-03-29 1:24 ` Bart Schaefer
@ 2005-03-29 8:54 ` Nikolai Weibull
0 siblings, 0 replies; 5+ messages in thread
From: Nikolai Weibull @ 2005-03-29 8:54 UTC (permalink / raw)
To: zsh-users
* Bart Schaefer (Mar 29, 2005 10:51):
> On Mar 29, 2:29am, Nikolai Weibull wrote:
> }
> } mailpath=(~/.maildir)
> } for p in $mailpath; do
> } for subp in $p/.*(/); do
> } mailpath+=$subp
> } done
> } done
> mailpath=( ~/.maildir/**/cur/.(/D:h:h) )
Much better, thanks,
nikolai
--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-03-29 8:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-28 23:00 mailpath issues Nikolai Weibull
2005-03-28 23:43 ` Bart Schaefer
2005-03-29 0:29 ` Nikolai Weibull
2005-03-29 1:24 ` Bart Schaefer
2005-03-29 8:54 ` Nikolai Weibull
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).