Re: POP3 retvied mails should be marked as read - how?

2007-10-01 Thread Ken Murchison
Yann Rouillard wrote:
 Le dimanche 30 septembre 2007 à 11:39 +0300, Georgy Goshin a écrit :
 Hello,

 Thanks for the answer but the answer was not do I need this or not, I've 
 asked how to do it. I'll try to explain why I need this and I beleive that 
 not only I am.
 
 You're not, I opened a bug about this sometimes ago:
 https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2737
 
 But I suppose this feature is not high priority for developper so if you
 really want it, you should try to offer a patch or find someone to do
 it.

Yeah, I would probably accept a well-written patch that implemented this 
as an option such as 'popmarkseen' or something.  My guess is that this 
would operate similar to DELE where RETR would set an internal flag on 
the message list, but the actual \Seen state would only be changed 
during QUIT.  RSET would clear the internal flags and NOT update \Seen 
state.

Doing the internal flag piece is trivial and would be the same as 
'deleted' in pop3d.c.  The hard part is actually updating \Seen state. 
All of the code that is needed can be extracted from index.c.


-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: POP3 retvied mails should be marked as read - how?

2007-09-30 Thread Georgy Goshin
Hello,

Thanks for the answer but the answer was not do I need this or not, I've 
asked how to do it. I'll try to explain why I need this and I beleive that 
not only I am.
I use Cyrus in a hosting inviroment because it's stable, fast and feature 
rich server. Most of my (hosting) clients uses POP3 to get their mails form 
the server, almost all of them leaves the messages on the server for a 5-20 
days, about a half of them uses webamil access to read their mail from home, 
from places other than office and this is a place where we need all read 
mails marked as read.


Best,
G/


- Original Message - 
From: Jorey Bump [EMAIL PROTECTED]
To: Georgy Goshin [EMAIL PROTECTED]
Cc: info-cyrus@lists.andrew.cmu.edu
Sent: Saturday, September 29, 2007 2:55 PM
Subject: Re: POP3 retvied mails should be marked as read - how?


 Georgy Goshin wrote, at 09/29/2007 06:12 AM:

 I need the Cyrus POP3 server marks all messages read by client but left 
 on server as read. How to do this?

 POP3 does not mark messages as read. The client downloads the messages, 
 then *it* tracks which messages are read. For obvious reasons, you don't 
 want to mark messages as read merely because they have been downloaded. 
 Tricks played with the deprecated LAST command are not reliable.

 The feature you want can only be done by modifying the POP3 client to use 
 IMAP to mark messages as read when messages left on the server are read by 
 the POP3 client. I doubt you'll be able to convince any developer to make 
 such a modification, since IMAP already provides this functionality.

 IOW, switch to IMAP.
 


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: POP3 retvied mails should be marked as read - how?

2007-09-30 Thread Yann Rouillard

Le dimanche 30 septembre 2007 à 11:39 +0300, Georgy Goshin a écrit :
 Hello,
 
 Thanks for the answer but the answer was not do I need this or not, I've 
 asked how to do it. I'll try to explain why I need this and I beleive that 
 not only I am.

You're not, I opened a bug about this sometimes ago:
https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2737

But I suppose this feature is not high priority for developper so if you
really want it, you should try to offer a patch or find someone to do
it.

Yann


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: POP3 retvied mails should be marked as read - how?

2007-09-30 Thread Jarod Watkins
Yann Rouillard wrote:
 Le dimanche 30 septembre 2007 à 11:39 +0300, Georgy Goshin a écrit :
   
 Hello,

 Thanks for the answer but the answer was not do I need this or not, I've 
 asked how to do it. I'll try to explain why I need this and I beleive that 
 not only I am.
 

 You're not, I opened a bug about this sometimes ago:
 https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2737

 But I suppose this feature is not high priority for developper so if you
 really want it, you should try to offer a patch or find someone to do
 it.

 Yann
   
But as Jorey Bumb said, wouldn't it be easier to just switch to IMAP and 
offer your customers a better protocol than POP3? I don't see why you 
are still offering POP when IMAP provides what you want in the first 
place. Plus from the sound of it, you are keeping all the messages left 
on the server anyway, so in essence you are already running IMAP! Don't 
mean to sound like I am ranting, just my .02.

-Jarod

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

POP3 retvied mails should be marked as read - how?

2007-09-29 Thread Georgy Goshin
Hi,

I need the Cyrus POP3 server marks all messages read by client but left on 
server as read. How to do this?


Thanks,
G. 


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: POP3 retvied mails should be marked as read - how?

2007-09-29 Thread Jorey Bump
Georgy Goshin wrote, at 09/29/2007 06:12 AM:

 I need the Cyrus POP3 server marks all messages read by client but left on 
 server as read. How to do this?

POP3 does not mark messages as read. The client downloads the messages, 
then *it* tracks which messages are read. For obvious reasons, you don't 
want to mark messages as read merely because they have been downloaded. 
Tricks played with the deprecated LAST command are not reliable.

The feature you want can only be done by modifying the POP3 client to 
use IMAP to mark messages as read when messages left on the server are 
read by the POP3 client. I doubt you'll be able to convince any 
developer to make such a modification, since IMAP already provides this 
functionality.

IOW, switch to IMAP.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html