Re: [Exim] Wishlist for "stat" expansion item

Pàgina inicial
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
A: Dean Brooks
CC: exim-users@exim.org
Assumpte: Re: [Exim] Wishlist for "stat" expansion item
On Sat, 14 Dec 2002, Dean Brooks wrote:

> Hi,
>
> Here is a possible wishlist request for a "stat" expansion operator
> for Exim4.
>
> Proposed syntax would be something like:
>
>     ${stat{filename}{lookup-value}}

>
> where the lookup-value would be an enumerator for one of the stat() values.
>
> For example:
>
> ${stat{/var/mail/$local_part}{size}} --> Size of mailbox
> ${stat{/var/mail/$local_part}{uid}} --> UID of mailbox owner
> ${stat{/var/mail/$local_part}{mtime}} --> Last modify time of mailbox


Not exactly what you wanted, but try:
http://mail.tmtowtdi.de/exim/exim-4.11-stat.patch

try echo '${stat{FILENAME}}' | exim -be to see how it works, you can use
${expand} to extract the flags.

This is only tested with linux, I doubt that it will work very well on
other systems, because the size of the fields could differ.

ciao