MozillaZine

SendTools ( for TB ) ver 0.4.0 is available

Talk about add-ons and extension development.
Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 15th, 2005, 1:56 pm

Here is a pic

<img src="http://www.supportware.net/mozilla/sendat2.jpg">

How it works..
1) a folder is created in your Local folders account called 'pending'

2) two subfolders of that folder are created, called 'later' and 'scheduled'

3) if you send regularly ( not send later or send at ) , the message will go directly to 'Unsent Messages' to be sent out on the 8 second interval. ( this makes it possible for the compose window to close very quickly as you do not have to wait for the message to be sent )

4) if you send later, the message will go directly to the 'later' folder and will only be sent out when you click 'file...send unsent messages' ( again, on the 8 second interval )

5) if you tick the send at box, the message will go directly to the 'pending' folder where the date will be modified to the date you specified in the 'sendat' box. Once that is done, the message will be moved to the 'scheduled' folder and sit there until the send at datetime is reached.. ( once reached, it will be moved to the 'Unsent messages' folder, to be sent out asap. )

6) If you tick send at and send later ( either with file...send later or with the send later button ( which shows up when TB is set offline )) then sendat will override sendlater and the message will abide by 5

7) if TB is 'offline' when any messages whose sendat datetime is reached, then those messages will queue in the 'Unsent Messages' folder until TB is set back 'online'

Modifying the SendAt widget is supposed to work like this:
LEFT click on the 'top' of the value ( minute, day, year, weekday etc ) to increment it
...the value's background will turn light red when your mouse hovers in the increment region
LEFT click on the 'bottom' of the value to decrement it
...the value's background will turn light blue when your mouse hovers in the decrement region
( this non-standard ui scheme was apoted to use as little space as possible for the input widget )

The date time will NOT decrement earlier than current date/time + 1 minute..
so a *quick* way to revert back to current datetime is to decrement the year ( the sendat datetime cannot be earlier than current and so the sendat will change to current datetime + 1 minute)

Get it from www.supportware.net/mozilla/SendTools.xpi

Cheers

FYI, this is still a work-in-progress folks

asp3232
 
Posts: 82
Joined: October 2nd, 2004, 8:32 am

Post Posted June 15th, 2005, 4:13 pm

Hi Frank,

This appears to fix the "multiple send" issue that occurred with large attachments combined with multiple recipients! It looks like all is well!

Thanks a bunch!

Old Makondo
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 15th, 2005, 4:26 pm

Just dropping in to watch the thread. Still working great for me. Thanks a lot for your work, ausdilecce!

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 15th, 2005, 4:59 pm

Thanks for the feedback.. Nice to know its finally working correctly for you guys

Cheers

GOD00007
 
Posts: 85
Joined: November 14th, 2003, 6:01 am

Post Posted June 15th, 2005, 8:19 pm

Hey looks like you have fixed the multiple send bug!
yay!!

Thanks a bunch!

riowong

User avatar
 
Posts: 587
Joined: May 4th, 2005, 1:33 am

Post Posted June 15th, 2005, 9:16 pm

Hi, I found that the "later" folder has replaced usage of "Unsent Messages" folder when I click "Send Later" toolbar button. The empty "Unsent Messages" folder can't be removed and stays to be useless. How could it be removed, or changed back the unsent messages to the original "Unsent Messages" folder and remove "later" folder?

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 15th, 2005, 10:31 pm

Unsent messages is still being used, even tho it does not look like it is..

the Unsent messages folder is a 'special' folder, that cannot be removed without breaking a whole bunch more stuff.. You *should not* remove the later folder as this is a 'holder' for any messages that you do not want to send now or at a specific time ( so *some* time in the future )..

Sorry

riowong

User avatar
 
Posts: 587
Joined: May 4th, 2005, 1:33 am

Post Posted June 15th, 2005, 10:38 pm

But, may I ask why do you put all those send-later messages to 'later' folder rather the original 'unsent message' folder? Why don't just leave them to the original 'unsent message' folder?

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 15th, 2005, 10:52 pm

Of course you may ask... :wink:

The extension periodically does an 'automatic' send unsent messages command.. ( about every 8 seconds or so )..

Now, if I did not use the 'later' folder, then any messages you 'send later' will be sent in about 8 seconds ( which is *technically* later but... )
Any messages you 'send' ( now, as opposed to later or sendat ) get deposited into the unsent messages folder to be sent out within the 8 second period.
This is so that the compose window closes down very quickly, rather than sticking around until the message is actually sent...

Clear ?

riowong

User avatar
 
Posts: 587
Joined: May 4th, 2005, 1:33 am

Post Posted June 15th, 2005, 11:04 pm

Oh I see!

BTW, I found there's an issue on SendAt. I'm not sure if it's the problem of other xpi. When I'd installed EnigMail TB extension, and try to use SendAt to send a mail with big attachments, SendAt won't schedule the mail, but bypass and send out at once. If I use SendAt for small attachment, scheduler works normally. I now daren't to install EnigMail, since I need SendAt more than that, but I may reuse EnigMail some time later again for its features.

Thanks ausdilecce.

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 15th, 2005, 11:13 pm

That issue is due to enigmail taking time to encrypt the message..

Enigmail does some funky things to the built in code.. Unfortunately, I cannot install it since I use nightly versions of TB all the time and Enigmail only works reliably with milestone TB releases..

One of these days I will download the Enigmail xpi and have a look..

riowong

User avatar
 
Posts: 587
Joined: May 4th, 2005, 1:33 am

Post Posted June 15th, 2005, 11:15 pm

Thanks ausdilecce! :)

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted June 15th, 2005, 11:30 pm

Had some time so downloaded the enigmail xpi just to look at the source..

Looks like my special code to set the sendat header never gets a chance to run..

The enigmail code fires an event ( compose-send-message ) *much* higher up in the GenericSendMessage built in function of TB ( actually, Enigmail completely rewrites the GenericSendMessage function using a much older version of that function with enigmail code dispersed within it )

In order to make my extension work correctly with Enigmail.. I will have to play some code games to 'rewrite the rewrote' function.. To have THAT happen, any users will have to make sure to install my extension AFTER installing the Enigmail extension ( I think ! )

riowong

User avatar
 
Posts: 587
Joined: May 4th, 2005, 1:33 am

Post Posted June 15th, 2005, 11:37 pm

Wonderful news!! ;)

riowong

User avatar
 
Posts: 587
Joined: May 4th, 2005, 1:33 am

Post Posted June 17th, 2005, 10:04 am

Help ausdilecce! I just discover that I've a mail strangely pending in the 'later' folder for over 1.5 hrs. When I click 'send unsent messages' and keep waiting for over many 8 sec intervals till now over 5 min, the mail is still trap in 'later' folder. I can't 'edit as new', because the date that I reply this mail is important.

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 0 guests