El 09/05/2012 9:54, Paul J Stevens escribió:
On 05/09/2012 09:44 AM, Oswaldo wrote:
Hello,

I'm trying to clear the inbox for an user. To do it i execute:

#dbmail-export -u TheUserId -m INBOX -d -o /tmp/in.mbox
#dbmail-util -dpy

from dbmail-util(8)

-p::
  Purge messages with DELETE status. To purge messages currently marked
  \Deleted, run with the -pd options twice. This is not recommended; it is
  better to leave a grace period for old messages before permanently wiping
  them from the database.

So: run dbmail-util -dpy twice.


Thanks for your reply Paul,

I'm using dbmail-util -dpy twice but the messages are not deleted.


root@mail:~#  dbmail-export -u TheUserId -m INBOX -d -o /tmp/in7.mbox
Exporting [1] mailboxes for [TheUserId]
 export mailbox INBOX -> /tmp/in7.mbox

root@mail:~# ls -l /tmp/in7.mbox
-rw-r--r-- 1 root root 108392288 may  9 11:07 /tmp/in7.mbox

root@mail:~# dbmail-util -dpy

Deleting messages with DELETE status...
Ok. [0] messages deleted.

Setting DELETE status for deleted messages...
Ok. [51] messages set for deletion.
Re-calculating used quota for all users...
Ok. Used quota updated for all users.

Maintenance done. No errors found.

root@mail:~# dbmail-util -dpy

Deleting messages with DELETE status...
Ok. [51] messages deleted.

Setting DELETE status for deleted messages...
Ok. [0] messages set for deletion.
Re-calculating used quota for all users...
Ok. Used quota updated for all users.

Maintenance done. No errors found.


Then i run dbmail-export again:

root@mail:~#  dbmail-export -u TheUserId -m INBOX -d -o /tmp/in8.mbox
Exporting [1] mailboxes for [TheUserId]
 export mailbox INBOX -> /tmp/in8.mbox

root@mail:~# ls -l /tmp/in8.mbox
-rw-r--r-- 1 root root 108408394 may  9 11:13 /tmp/in8.mbox

The out file must be 0 length because the inbox messages has been deleted but continues with the same size ????





--
Oswaldo
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to