You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ro...@xemaps.com on 2012/04/01 06:54:40 UTC
Re: suggestions on how to limit concurrent connections based on user?
Hi Eric,
Thanks for the reply, I'll definitely look into it. Agreed about the memory cache, looking forward to beta 4 because then I can take advantage of Spring's method based cacheing instead of trying to custom role my own.
Roy
On Sat, Mar 31, 2012 at 5:08 AM, Eric Charles <er...@apache.org> wrote:
> Hi,
>
> The connectionLimit and connectionLimitPerIP parameters are used in the
> generic protocols-netty library which doesn't have access to any user
> notion.
>
> If you want to deal with users, you will have to implement your own
> AbstractConfigurableAsyncServer and inject there the userrepository.
>
> Memory will be much faster but will take memory resources..., database will
> be slower but will consume less memory. The best of both world would be a
> memory cache.
>
> Hope this helps, Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: suggestions on how to limit concurrent connections based on user?
Posted by Eric Charles <er...@apache.org>.
Hi Roy,
We still need to update the documentation, publish in to the mirrors and
make the announce, but you can already get the official 3.0b4 in maven
central from
http://repo1.maven.org/maven2/org/apache/james/apache-james/3.0-beta4/apache-james-3.0-beta4-app.tar.gz
Thx,
Eric
On 01/04/12 06:54, roy.james@xemaps.com wrote:
> Hi Eric,
>
> Thanks for the reply, I'll definitely look into it. Agreed about the memory cache, looking forward to beta 4 because then I can take advantage of Spring's method based cacheing instead of trying to custom role my own.
>
> Roy
>
> On Sat, Mar 31, 2012 at 5:08 AM, Eric Charles<er...@apache.org> wrote:
>> Hi,
>>
>> The connectionLimit and connectionLimitPerIP parameters are used in the
>> generic protocols-netty library which doesn't have access to any user
>> notion.
>>
>> If you want to deal with users, you will have to implement your own
>> AbstractConfigurableAsyncServer and inject there the userrepository.
>>
>> Memory will be much faster but will take memory resources..., database will
>> be slower but will consume less memory. The best of both world would be a
>> memory cache.
>>
>> Hope this helps, Eric
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
--
eric | http://about.echarles.net | @echarles
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: Bug Report: Problems with IMAP and Mails with empty Body (J3
beta 3)
Posted by Simon Klaiber <li...@klaiber.com>.
I Created a Bug-Report under IMAP-362
<https://issues.apache.org/jira/browse/IMAP-362>
Is there any workaround, that i can prevent such malformed mails from
being delivered to the mailboxes at all?
Simon
On 01.04.2012 11:43, Eric Charles wrote:
> the best is that you open a JIRA
> (https://issues.apache.org/jira/browse/IMAP) so we don't forget to
> treat that (should be easy to have a unit test that simulates this,
> and then finding a fix).
>
> thx, Eric
>
> On 01/04/12 10:38, Simon Klaiber wrote:
>> For the Problem to occur the Body really needs to have a length of 0
>>
>> When I send a mail wit an empty body with Thunderbird MAIL_BYTES is 2
>> Bytes long and contains HEX 0D 0A
>>
>> But you are right even if I clear MAIL_BYTES I cant recreate the
>> problem.
>>
>> The Mails that cause the problem are those "completely empty" Spam Mails
>> you get from time to time. The next I get I will try to export to find
>> out what the problem is.
>>
>> Thanks for the Quick Reply
>> Simon
>>
>>
>>
>> On 01.04.2012 10:13, Eric Charles wrote:
>>> Hi Simon,
>>>
>>> mime4j warning does imply there's a bug.
>>>
>>> I sent a mail with nothing in the body, and I can move it from a
>>> folder to another. Have you got a scenario I can replay to show the
>>> issue?
>>>
>>> Thx, Eric
>>>
>>> On 01/04/12 09:54, Simon Klaiber wrote:
>>>> Hello,
>>>>
>>>> after upgrading from James 2 to James 3b3 i encounter Problems when
>>>> using IMAP.
>>>>
>>>> They occur as soon there is a Mail with a Empty Mailbody (
>>>> length(MAIL_BYTES) = 0) )
>>>> I encounter this problem with Thunderbird and with iOS Mail.
>>>>
>>>> It is very obvious but not necessarily limited to when you try to move
>>>> such a message to another folder (for instance Junk Mail Controls in
>>>> Thunderbird) but also when updating the specific folder from iOS Mail.
>>>>
>>>> In the Logs i get following Warnings when this happens:
>>>>
>>>> jvm 1 | WARN 09:34:02,449 |
>>>> org.apache.james.mime4j.parser.MimeEntity |
>>>> Unexpected end of headers detected. Higher level boundary detected or
>>>> EOF reached.
>>>> jvm 1 | WARN 09:34:02,449 |
>>>> org.apache.james.mime4j.parser.MimeEntity |
>>>> Invalid header encountered
>>>>
>>>>
>>>> As soon as I delete these data sets from the JAMES_MAILBOX Table
>>>> everything works alright again.
>>>>
>>>> I run on Ubuntu Linux with MySQL as jpa store.
>>>>
>>>> Thanks
>>>> Simon
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>
Re: Bug Report: Problems with IMAP and Mails with empty Body (J3
beta 3)
Posted by Eric Charles <er...@apache.org>.
the best is that you open a JIRA
(https://issues.apache.org/jira/browse/IMAP) so we don't forget to treat
that (should be easy to have a unit test that simulates this, and then
finding a fix).
thx, Eric
On 01/04/12 10:38, Simon Klaiber wrote:
> For the Problem to occur the Body really needs to have a length of 0
>
> When I send a mail wit an empty body with Thunderbird MAIL_BYTES is 2
> Bytes long and contains HEX 0D 0A
>
> But you are right even if I clear MAIL_BYTES I cant recreate the problem.
>
> The Mails that cause the problem are those "completely empty" Spam Mails
> you get from time to time. The next I get I will try to export to find
> out what the problem is.
>
> Thanks for the Quick Reply
> Simon
>
>
>
> On 01.04.2012 10:13, Eric Charles wrote:
>> Hi Simon,
>>
>> mime4j warning does imply there's a bug.
>>
>> I sent a mail with nothing in the body, and I can move it from a
>> folder to another. Have you got a scenario I can replay to show the
>> issue?
>>
>> Thx, Eric
>>
>> On 01/04/12 09:54, Simon Klaiber wrote:
>>> Hello,
>>>
>>> after upgrading from James 2 to James 3b3 i encounter Problems when
>>> using IMAP.
>>>
>>> They occur as soon there is a Mail with a Empty Mailbody (
>>> length(MAIL_BYTES) = 0) )
>>> I encounter this problem with Thunderbird and with iOS Mail.
>>>
>>> It is very obvious but not necessarily limited to when you try to move
>>> such a message to another folder (for instance Junk Mail Controls in
>>> Thunderbird) but also when updating the specific folder from iOS Mail.
>>>
>>> In the Logs i get following Warnings when this happens:
>>>
>>> jvm 1 | WARN 09:34:02,449 | org.apache.james.mime4j.parser.MimeEntity |
>>> Unexpected end of headers detected. Higher level boundary detected or
>>> EOF reached.
>>> jvm 1 | WARN 09:34:02,449 | org.apache.james.mime4j.parser.MimeEntity |
>>> Invalid header encountered
>>>
>>>
>>> As soon as I delete these data sets from the JAMES_MAILBOX Table
>>> everything works alright again.
>>>
>>> I run on Ubuntu Linux with MySQL as jpa store.
>>>
>>> Thanks
>>> Simon
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
--
eric | http://about.echarles.net | @echarles
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Bug Report: Problems with IMAP and Mails with empty Body (J3
beta 3)
Posted by Simon Klaiber <li...@klaiber.com>.
Ok I didn't have to wait long. Spammers are pretty reliable ;-)
Attached you find a Mysqldump of JAMESMAIL with the where clause
--where='length(MAIL_BYTES)=0'
There are two datasets exported. The First with MAIL_UID 96 is the test
dataset I created that doesn't cause problems
The Second with MAIL_UID 100 is the spam Mail that causes problems.
Simon
On 01.04.2012 10:38, Simon Klaiber wrote:
> For the Problem to occur the Body really needs to have a length of 0
>
> When I send a mail wit an empty body with Thunderbird MAIL_BYTES is 2
> Bytes long and contains HEX 0D 0A
>
> But you are right even if I clear MAIL_BYTES I cant recreate the
> problem.
>
> The Mails that cause the problem are those "completely empty" Spam
> Mails you get from time to time. The next I get I will try to export
> to find out what the problem is.
>
> Thanks for the Quick Reply
> Simon
>
>
>
> On 01.04.2012 10:13, Eric Charles wrote:
>> Hi Simon,
>>
>> mime4j warning does imply there's a bug.
>>
>> I sent a mail with nothing in the body, and I can move it from a
>> folder to another. Have you got a scenario I can replay to show the
>> issue?
>>
>> Thx, Eric
>>
>> On 01/04/12 09:54, Simon Klaiber wrote:
>>> Hello,
>>>
>>> after upgrading from James 2 to James 3b3 i encounter Problems when
>>> using IMAP.
>>>
>>> They occur as soon there is a Mail with a Empty Mailbody (
>>> length(MAIL_BYTES) = 0) )
>>> I encounter this problem with Thunderbird and with iOS Mail.
>>>
>>> It is very obvious but not necessarily limited to when you try to move
>>> such a message to another folder (for instance Junk Mail Controls in
>>> Thunderbird) but also when updating the specific folder from iOS Mail.
>>>
>>> In the Logs i get following Warnings when this happens:
>>>
>>> jvm 1 | WARN 09:34:02,449 | org.apache.james.mime4j.parser.MimeEntity |
>>> Unexpected end of headers detected. Higher level boundary detected or
>>> EOF reached.
>>> jvm 1 | WARN 09:34:02,449 | org.apache.james.mime4j.parser.MimeEntity |
>>> Invalid header encountered
>>>
>>>
>>> As soon as I delete these data sets from the JAMES_MAILBOX Table
>>> everything works alright again.
>>>
>>> I run on Ubuntu Linux with MySQL as jpa store.
>>>
>>> Thanks
>>> Simon
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
Re: Bug Report: Problems with IMAP and Mails with empty Body (J3
beta 3)
Posted by Simon Klaiber <li...@klaiber.com>.
For the Problem to occur the Body really needs to have a length of 0
When I send a mail wit an empty body with Thunderbird MAIL_BYTES is 2
Bytes long and contains HEX 0D 0A
But you are right even if I clear MAIL_BYTES I cant recreate the problem.
The Mails that cause the problem are those "completely empty" Spam
Mails you get from time to time. The next I get I will try to export to
find out what the problem is.
Thanks for the Quick Reply
Simon
On 01.04.2012 10:13, Eric Charles wrote:
> Hi Simon,
>
> mime4j warning does imply there's a bug.
>
> I sent a mail with nothing in the body, and I can move it from a
> folder to another. Have you got a scenario I can replay to show the
> issue?
>
> Thx, Eric
>
> On 01/04/12 09:54, Simon Klaiber wrote:
>> Hello,
>>
>> after upgrading from James 2 to James 3b3 i encounter Problems when
>> using IMAP.
>>
>> They occur as soon there is a Mail with a Empty Mailbody (
>> length(MAIL_BYTES) = 0) )
>> I encounter this problem with Thunderbird and with iOS Mail.
>>
>> It is very obvious but not necessarily limited to when you try to move
>> such a message to another folder (for instance Junk Mail Controls in
>> Thunderbird) but also when updating the specific folder from iOS Mail.
>>
>> In the Logs i get following Warnings when this happens:
>>
>> jvm 1 | WARN 09:34:02,449 | org.apache.james.mime4j.parser.MimeEntity |
>> Unexpected end of headers detected. Higher level boundary detected or
>> EOF reached.
>> jvm 1 | WARN 09:34:02,449 | org.apache.james.mime4j.parser.MimeEntity |
>> Invalid header encountered
>>
>>
>> As soon as I delete these data sets from the JAMES_MAILBOX Table
>> everything works alright again.
>>
>> I run on Ubuntu Linux with MySQL as jpa store.
>>
>> Thanks
>> Simon
>>
>> ---------------------------------------------------------------------
>> 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
Re: Bug Report: Problems with IMAP and Mails with empty Body (J3
beta 3)
Posted by Eric Charles <er...@apache.org>.
Hi Simon,
mime4j warning does imply there's a bug.
I sent a mail with nothing in the body, and I can move it from a folder
to another. Have you got a scenario I can replay to show the issue?
Thx, Eric
On 01/04/12 09:54, Simon Klaiber wrote:
> Hello,
>
> after upgrading from James 2 to James 3b3 i encounter Problems when
> using IMAP.
>
> They occur as soon there is a Mail with a Empty Mailbody (
> length(MAIL_BYTES) = 0) )
> I encounter this problem with Thunderbird and with iOS Mail.
>
> It is very obvious but not necessarily limited to when you try to move
> such a message to another folder (for instance Junk Mail Controls in
> Thunderbird) but also when updating the specific folder from iOS Mail.
>
> In the Logs i get following Warnings when this happens:
>
> jvm 1 | WARN 09:34:02,449 | org.apache.james.mime4j.parser.MimeEntity |
> Unexpected end of headers detected. Higher level boundary detected or
> EOF reached.
> jvm 1 | WARN 09:34:02,449 | org.apache.james.mime4j.parser.MimeEntity |
> Invalid header encountered
>
>
> As soon as I delete these data sets from the JAMES_MAILBOX Table
> everything works alright again.
>
> I run on Ubuntu Linux with MySQL as jpa store.
>
> Thanks
> Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
--
eric | http://about.echarles.net | @echarles
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Bug Report: Problems with IMAP and Mails with empty Body (J3 beta
3)
Posted by Simon Klaiber <li...@klaiber.com>.
Hello,
after upgrading from James 2 to James 3b3 i encounter Problems when
using IMAP.
They occur as soon there is a Mail with a Empty Mailbody (
length(MAIL_BYTES) = 0) )
I encounter this problem with Thunderbird and with iOS Mail.
It is very obvious but not necessarily limited to when you try to move
such a message to another folder (for instance Junk Mail Controls in
Thunderbird) but also when updating the specific folder from iOS Mail.
In the Logs i get following Warnings when this happens:
jvm 1 | WARN 09:34:02,449 |
org.apache.james.mime4j.parser.MimeEntity | Unexpected end of headers
detected. Higher level boundary detected or EOF reached.
jvm 1 | WARN 09:34:02,449 |
org.apache.james.mime4j.parser.MimeEntity | Invalid header encountered
As soon as I delete these data sets from the JAMES_MAILBOX Table
everything works alright again.
I run on Ubuntu Linux with MySQL as jpa store.
Thanks
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org