Rene Merz wrote:

>>Using "Empty Mail Trash" from the PowerMail menu doesn't delete that
>>folder from the Trash?
>
>Maybe it does. I will try if there is no other solution, but I've a 1-
>month-schedule of automatic delete of the trash.

So your folder will be deleted one month after you moved it to the trash.
If you want to delete a folder immediately without emptying the mail
trash, you can do it via AppleScript:

tell application "PowerMail"
        set folderList to current containers
        repeat with f in folderList
                set folderName to name of f
                if (ID of f is ID of in tray) or (ID of f is ID of out tray) or 
(ID of
f is ID of mail trash) or (ID of f is ID of spam container) then
                        display dialog "The folder \"" & folderName & "\" can't 
be deleted."
buttons {"OK"} default button "OK"
                else
                        set nbMsg to number of messages of f
                        set nbSubFolders to number of message containers of f
                        set alertText to "Do you want to delete the folder \"" 
& folderName &
"\" IMMEDIATELY? It contains " & nbMsg & " message(s)"
                        if nbSubFolders > 0 then set alertText to alertText & " 
and " &
nbSubFolders & " subfolder(s)"
                        set alertText to alertText & "." & return & "There is 
NO UNDO for this
operation!"
                        set answer to display dialog alertText buttons {"No", 
"Delete"}
default button "No"
                        if button returned of answer is "Delete" then
                                delete f
                        end if
                end if
        end repeat
end tell



Jérôme - PowerMail Engineering


---------------------------------------------------------------------
   "J'utilise PowerMail depuis pas mal de temps et le passage a Mac OS X
    c'est juste fait en changeant l'application par celle compatible Mac
    OS X. Tout est tres simple, puissant et rapide. Quand a l'impossibilité
    d'envoi de mail en HTML c'est pas plus mal."
  PowerMail user comment on www.macgeneration.com


         Download a demo version from www.ctmdev.com
---------------------------------------------------------------------



Reply via email to