Message read/unread notifications

View: New views
6 Messages — Rating Filter:   Alert me  

Message read/unread notifications

by Jim Durrell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm using javamail to connect to the gmail "INBOX" folder.  The code registers various listeners and then calls idle() on the folder.  Everything connects fine and receives notifications when a message arrives or is archived.  Is it possible to also receive notification when a message is read or marked unread?  I've added a MessageChangedListener, but it does not get called.

I've enabled the tracing in javamail, and the last thing I see is the +idling message.  When I read messages in the gmail web interface, there is no tracing output from javamail, suggesting that gmail isn't sending this information.  Am I setting something up wrong, or is this a known limitation?

Thanks,
  -- jim



Re: Message read/unread notifications

by Bill Shannon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jim Durrell wrote:

> I'm using javamail to connect to the gmail "INBOX" folder.  The code
> registers various listeners and then calls idle() on the folder.  Everything
> connects fine and receives notifications when a message arrives or is
> archived.  Is it possible to also receive notification when a message is
> read or marked unread?  I've added a MessageChangedListener, but it does not
> get called.
>
> I've enabled the tracing in javamail, and the last thing I see is the
> +idling message.  When I read messages in the gmail web interface, there is
> no tracing output from javamail, suggesting that gmail isn't sending this
> information.  Am I setting something up wrong, or is this a known
> limitation?

It's possible for the IMAP protocol to notify you of flag changes
made by other clients, but I'm not sure how many servers actually
do that.  Likely Gmail does not.

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".

Re: Message read/unread notifications

by Jim Durrell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, Bill.   I had been getting good results polling the Google RSS feed, so maybe I'll do a hybrid approach where RSS gives me the changed messages and IMAP can be used to read, archive, etc.

Thanks again,
Jim



Bill Shannon wrote:
Jim Durrell wrote:
> I'm using javamail to connect to the gmail "INBOX" folder.  The code
> registers various listeners and then calls idle() on the folder.  Everything
> connects fine and receives notifications when a message arrives or is
> archived.  Is it possible to also receive notification when a message is
> read or marked unread?  I've added a MessageChangedListener, but it does not
> get called.
>
> I've enabled the tracing in javamail, and the last thing I see is the
> +idling message.  When I read messages in the gmail web interface, there is
> no tracing output from javamail, suggesting that gmail isn't sending this
> information.  Am I setting something up wrong, or is this a known
> limitation?

It's possible for the IMAP protocol to notify you of flag changes
made by other clients, but I'm not sure how many servers actually
do that.  Likely Gmail does not.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Re: Message read/unread notifications

by Phung Nam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody!

I have a trouble with "return receipt" problem in java. Anybody can help me

I'm writing a web mail and when sending mail I have a option "Return Receipt" (I add "Disposition-Notification-To" header to email before I send). Other mail client (thunderbird) read it and confirm to send back a return receipt => It's okay

My problems are :

1. When I get the message, how to know that message already return receipt before ? (because if that message haven't returned receipt I will confirm in my webmail to send return receipt).

2. How to send return receipt ? (The contend of receipt message) I see in rfc3462 and rfc3798 but I don't know how to do in javamail.

These problem are very urgent for me. please help me ....

Thanks a lots

Re: Message read/unread notifications

by Ronald Klop :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I check if the message has been read already. With imap the server knows which mails are read and which aren't. With pop3 all this info is in the client, so I think it is not possible to share this info between clients.

Ronald.

Op dinsdag, 2 juni 2009 11:21 schreef Phung Nam :

Hi everybody!

I have a trouble with "return receipt" problem in java. Anybody can help me

I'm writing a web mail and when sending mail I have a option "Return
Receipt" (I add "Disposition-Notification-To" header to email before I
send). Other mail client (thunderbird) read it and confirm to send back a
return receipt => It's okay

My problems are :

1. When I get the message, how to know that message already return receipt
before ? (because if that message haven't returned receipt I will confirm in
my webmail to send return receipt).

2. How to send return receipt ? (The contend of receipt message) I see in
rfc3462 and rfc3798 but I don't know how to do in javamail.

These problem are very urgent for me. please help me ....

Thanks a lots
-- 
View this message in context: http://www.nabble.com/Message-read-unread-notifications-tp22229366p23827767.html
Sent from the Javamail mailing list archive at Nabble.com.

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".
 


=========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVAMAIL-INTEREST". For general help, send email to listserv@... and include in the body of the message "help".


Re: Message read/unread notifications

by Bill Shannon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Phung Nam wrote:

> Hi everybody!
>
> I have a trouble with "return receipt" problem in java. Anybody can help me
>
> I'm writing a web mail and when sending mail I have a option "Return
> Receipt" (I add "Disposition-Notification-To" header to email before I
> send). Other mail client (thunderbird) read it and confirm to send back a
> return receipt => It's okay
>
> My problems are :
>
> 1. When I get the message, how to know that message already return receipt
> before ? (because if that message haven't returned receipt I will confirm in
> my webmail to send return receipt).
>
> 2. How to send return receipt ? (The contend of receipt message) I see in
> rfc3462 and rfc3798 but I don't know how to do in javamail.
>
> These problem are very urgent for me. please help me ....
>
> Thanks a lots

Answered in the forum where you first posted:
http://forums.sun.com/thread.jspa?messageID=10733719

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".