You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Jerry M <te...@malcolms.com> on 2007/04/30 20:55:51 UTC

James MBox & Thunderbird MBox

I want to write a utility to sync my Mozilla Thunderbird mail repository 
with a SQL database.  I'm looking around for a set of java classes that 
can parse the Thunderbird mail repository.  All I need is an easy way to 
get the mail messages out of TBird files and into MimeMessage or perhaps 
James Mail objects.

 From what I have have learned, I believe Thunderbird uses MBox format 
for its mail.  I have also seen references to James using MBox as well 
for its file-based repository option.

First question.... how similar, if at all, is the TBird MBox format to 
the James MBox format?

Second question... would it be possible to use the James MBox package of 
classes to parse the TBird repository?

I have no problem writing a little code.  I just don't want to have to 
learn how to interpret and parse the MBox format if at all possible.

Thanks for any advice you can give.

Jerry


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James MBox & Thunderbird MBox

Posted by Stefano Bagnara <ap...@bago.org>.
Jerry M ha scritto:
> I want to write a utility to sync my Mozilla Thunderbird mail repository
> with a SQL database.  I'm looking around for a set of java classes that
> can parse the Thunderbird mail repository.  All I need is an easy way to
> get the mail messages out of TBird files and into MimeMessage or perhaps
> James Mail objects.
> 
> From what I have have learned, I believe Thunderbird uses MBox format
> for its mail.  I have also seen references to James using MBox as well
> for its file-based repository option.

No, James' FileRepositories use another format. Anyway JAMES Server has
some sort of Mbox support.

> First question.... how similar, if at all, is the TBird MBox format to
> the James MBox format?

James 2.2.x and 2.3.x have a really basic support for MBox files: they
are able to read mail from that files.

James trunk makes use of the mstor library and has better support for
that format.

> Second question... would it be possible to use the James MBox package of
> classes to parse the TBird repository?
> 
> I have no problem writing a little code.  I just don't want to have to
> learn how to interpret and parse the MBox format if at all possible.
> 
> Thanks for any advice you can give.

Please take a loot at http://mstor.sourceforge.net/ first.
If you just need to read your thunderbird files it may be the best solution.

Otherwise using james you could configure it to ready your mbox files
and store messages into sql db without writing code, only configuring
appropriately JAMES Server..

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Forward Email based on header

Posted by Stefano Bagnara <ap...@bago.org>.
Jason Long ha scritto:
> I want to try to use Gmail as my spam filter from the following article:
> 
>  
> 
> http://mboffin.com/post.aspx?id=1636
> 
>  
> 
> Here is the header I am looking for.
> 
> X-Forwarded-For: user@gmail.com  <ma...@domain.com> user@domain.com


To check if a mail has the X-Forwarded-For header you can use the
"HasHeader" matcher.
If the header is present you can use the ToProcessor to send the message
to the processor for local storage/processing.
In the following mailet (so, when no X-Forwarded-For is found) you use
the Forward or Resend mailets:
http://james.apache.org/server/2.3.1/apidocs/org/apache/james/transport/mailets/Forward.html

Once you get it working please post your configuration so other users
interested in this will find something on a google search :-)

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Forward Email based on header

Posted by Jason Long <ja...@supernovasoftware.com>.
I want to try to use Gmail as my spam filter from the following article:

 

http://mboffin.com/post.aspx?id=1636

 

Here is the header I am looking for.

X-Forwarded-For: user@gmail.com  <ma...@domain.com> user@domain.com

 

Any email for the user should be first sent to Gmail and it will be spam
filtered and checked and then Gmail will forward it back.

 

I am using James 2.2 and would rather not write any java code for this.
Could someone please advise the easiest way to accomplish this?

 

Thank you for your time,

 

Jason Long

CEO and Chief Software Engineer

BS Physics, MS Chemical Engineering

http://www.supernovasoftware.com

HJBUG Founder and President

http://www.hjbug.com

 

 


Re: James MBox & Thunderbird MBox

Posted by Jerry M <te...@malcolms.com>.
Stefano,

Thanks so much for the info.  The MStor package on sourceforge was 
exactly what I was looking for.

Jerry


Stefano Bagnara wrote:
> Jerry M ha scritto:
>   
>> I want to write a utility to sync my Mozilla Thunderbird mail repository
>> with a SQL database.  I'm looking around for a set of java classes that
>> can parse the Thunderbird mail repository.  All I need is an easy way to
>> get the mail messages out of TBird files and into MimeMessage or perhaps
>> James Mail objects.
>>
>> From what I have have learned, I believe Thunderbird uses MBox format
>> for its mail.  I have also seen references to James using MBox as well
>> for its file-based repository option.
>>     
>
> No, James' FileRepositories use another format. Anyway JAMES Server has
> some sort of Mbox support.
>
>   
>> First question.... how similar, if at all, is the TBird MBox format to
>> the James MBox format?
>>     
>
> James 2.2.x and 2.3.x have a really basic support for MBox files: they
> are able to read mail from that files.
>
> James trunk makes use of the mstor library and has better support for
> that format.
>
>   
>> Second question... would it be possible to use the James MBox package of
>> classes to parse the TBird repository?
>>
>> I have no problem writing a little code.  I just don't want to have to
>> learn how to interpret and parse the MBox format if at all possible.
>>
>> Thanks for any advice you can give.
>>     
>
> Please take a loot at http://mstor.sourceforge.net/ first.
> If you just need to read your thunderbird files it may be the best solution.
>
> Otherwise using james you could configure it to ready your mbox files
> and store messages into sql db without writing code, only configuring
> appropriately JAMES Server..
>
> Stefano
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org