user1645012
user1645012

Reputation: 11

How can I remove emails using Perl's Mail::MboxParser?

There are mails that I want to delete from a mbox if the email got processed. How would be able to do that using the perl Mail::MboxParser library?

Upvotes: 1

Views: 399

Answers (1)

hobbs
hobbs

Reputation: 240294

Mail::MboxParser says right in its description that it gives you read-only access to an mbox file, which means it can't delete anything. You will want to use a module that can actually rewrite the mbox file, like Mail::Box or Email::Delete::Mbox.

Upvotes: 1

Related Questions