php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

Delete attachment files

Open egmen opened this issue 12 years ago • 5 comments

Please, add a function to delete the attachment files after fetching the mail.

egmen avatar Jun 11 '14 10:06 egmen

why for ? you can leave $attachmentsDir = '' and you'll get no attachments at all after parsing mailbox.

stanma avatar Apr 04 '15 19:04 stanma

I think @stanma is right :)

barbushin avatar Apr 05 '15 01:04 barbushin

I want get attachments files. But I should manually delete them after using. My temp folder will have no space if I don't do this. I want php-imap has it own garbage collector. If it creates attachments files itself, it should delete them before destroying or fetching next mail.

egmen avatar Apr 05 '15 08:04 egmen

Sorry, no way. php-imap is not mail management library, it's just about receiving incomings.

barbushin avatar Apr 05 '15 09:04 barbushin

Even just adding a method to delete downloaded attachment files would be an improvement. But I agree with @egmen php-imap downloaded these files itself, why should I clean them up?

daniel-adlantic avatar Jul 18 '16 11:07 daniel-adlantic