Nagy Ondrash | 22 Jun 03:55

POP protocol question.

Hello list,

I have a dilemma with some clients that are messing around with settings
on MS email clients. All email clients have the option to "Leave messages on 
server", which is all find and dandy, but I would like to be able to disable 
this function, preferably on the server side. It's painful to remove a few 
thousand e-mails on Manday after a long weekend.
Is it possible to accomplish this and if yes, how would I go about it?

Thank you,

~andrew.  

Nagy Ondrash | 22 Jun 04:18

Re: POP protocol question.

On Tuesday 21 June 2005 21:55, Nagy Ondrash wrote:
In short: How do I disable UIDL function on popa3d?
> Hello list,
>
> I have a dilemma with some clients that are messing around with settings
> on MS email clients. All email clients have the option to "Leave messages
> on server", which is all find and dandy, but I would like to be able to
> disable this function, preferably on the server side. It's painful to
> remove a few thousand e-mails on Manday after a long weekend.
> Is it possible to accomplish this and if yes, how would I go about it?
>
> Thank you,
>
> ~andrew.

Solar Designer | 22 Jun 18:36

Re: POP protocol question.

On Tue, Jun 21, 2005 at 10:18:37PM -0400, Nagy Ondrash wrote:
> In short: How do I disable UIDL function on popa3d?

You can do this by removing the following line from pop_trans.c:

	{"UIDL", pop_trans_uidl},

But it is not the right way to achieve your goal and it may not work.

> > I have a dilemma with some clients that are messing around with settings
> > on MS email clients. All email clients have the option to "Leave messages
> > on server", which is all find and dandy, but I would like to be able to
> > disable this function, preferably on the server side. It's painful to
> > remove a few thousand e-mails on Manday after a long weekend.
> > Is it possible to accomplish this and if yes, how would I go about it?

A quick hack would be to patch pop_trans.c: pop_trans_retr(), replacing
this line:

	if (msg->flags & MSG_DELETED) return POP_ERROR;

with:

	db_delete(msg);

That's line number 106 in popa3d 1.0.

This will cause all retrieved messages to be deleted when the client
terminates the session with a QUIT.  (On aborted or crashed sessions,
nothing will be deleted.)
(Continue reading)

damir bikmuhametov | 22 Jun 21:57

Re: POP protocol question.

I don't think you should disable UIDL. UIDL alone is not useful at
all. It's a MUA job to issue DELE command to purge unneeded messages.

If you wanna purge old mail from mailbox, you should use third-party
utilities. I'd prefer mpurge (ftp://ftp.simtel.ru/pub/unix/bwm/mpurge.tar.gz)

On Tue, Jun 21, 2005 at 10:18:37PM -0400, Nagy Ondrash wrote:
> In short: How do I disable UIDL function on popa3d?
> > Hello list,
> >
> > I have a dilemma with some clients that are messing around with settings
> > on MS email clients. All email clients have the option to "Leave messages
> > on server", which is all find and dandy, but I would like to be able to
> > disable this function, preferably on the server side. It's painful to
> > remove a few thousand e-mails on Manday after a long weekend.
> > Is it possible to accomplish this and if yes, how would I go about it?

--

-- 
boco

Nagy Ondrash | 24 Jun 04:20

Re: POP protocol question.

On Tuesday 21 June 2005 22:18, Nagy Ondrash wrote:
Thank you for your help gents.

~Andrew.
> On Tuesday 21 June 2005 21:55, Nagy Ondrash wrote:
> In short: How do I disable UIDL function on popa3d?
>
> > Hello list,
> >
> > I have a dilemma with some clients that are messing around with settings
> > on MS email clients. All email clients have the option to "Leave messages
> > on server", which is all find and dandy, but I would like to be able to
> > disable this function, preferably on the server side. It's painful to
> > remove a few thousand e-mails on Manday after a long weekend.
> > Is it possible to accomplish this and if yes, how would I go about it?
> >
> > Thank you,
> >
> > ~andrew.


Gmane