On 09/12/2012 02:26 AM, Simon wrote: > I might be asking the question in the wrong way.. but is there any > way to force pop users to delete messages from the server? e.g. no > mater what they have as "keep a copy message on server" dbmail still > deletes it?
DBMail doesn't support such a BOFH feature. If you need it you will have to patch the source so dbmail/pop3 will queue all messages retrieved for deletion. Of course, Christian's suggestion to use quota also will work. -- ________________________________________________________________ Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin * Premium Hosting Services and Web Application Consultancy * www.nfg.nl/i...@nfg.nl/+31.85.877.99.97 ________________________________________________________________
diff --git a/pop3.c b/pop3.c index ddbc1e8..5eac7d6 100644 --- a/pop3.c +++ b/pop3.c @@ -507,7 +507,7 @@ int pop3(clientinfo_t *ci, char *buffer, PopSession_t * session) while (tmpelement != NULL) { msg = (struct message *) tmpelement->data; if (msg->messageid == strtoull(value, NULL, 10) && msg->virtual_messagestatus < MESSAGE_STATUS_DELETE) { /* message is not deleted */ - msg->virtual_messagestatus = MESSAGE_STATUS_SEEN; + msg->virtual_messagestatus = MESSAGE_STATUS_DELETE; ci_write((FILE *) stream, "+OK %llu octets\r\n", msg->msize); return db_send_message_lines((void *) stream, msg->realmessageid, -2, 0); }
_______________________________________________ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail