Re: Re: Bug in 1.1.2: Folder.search() alters Folder.mode (works with 1.1.1)
Chris Burdess <[email protected]> Mon, 16 Nov 2009 11:08:02 +0000
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Message-ID | <[email protected]> |
Boris Folgmann wrote:
> Chris Burdess schrieb/wrote:
>> Boris Folgmann wrote:
>>> I hope you find the problem.
>>=20
>> Please could you try with the attached patches to the inetlib and =
mail
>> packages (from CVS HEAD) and let me know if this works for you?
>=20
> Sorry, no attachments. Is it because I'm reading through =
news.gmane.org?
Hmm, maybe the listserv is stripping them out. Try this:
----inetlib.patch----
Index: source/gnu/inet/imap/IMAPConnection.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: =
/sources/classpath/inetlib/source/gnu/inet/imap/IMAPConnection.java,v
retrieving revision 1.33
diff -r1.33 IMAPConnection.java
841a842
> ms.select =3D true;
Index: source/gnu/inet/imap/MailboxStatus.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: =
/sources/classpath/inetlib/source/gnu/inet/imap/MailboxStatus.java,v
retrieving revision 1.5
diff -r1.5 MailboxStatus.java
64a65,66
> public boolean select;
>=20
----mail.patch----
Index: build.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /sources/classpathx/mail/build.xml,v
retrieving revision 1.17
diff -r1.17 build.xml
128a129
> </echo>
Index: source/gnu/mail/providers/imap/IMAPFolder.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: =
/sources/classpathx/mail/source/gnu/mail/providers/imap/IMAPFolder.java,v
retrieving revision 1.23
diff -r1.23 IMAPFolder.java
152c152,155
< mode =3D status.readWrite ? Folder.READ_WRITE : Folder.READ_ONLY;
---
> if (status.select)
> {
> mode =3D status.readWrite ? Folder.READ_WRITE : =
Folder.READ_ONLY;
> }
--=20
Chris Burdess