On   Tuesday, September 28, 2004,   Larry Samberg   sent forth:

>I am using OS X. But I am not sure I see how this even begins to address
>the request I made.
>
>/lss
>
>-- 

I guess what is in order here is to restate / rephrase the question.  If
I understood Larry's original post correctly, he wants to manually delete
mail from the trash that IS AT LEAST 'N' DAYS OLD.  In short, he likes to
let his trash sit for a while and get really ripe and smelly, then delete
only the smelliest bits.  :-)

If that is the case, I would suggest an Applescript, as such a feature
might be considered an unnecessary refinement by others.  I'm no AS guru
but it seems to me a simple enough bit of pseudocode, with ONE wrinkle:

Repeat until end of trash {
    if (current date - date sent >= N) then      ; could also work with
date received
        delete from Trash
    end if
    }

The wrinkle, as I see it, is that the "Empty Trash" option is all
inclusive.  So you would either have to redefine what "Empty Trash" is or
move the mail to be kept to a holding folder whilst you empty the remainder.

So the above would become:

Repeat until end of trash {
    if (current date - date sent < N) then
        move to holding folder
    endif
    }
Empty trash


NOTE:  Please excuse any niggling syntax errors; I'm not an AS guru as
I've said and it's the gist that counts here.


-- 
Tim Lapin
[EMAIL PROTECTED]



Reply via email to