Osamu Aoki <os...@debian.org> wrote:
> "CC" == Charles Cazabon <charl...@pyropus.ca> writes:
> > 
> > In short: no, you can never safely trim them.  You can remove them only if
> > you never want to retrieve mail from the corresponding POP/IMAP account or
> > folder again.  The files are absolutely tiny by any modern standard, so
> > there will never, ever be a need to "trim" them.
> 
> Is this question on mbox file?

Perhaps this was the original confusion.  To clarify a few points, in case the
OP wants to know:

1. oldmail files are NOT mbox files or any other type of email file.  They do
not contain email messages.  They only contain internal state used by getmail
to remember whether messages in the mailbox being retrieved from have been
previously seen and when.

2. do not try to edit oldmail files.  There is no possible benefit, and you
*will* cause errors ranging from getmail re-retrieving all your old mail to
getmail failing to be able to retrieve from your POP/IMAP account at all.

3. getmail doesn't care what happens to mail *after* it has successfully
delivered it according to your getmailrc file(s).  You can remove all the
messages you want from your destination maildirs or mbox files with affecting
getmail, but with mbox files make sure you follow the proper locking rules and
ensure you leave it in a valid state or you can cause getmail to error out.

> But is this something FAQ deals.  On desktop user system, it's non-issue.  If
> it is server, it's a common sense.

Exactly.

Charles
-- 
------------------------------------------------------------------
Charles Cazabon                              <charl...@pyropus.ca>
Software, consulting, and services available at http://pyropus.ca/
------------------------------------------------------------------

Reply via email to