[英]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. 如果处理了电子邮件,有些邮件我想从mbox删除。 How would be able to do that using the perl Mail::MboxParser library?
使用perl Mail :: MboxParser库将如何做到这一点?
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. Mail :: MboxParser在其说明中说的很对,它使您可以只读访问mbox文件,这意味着它无法删除任何内容。 You will want to use a module that can actually rewrite the mbox file, like Mail::Box or Email::Delete::Mbox .
您将要使用一个实际上可以重写mbox文件的模块,例如Mail :: Box或Email :: Delete :: Mbox 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.