Discussion:
Message read/unread notifications
Jim Durrell
2009-02-26 17:32:54 UTC
Permalink
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
--
View this message in context: http://www.nabble.com/Message-read-unread-notifications-tp22229366p22229366.html
Sent from the Javamail mailing list archive at Nabble.com.

===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
Bill Shannon
2009-02-26 18:41:08 UTC
Permalink
Post by Jim Durrell
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 ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
Jim Durrell
2009-02-26 19:35:22 UTC
Permalink
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
Post by Bill Shannon
Post by Jim Durrell
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.
===========================================================================
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
--
View this message in context: http://www.nabble.com/Message-read-unread-notifications-tp22229366p22231853.html
Sent from the Javamail mailing list archive at Nabble.com.

===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
Phung Nam
2009-06-02 09:21:48 UTC
Permalink
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 ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
Ronald Klop
2009-06-02 11:18:28 UTC
Permalink
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 :>
Post by 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
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.
===========================================================================
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
Bill Shannon
2009-06-08 21:28:40 UTC
Permalink
Post by 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
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 ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
Loading...