Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 4:09 PM, tim wrote: interesting. I think replacing that "getId" with either the embedded message-id or hashing something should work then. No? As long as Apache james generating a new uidvalidity number for each instance of james. I'm assuming it is a random number. The client

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
interesting. I think replacing that "getId" with either the embedded message-id or hashing something should work then. No? As long as Apache james generating a new uidvalidity number for each instance of james. I'm assuming it is a random number. The client should see the new uidvalidity and

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 3:57 PM, tim wrote: does it ever change or is it they same always? I wonder if it is a guid random number, if the client's matches it assumes the backing database has not be refreshed. On Aug 17, 2012, at 4:51 PM, Joshua Armstrong wrote: Each mailbox (folder) has a UIDVALIDITY va

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
does it ever change or is it they same always? I wonder if it is a guid random number, if the client's matches it assumes the backing database has not be refreshed. On Aug 17, 2012, at 4:51 PM, Joshua Armstrong wrote: > On 8/17/2012 3:02 PM, tim wrote: >> Do you know if the standard imap client

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 3:02 PM, tim wrote: Do you know if the standard imap client does a get of uids of the message index? http://tools.ietf.org/html/rfc3501 says there is a uid command. if the client does, the hash thing probably should work, even if the messages are in different orders? -tim A

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 3:02 PM, tim wrote: Do you know if the standard imap client does a get of uids of the message index? http://tools.ietf.org/html/rfc3501 says there is a uid command. if the client does, the hash thing probably should work, even if the messages are in different orders? -tim

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 3:02 PM, tim wrote: Do you know if the standard imap client does a get of uids of the message index? http://tools.ietf.org/html/rfc3501 says there is a uid command. if the client does, the hash thing probably should work, even if the messages are in different orders? -tim A

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 3:02 PM, tim wrote: Do you know if the standard imap client does a get of uids of the message index? http://tools.ietf.org/html/rfc3501 says there is a uid command. if the client does, the hash thing probably should work, even if the messages are in different orders? -tim T

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
Do you know if the standard imap client does a get of uids of the message index? http://tools.ietf.org/html/rfc3501 says there is a uid command. if the client does, the hash thing probably should work, even if the messages are in different orders? -tim On Aug 17, 2012, at 3:49 PM, Joshua Arm

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 2:48 PM, tim wrote: are your servers completely separate, or could they share a database? (guid -> imap id) On Aug 17, 2012, at 3:46 PM, tim wrote: It's a possibility. We're exploring options right now and that's one option. I'm not up on the details though of the database

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 2:46 PM, tim wrote: and the imap client probably does a similar: for (int i=messagesIhaveRecieved;i Yes. That's why the first thing an IMAP client when you ask it to "get a folder/mailbox" is download a list of messages from the server. I have tcpdump output confirming that a s

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
are your servers completely separate, or could they share a database? (guid -> imap id) On Aug 17, 2012, at 3:46 PM, tim wrote: > and the imap client probably does a similar: > > for (int i=messagesIhaveRecieved;i { > //blahblahblah > } > > > > > On Aug 17, 2012, at 3:41 PM, tim wrote:

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
and the imap client probably does a similar: for (int i=messagesIhaveRecieved;i ah i see > > On Aug 17, 2012, at 3:34 PM, Joshua Armstrong wrote: > >> On 8/17/2012 2:29 PM, tim wrote: >>> So this: >>> >>>/** >>> * Method createMail creates a new Mail. >>> * >>> * @param message

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
ah i see On Aug 17, 2012, at 3:34 PM, Joshua Armstrong wrote: > On 8/17/2012 2:29 PM, tim wrote: >> So this: >> >> /** >> * Method createMail creates a new Mail. >> * >> * @param message >> * @param recipient >> * @return Mail >> * @throws MessagingException >>

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 2:39 PM, tim wrote: wait, are imap ids integers or uuid strings? -tim integers -- Joshua M. Armstrong Software Engineer Centurion, Inc. - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For add

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
wait, are imap ids integers or uuid strings? -tim On Aug 17, 2012, at 3:30 PM, tim wrote: > Or no, that's a static getId, that can't be right. > > On Aug 17, 2012, at 3:29 PM, tim wrote: > >> So this: >> >>/** >> * Method createMail creates a new Mail. >> * >> * @param messag

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 2:29 PM, tim wrote: So this: /** * Method createMail creates a new Mail. * * @param message * @param recipient * @return Mail * @throws MessagingException */ protected Mail createMail(MimeMessage message, MailAddress recipient) th

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
Or no, that's a static getId, that can't be right. On Aug 17, 2012, at 3:29 PM, tim wrote: > So this: > > /** > * Method createMail creates a new Mail. > * > * @param message > * @param recipient > * @return Mail > * @throws MessagingException > */ > p

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
So this: /** * Method createMail creates a new Mail. * * @param message * @param recipient * @return Mail * @throws MessagingException */ protected Mail createMail(MimeMessage message, MailAddress recipient) throws MessagingException, UnknownHostExcepti

mysql database

2012-08-17 Thread Thufir
when configuring the database: root@dur:/home/thufir/apache-james-3.0-beta4# root@dur:/home/thufir/apache-james-3.0-beta4# nl conf/james-database.properties 1 # MySQL JDBC database properties 2 database.driverClassName=com.mysql.jdbc.Driver 3 database.url=jdbc:mysql://localhos

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 2:08 PM, tim wrote: have you found where in the code james is doing the imap storage? i might need to do this as well at some later date. I believe I have, yes. Mainly in the org.apache.james.fetchmail.FolderProcessor class. It imports all the mechanics from javax.mail and

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
have you found where in the code james is doing the imap storage? i might need to do this as well at some later date. On Aug 17, 2012, at 2:51 PM, Joshua Armstrong wrote: > On 8/17/2012 1:48 PM, tim wrote: >> do the UIDs need to be sequential for imap? >> >> could you hash on the messages' uni

Re: IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
On 8/17/2012 1:48 PM, tim wrote: do the UIDs need to be sequential for imap? could you hash on the messages' unique id header, or the message itself? -tim (i'm not affiliated with Apache James, just thoughts) On Aug 17, 2012, at 10:58 AM, Joshua Armstrong wrote: That's what we were thinking

Re: IMAP UID uniqueness question

2012-08-17 Thread tim
do the UIDs need to be sequential for imap? could you hash on the messages' unique id header, or the message itself? -tim (i'm not affiliated with Apache James, just thoughts) On Aug 17, 2012, at 10:58 AM, Joshua Armstrong wrote: > Hi, James users. > > My company is using James to handle voic

Re: James3 ssl

2012-08-17 Thread Jean L. Guislain
Hi Eric! Since port 443 was used by Apache http, I disabled the Apache http server before starting James. The same scenario repeats itself: connection refused on the 3 ports concerned. = bash-4.1# telnet localhost 443 Trying 127.0.0.1... telnet: connect to address 127.0.0.1

Re: James3 ssl

2012-08-17 Thread Jean L. Guislain
Hi Eric In my last email I put the results only for port 995: connection refused to same time and space. I should have mentioned that the same occurs to port 993: connection refused And port 465: connection refused For openssl client and telnet. One thing I want to mention also: James does not st

IMAP UID uniqueness question

2012-08-17 Thread Joshua Armstrong
Hi, James users. My company is using James to handle voicemail storage and retrieval and would like to have a multiple server scenario where users can access their messages from either server. We wanted to use IMAP to keep mail synchronized between the servers but we're running to a problem w

Re: mysql driver

2012-08-17 Thread Eric Charles
If it starts, it means it loads the defined driver. Have fun :) Eric On 08/17/2012 01:00 PM, Thufir wrote: On 08/17/2012 03:48 AM, Eric Charles wrote: The conf/lib/*.jar loading in beta4 is buggy. Can you edit the conf/wrapper.conf and change 'wrapper.java.classpath...=../conf/lib' to 'wrapper

Re: mysql driver

2012-08-17 Thread Thufir
On 08/17/2012 03:48 AM, Eric Charles wrote: The conf/lib/*.jar loading in beta4 is buggy. Can you edit the conf/wrapper.conf and change 'wrapper.java.classpath...=../conf/lib' to 'wrapper.java.classpath...=../conf/lib/*' (add a /* after lib). Thx, Eric Ok, I *think* that did it, it at least

Re: mysql driver

2012-08-17 Thread Eric Charles
The conf/lib/*.jar loading in beta4 is buggy. Can you edit the conf/wrapper.conf and change 'wrapper.java.classpath...=../conf/lib' to 'wrapper.java.classpath...=../conf/lib/*' (add a /* after lib). Thx, Eric On 08/17/2012 11:31 AM, Thufir wrote: On 08/17/2012 01:54 AM, Eric Charles wrote:

Re: mysql driver

2012-08-17 Thread Thufir
On 08/17/2012 01:54 AM, Eric Charles wrote: Try to download version 5.1 from http://dev.mysql.com/downloads/connector/j/ Setting the CLASSPATH_PREFIX as you do should work. Eric I think I've got correct: http://stackoverflow.com/questions/11999233/apache-james-gives-classnotfoundexception-co

Re: Oracle 7 java

2012-08-17 Thread Thufir
Answered my own question: "If you run JDK7, James will not start due to a bug in JAXB. As temporary workaround, you can download the latest 2.1 version of JAXB from http://jaxb.java.net/2.1.13/JAXB2_20100510.jar and copy the extracted jaxb-impl.jar into conf/lib." http://james.apache.org/s

Re: Oracle 7 java

2012-08-17 Thread Eric Charles
Where did you see that? Eric On 08/17/2012 07:35 AM, Thufir wrote: I though I saw reference not to use Oracle 7 Java, why is that? thanks, Thufir - To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additi

Re: mysql driver

2012-08-17 Thread Eric Charles
Try to download version 5.1 from http://dev.mysql.com/downloads/connector/j/ Setting the CLASSPATH_PREFIX as you do should work. Eric On 08/17/2012 04:28 AM, Thufir wrote: Looking at http://wiki.apache.org/james/V3ConfigTutorial they say to download from http://dev.mysql.com/downloads/connec

Re: James3 ssl

2012-08-17 Thread Eric Charles
port 993 is listening and you try to talk to 995. Thx, Eric On 08/16/2012 10:15 PM, Jean L. Guislain wrote: Hi Eric! To answer your questions: 1) A Zenmap scan shows: 443/tcp open ssl/http Apache httpd 2.2.17 ((Unix) mod_ssl/2.2.17 OpenSSL/0.9.8r DAV/2 PHP/5.3.6) |_sslv2: server still suppor

Re: configure on Ubuntu for port 25

2012-08-17 Thread Eric Charles
Yes, that's it, copy james-database-template.properties to james-database.properties and edit the copy according to your needs. The config page is not good. I will correct it. Many thx for pointing this out :) Eric On 08/17/2012 04:02 AM, Thufir wrote: On 08/16/2012 02:33 AM, Eric Charles w