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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nico Erfurth
Date:  
À: Dean Brooks
CC: exim-users@exim.org
Sujet: 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