Skip Menu |

This queue is for tickets about the Mail-Bulkmail CPAN distribution.

Report information
The Basics
Id: 13766
Status: new
Priority: 0/
Queue: Mail-Bulkmail

People
Owner: Nobody in particular
Requestors: jjsimoni [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Setting, "max_messages_per_connection" breaks, "max_messages_while_awake"?
It seems that if you set, "max_messages_per_connection", the M::BM won't sleep if, "max_messages_while_awake" and, "sleep_length" are set as well. I've been having trouble with SMTP servers not accepting so many messages per connection, so we've been setting, "max_messages_while_awake" to, "1" and "sleep_length" to about 1 second. This slows things down tremendously and isn't very good. What I would like to do is set, "max_messages_per_connection" to something like, "1" and then "max_messages_while_awake" to something like, "100", but doing so doesn't seem to do what I say to do. Was more wondering if other people have had this problem. I'm using this for the Dada Mail program, which uses a tweaked copy of M::BM ver. 3.09. I didn't read that this was an issue in the later versions of the program. Cheers, Justin Simoni
From: jjsimoni [...] yahoo.com
Well, ok - "reached_limit" is tripped when "max_messages_per_connection" (in my case, 1) is reached - this trips, "reset_message_counters" which includes, "_sent_messages_while_awake" So, it doesn't look like I can really do what I want - unless, "sent_messages_while_awake" is less than, "max_messages_per_connection" - which does seem a little obtuse - is there a reason I just can't allow "reached_limit" to reset "sent_messages_while_awake" itself when it reaches the: if ($self->max_messages_while_awake && $self->_sent_messages_while_awake >= $self->max_messages_while_awake){ ... } Loop? (Talking to myself (-: ) Justin [guest - Tue Jul 19 00:54:34 2005]: Show quoted text
> It seems that if you set, "max_messages_per_connection", the M::BM > won't sleep if, "max_messages_while_awake" and, "sleep_length" are > set as well. > > I've been having trouble with SMTP servers not accepting so many > messages per connection, so we've been setting, > "max_messages_while_awake" to, "1" and "sleep_length" to about 1 > second. This slows things down tremendously and isn't very good. > What I would like to do is set, "max_messages_per_connection" to > something like, "1" and then "max_messages_while_awake" to > something like, "100", but doing so doesn't seem to do what I say > to do. > > Was more wondering if other people have had this problem. > > I'm using this for the Dada Mail program, which uses a tweaked copy of > M::BM ver. 3.09. I didn't read that this was an issue in the later > versions of the program. > > Cheers, > > Justin Simoni >
OK, replying to myself again, commenting: $self->_sent_messages_while_awake(0); in, reset_message_counters does the trick I wanted - can you see any Really Bad Things that could happen with that? It already looks like, _sent_messages and _sent_messages_this_connection are already commented out for various reasons... I'm not using multiple server, or round robin stuff - although I can't see how either of those would muck about with the sleep settings as I have them - they would just be still counted if you switch to another server - which seems to be what you wanted. -- Justin (to Justin) Oh! and Jim, if you're around, I have some SASL patches, if you're interested - they're not perfect, only work for AUTH PLAIN, but it's battle tested, Cheers, Justin (to (to Justin)) [guest - Tue Jul 19 01:25:20 2005]: Show quoted text
> Well, ok - "reached_limit" is tripped when > "max_messages_per_connection" > (in my case, 1) is reached - this trips, "reset_message_counters" > which > includes, "_sent_messages_while_awake" > > So, it doesn't look like I can really do what I want - unless, > "sent_messages_while_awake" is less than, > "max_messages_per_connection" > - which does seem a little obtuse - is there a reason I just can't > allow > "reached_limit" to reset "sent_messages_while_awake" itself when it > reaches the: > > if ($self->max_messages_while_awake && > $self->_sent_messages_while_awake >= $self->max_messages_while_awake){ > ... > } > > Loop? > > (Talking to myself (-: ) > > > Justin > > > > > > [guest - Tue Jul 19 00:54:34 2005]: >
> > It seems that if you set, "max_messages_per_connection", the M::BM > > won't sleep if, "max_messages_while_awake" and, "sleep_length"
> are
> > set as well. > > > > I've been having trouble with SMTP servers not accepting so many > > messages per connection, so we've been setting, > > "max_messages_while_awake" to, "1" and "sleep_length" to about 1 > > second. This slows things down tremendously and isn't very good. > > What I would like to do is set, "max_messages_per_connection" to > > something like, "1" and then "max_messages_while_awake" to > > something like, "100", but doing so doesn't seem to do what I say > > to do. > > > > Was more wondering if other people have had this problem. > > > > I'm using this for the Dada Mail program, which uses a tweaked copy
> of
> > M::BM ver. 3.09. I didn't read that this was an issue in the
> later
> > versions of the program. > > > > Cheers, > > > > Justin Simoni > >
> >