I just did some changes that should make these errors go away -- could you check with the latest CVS and make sure it works?
> I'm getting some sporadic errors when using delete, move next plugin with
> 1.0pre2. In 1.0pre1 it was completely broken, but now it seems to work
> most of the time. Sometimes, when I clik on the delete, next link I get
> the following error -
>
> Warning: Wrong datatype in array_unique() call
> in /usr/local/apache/htdocs/squirrel/src/read_body.php on line 176
>
> Warning: Invalid argument supplied for foreach()
> in /usr/local/apache/htdocs/squirrel/src/read_body.php on line 180
--
Tyler Akins tyler@...

Here it is, at last. A short blurb:
A javascript plugin that automatically recovers emails lost to
SquirrelMail's security caching. If you leave the Compose page without
sending an email, then go back again, it will give you the option of
recovering your previous email.
Thanks,
-r3-

Anybody know if the "onSubmit" tag is HTML4 complient? I don't think it
will make a difference, but if it's javascript specific, I don't want to add
it in so we can still say we're 100% javascript free. :) Perhaps I'm just
being picky.. probably..
> Thanks a ton Luke, but I have an alternative to suggest.
>
> If you could set the hook so that multiple plugins could use the
> onSubmit, I think that would make life easier for other hackers. As an
> example, going on the CVS code, line 218-220:
>
> echo "\n<FORM name=compose action=\"compose.php\" METHOD=POST
> ENCTYPE=\"multipart/form-data\" onSubmit=\"";
> do_hook("compose_form");
> echo "\">\n";
>
> This way, I could put my function call in there, and others could use
> the onSubmit to call their functions as well. The only limitation would
> be that we would all need to end the function calls with semicolons so
> that we didn't step on one another's toes.
>
> If you don't think this will be important, feel free to chunk it out
> the window ;)
>
> I'll release the plugin as soon as I hear back from you.
>
> Again, thanks a bunch!
>
> -r3-
>
>
> Luke Ehresman wrote:
>>
>> Ok, I added a hook called "compose_form". do something like this:
>>
>> echo " onSubmit=\"function()\"";
>>
>> Luke
>>
>> >
>> > That would be line 218 in the latest CVS.
>> >
>> > As far as exactly how this could work, the only way that I could
>> > come up with was an onSubmit, but I'm really open to other ideas.
>> > All that this needs to do is to set one form value in left_main.php
>> > from 1 to 0. This is necessary when the email is sent so that we can
>> > distinguish between accidents and when you properly leave the
>> > Compose page by sending an email. As I say, an onSubmit would do
>> > just that, I just can't come up with any alternatives.
>> >
>> > Does anyone have any ideas?
>> >
>> > Thanks,
>> > Ray
>> >
>> >
>> > Luke Ehresman wrote:
>> >>
>> >> Can you send line numbers where you need the hook? Does it have to
>> >> be IN the form? Maybe a diff would be better if you could.
>> >>
>> >> >
>> >> > Hey, I posted this to the main list, but didn't get a response,
>> >> > so I'll take it to the correct list :)
>> >> >
>> >> > Would it be possible to put a hook into the compose page's form
>> >> > field, or just possibly an onSubmit hook? This would allow me to
>> >> > turn my jumble of code that I'm calling QuickSave into a plugin
>> >> > for everyone.
>> >> >
>> >> > Thanks!
>> >> > -r3-
>> >> >
>> >> > --
>> >> > SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
>> >> > Archives: http://www.squirrelmail.org/plug_archives.php
>> >> > Unsubscribe: http://www.squirrelmail.org/plug_admin.php
>> >>
>> >> --
>> >> SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
>> >> Archives: http://www.squirrelmail.org/plug_archives.php
>> >> Unsubscribe: http://www.squirrelmail.org/plug_admin.php
>> >
>> > --
>> > SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
>> > Archives: http://www.squirrelmail.org/plug_archives.php
>> > Unsubscribe: http://www.squirrelmail.org/plug_admin.php
>>
>> --
>> SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
>> Archives: http://www.squirrelmail.org/plug_archives.php
>> Unsubscribe: http://www.squirrelmail.org/plug_admin.php
>
> --
> SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
> Archives: http://www.squirrelmail.org/plug_archives.php
> Unsubscribe: http://www.squirrelmail.org/plug_admin.php

Thanks a ton Luke, but I have an alternative to suggest.
If you could set the hook so that multiple plugins could use the
onSubmit, I think that would make life easier for other hackers. As an
example, going on the CVS code, line 218-220:
echo "\n<FORM name=compose action=\"compose.php\" METHOD=POST
ENCTYPE=\"multipart/form-data\" onSubmit=\"";
do_hook("compose_form");
echo "\">\n";
This way, I could put my function call in there, and others could use
the onSubmit to call their functions as well. The only limitation would
be that we would all need to end the function calls with semicolons so
that we didn't step on one another's toes.
If you don't think this will be important, feel free to chunk it out the
window ;)
I'll release the plugin as soon as I hear back from you.
Again, thanks a bunch!
-r3-
Luke Ehresman wrote:
>
> Ok, I added a hook called "compose_form". do something like this:
>
> echo " onSubmit=\"function()\"";
>
> Luke
>
> >
> > That would be line 218 in the latest CVS.
> >
> > As far as exactly how this could work, the only way that I could come
> > up with was an onSubmit, but I'm really open to other ideas. All that
> > this needs to do is to set one form value in left_main.php from 1 to 0.
> > This is necessary when the email is sent so that we can distinguish
> > between accidents and when you properly leave the Compose page by
> > sending an email. As I say, an onSubmit would do just that, I just
> > can't come up with any alternatives.
> >
> > Does anyone have any ideas?
> >
> > Thanks,
> > Ray
> >
> >
> > Luke Ehresman wrote:
> >>
> >> Can you send line numbers where you need the hook? Does it have to be
> >> IN the form? Maybe a diff would be better if you could.
> >>
> >> >
> >> > Hey, I posted this to the main list, but didn't get a response, so
> >> > I'll take it to the correct list :)
> >> >
> >> > Would it be possible to put a hook into the compose page's form
> >> > field, or just possibly an onSubmit hook? This would allow me to
> >> > turn my jumble of code that I'm calling QuickSave into a plugin for
> >> > everyone.
> >> >
> >> > Thanks!
> >> > -r3-
> >> >
> >> > --
> >> > SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
> >> > Archives: http://www.squirrelmail.org/plug_archives.php
> >> > Unsubscribe: http://www.squirrelmail.org/plug_admin.php
> >>
> >> --
> >> SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
> >> Archives: http://www.squirrelmail.org/plug_archives.php
> >> Unsubscribe: http://www.squirrelmail.org/plug_admin.php
> >
> > --
> > SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
> > Archives: http://www.squirrelmail.org/plug_archives.php
> > Unsubscribe: http://www.squirrelmail.org/plug_admin.php
>
> --
> SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
> Archives: http://www.squirrelmail.org/plug_archives.php
> Unsubscribe: http://www.squirrelmail.org/plug_admin.php

Ok, I added a hook called "compose_form". do something like this:
echo " onSubmit=\"function()\"";
Luke
>
> That would be line 218 in the latest CVS.
>
> As far as exactly how this could work, the only way that I could come
> up with was an onSubmit, but I'm really open to other ideas. All that
> this needs to do is to set one form value in left_main.php from 1 to 0.
> This is necessary when the email is sent so that we can distinguish
> between accidents and when you properly leave the Compose page by
> sending an email. As I say, an onSubmit would do just that, I just
> can't come up with any alternatives.
>
> Does anyone have any ideas?
>
> Thanks,
> Ray
>
>
> Luke Ehresman wrote:
>>
>> Can you send line numbers where you need the hook? Does it have to be
>> IN the form? Maybe a diff would be better if you could.
>>
>> >
>> > Hey, I posted this to the main list, but didn't get a response, so
>> > I'll take it to the correct list :)
>> >
>> > Would it be possible to put a hook into the compose page's form
>> > field, or just possibly an onSubmit hook? This would allow me to
>> > turn my jumble of code that I'm calling QuickSave into a plugin for
>> > everyone.
>> >
>> > Thanks!
>> > -r3-
>> >
>> > --
>> > SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
>> > Archives: http://www.squirrelmail.org/plug_archives.php
>> > Unsubscribe: http://www.squirrelmail.org/plug_admin.php
>>
>> --
>> SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
>> Archives: http://www.squirrelmail.org/plug_archives.php
>> Unsubscribe: http://www.squirrelmail.org/plug_admin.php
>
> --
> SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
> Archives: http://www.squirrelmail.org/plug_archives.php
> Unsubscribe: http://www.squirrelmail.org/plug_admin.php

That would be line 218 in the latest CVS.
As far as exactly how this could work, the only way that I could come up
with was an onSubmit, but I'm really open to other ideas. All that this
needs to do is to set one form value in left_main.php from 1 to 0. This
is necessary when the email is sent so that we can distinguish between
accidents and when you properly leave the Compose page by sending an
email. As I say, an onSubmit would do just that, I just can't come up
with any alternatives.
Does anyone have any ideas?
Thanks,
Ray
Luke Ehresman wrote:
>
> Can you send line numbers where you need the hook? Does it have to be IN
> the form? Maybe a diff would be better if you could.
>
> >
> > Hey, I posted this to the main list, but didn't get a response, so I'll
> > take it to the correct list :)
> >
> > Would it be possible to put a hook into the compose page's form field,
> > or just possibly an onSubmit hook? This would allow me to turn my
> > jumble of code that I'm calling QuickSave into a plugin for everyone.
> >
> > Thanks!
> > -r3-
> >
> > --
> > SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
> > Archives: http://www.squirrelmail.org/plug_archives.php
> > Unsubscribe: http://www.squirrelmail.org/plug_admin.php
>
> --
> SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
> Archives: http://www.squirrelmail.org/plug_archives.php
> Unsubscribe: http://www.squirrelmail.org/plug_admin.php

I'm getting some sporadic errors when using delete, move next plugin with
1.0pre2. In 1.0pre1 it was completely broken, but now it seems to work
most of the time. Sometimes, when I clik on the delete, next link I get
the following error -
Warning: Wrong datatype in array_unique() call
in /usr/local/apache/htdocs/squirrel/src/read_body.php on line 176
Warning: Invalid argument supplied for foreach()
in /usr/local/apache/htdocs/squirrel/src/read_body.php on line 180
At this point, I can sometimes get SM to display a portion of the next
message header, but most times I need to sign out then back sign back in.
When I log back it it doesn't look like all the messages that should have
been deleted are. Once again this is sporadic, and normally happens if I
use delete, next a couple times in a row. A normal delete always works.
Any ideas?

Can you send line numbers where you need the hook? Does it have to be IN
the form? Maybe a diff would be better if you could.
>
> Hey, I posted this to the main list, but didn't get a response, so I'll
> take it to the correct list :)
>
> Would it be possible to put a hook into the compose page's form field,
> or just possibly an onSubmit hook? This would allow me to turn my
> jumble of code that I'm calling QuickSave into a plugin for everyone.
>
> Thanks!
> -r3-
>
> --
> SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
> Archives: http://www.squirrelmail.org/plug_archives.php
> Unsubscribe: http://www.squirrelmail.org/plug_admin.php

Hey, I posted this to the main list, but didn't get a response, so I'll
take it to the correct list :)
Would it be possible to put a hook into the compose page's form field,
or just possibly an onSubmit hook? This would allow me to turn my jumble
of code that I'm calling QuickSave into a plugin for everyone.
Thanks!
-r3-

Oh, I don't suppose I mentioned, specifically, what this actually does.
It saves (or QuickSaves! ;) a copy of your message every 10 seconds, and
if you leave the 'Compose' page for any reason, you can go right back to
it and you will be offered the opportunity to re-populate your email
with the last QuickSave.
Here are a couple of instances where I KNOW it won't work as described:
-- If you open the Compose form in another window (like Netscape's "Open
in New Window") then it can't communicate with the left_main.php script
to get the saved values. At least, I didn't make any attempt to make
that work ;) though you're welcome to!
-- If your folder list (left frame) is refreshed before you go back to
the Compose window, then your previous email will be lost.
It's pretty simple, really, and it's all client-side Javascript (no
cookies). That having been said, this will not work completely within
the current Plugin framework, since there's no 'compose_onsubmit' hook,
and that onSubmit change is what keeps it from remembering emails once
they've been sent.
So, there you have it. Doesn't work as a Plugin, but for those folks
(not unlike haptiK) that just wanted some code... well, here's some
code.
Thanks,
-r3-
Ray Black III wrote:
>
> I'd been wanting to do this very thing, but didn't really want to put
> the time into working it into SqMail's soon-to-be-defunt scheme. But
> since haptiK mentioned the use of Javascript, that got my mind working
> in all new directions, so I took an hour and cranked this out.
>
> I could put it in plugin form, if anyone felt it was necessary, but for
> me it was enough to just paste this into my compose.php and
> left_main.php. Oh, and I'm using 0.6pre1 (I think) but it should work
> for everybody at this point.
>
> All the code's below, and if someone wants to take the few minutes to
> put it into plugin form for me, feel free. I tested it in IE5 and NS4.75
> and it worked flawlessly in each. There are a couple of situations where
> your email could be lost (refreshing the entire window, for instance)
> but it'll work for some of the more annoying situations. Let me know of
> problems.
>
> Thanks,
> -r3-
>
> The only thing that needs to be put into code is one little string into
> the <FORM> tag on compose.php (that's line 155 in my compose.php) Just
> add this to that tag:
>
> onSubmit=\"QuickSave_activate(0)\"
>
> Then, at the bottom of left_main.php:
>
>
> // QuickSave addition
> // added 01.01.15 by allah@...
> echo "<form name=quicksave>\n";
> echo "<input type=hidden value=\"\" name=send_to>\n";
> echo "<input type=hidden value=\"\" name=send_to_cc>\n";
> echo "<input type=hidden value=\"\" name=send_to_bcc>\n";
> echo "<input type=hidden value=\"\" name=subject>\n";
> echo "<input type=hidden value=\"\" name=body>\n";
> echo "<input type=hidden value=\"0\" name=is_active>\n";
> echo "</form>\n";
> // end -- QuickSave addition
>
>
> at the bottom of compose.php:
>
>
> // QuickSave addition
> // added 01.01.15 by allah@...
> echo "<script language=Javascript>\n";
> echo "<!--\n";
> echo "function QuickSave_swap(from_form, to_form)\n";
> echo "{\n";
> echo " //alert('QuickSaving...');\n";
> echo " to_form.send_to.value = from_form.send_to.value;\n";
> echo " to_form.send_to_cc.value =
> from_form.send_to_cc.value;\n";
> echo " to_form.send_to_bcc.value =
> from_form.send_to_bcc.value;\n";
> echo " to_form.subject.value = from_form.subject.value;\n";
> echo " to_form.body.value = from_form.body.value;\n";
> echo " self.setTimeout('QuickSave_swap(document.compose,
> parent.left.document.quicksave)', $
> echo " return true;\n";
> echo "}\n";
> echo "\n";
> echo "function QuickSave_activate(do_we_save)\n";
> echo "{\n";
> echo " parent.left.document.quicksave.is_active.value =
> do_we_save;\n";
> echo " if ( do_we_save )\n";
> echo " self.setTimeout('QuickSave_activate(1)',
> 15000);\n";
> echo " return true;\n";
> echo "}\n";
> echo "\n";
> echo " // we check to see if we restore, but we only do this
> once\n";
> echo "if ( parent.left.document.quicksave.is_active.value == 1
> )\n";
> echo "{\n";
> echo " if ( confirm('There is a QuickSaved email!\\nDo you wish
> to restore it?') )\n";
> echo " {\n";
> echo " QuickSave_swap(parent.left.document.quicksave,
> document.compose);\n";
> echo " alert('Email restored!\\nPlease try to be more
> careful in the future! \;\)')$
> echo " }\n";
> echo "}\n";
> echo "\n";
> echo "self.setTimeout('QuickSave_swap(document.compose,
> parent.left.document.quicksave)', 10$
> echo "self.setTimeout('QuickSave_activate(1)', 15000);\n";
> echo "//-->\n";
> echo "</script>\n";
> // end -- QuickSave addition
>
>
> haptiK wrote:
> >
> > there was some talk a whyle ago about draft email's i think.. and i always
> > thought to myself how easy it could be for me to program a javascript
> > application that logs everything typed on the compose page and in the case
> > that is lost. you could restore the information for each input box..
> >
> > but then the comment was made to the list by one of the programmers for sm
> > that they wanted sm to work on all platforms and therefore stay away from
> > the dhtml or any such platform/browser dependant code.
> >
> > though focus(); is used and is pretty portable..
> >
> > i think it would be terribly easy to create this in javascript and make it
> > work across most if not all browsers so that a draft could sort of be
> > saved 'on-the-fly' incase of any mishaps.
> >
> > though a save draft button would be nice as well.
> >
> > i've been thinking about conjuring up this javascript idea in my own time
> > and planned to keep it secret till i know it worked.. but this could be a
> > good oppurtunity to talk about it.
> >
> > comments?
> >
> > - haptiK
> >
> > > Is there a plugin that allows you to save an email that you are writing
> > that
> > > is not finished? That would be a great addition.
> > >
> > > Jim Van Etten
> > >
> > >
> > >
> > > --
> > > SquirrelMail General Mailing List (http://www.squirrelmail.org)
> > > Archives: http://www.squirrelmail.org/list_archives.php
> > > Unsubscribe: http://www.squirrelmail.org/list_admin.php
> > >
> >
> > --
> > SquirrelMail General Mailing List (http://www.squirrelmail.org)
> > Archives: http://www.squirrelmail.org/list_archives.php
> > Unsubscribe: http://www.squirrelmail.org/list_admin.php
>
> --
> SquirrelMail Plugins Mailing List (http://www.squirrelmail.org)
> Archives: http://www.squirrelmail.org/plug_archives.php
> Unsubscribe: http://www.squirrelmail.org/plug_admin.php

I'd been wanting to do this very thing, but didn't really want to put
the time into working it into SqMail's soon-to-be-defunt scheme. But
since haptiK mentioned the use of Javascript, that got my mind working
in all new directions, so I took an hour and cranked this out.
I could put it in plugin form, if anyone felt it was necessary, but for
me it was enough to just paste this into my compose.php and
left_main.php. Oh, and I'm using 0.6pre1 (I think) but it should work
for everybody at this point.
All the code's below, and if someone wants to take the few minutes to
put it into plugin form for me, feel free. I tested it in IE5 and NS4.75
and it worked flawlessly in each. There are a couple of situations where
your email could be lost (refreshing the entire window, for instance)
but it'll work for some of the more annoying situations. Let me know of
problems.
Thanks,
-r3-
The only thing that needs to be put into code is one little string into
the <FORM> tag on compose.php (that's line 155 in my compose.php) Just
add this to that tag:
onSubmit=\"QuickSave_activate(0)\"
Then, at the bottom of left_main.php:
// QuickSave addition
// added 01.01.15 by allah@...
echo "<form name=quicksave>\n";
echo "<input type=hidden value=\"\" name=send_to>\n";
echo "<input type=hidden value=\"\" name=send_to_cc>\n";
echo "<input type=hidden value=\"\" name=send_to_bcc>\n";
echo "<input type=hidden value=\"\" name=subject>\n";
echo "<input type=hidden value=\"\" name=body>\n";
echo "<input type=hidden value=\"0\" name=is_active>\n";
echo "</form>\n";
// end -- QuickSave addition
at the bottom of compose.php:
// QuickSave addition
// added 01.01.15 by allah@...
echo "<script language=Javascript>\n";
echo "<!--\n";
echo "function QuickSave_swap(from_form, to_form)\n";
echo "{\n";
echo " //alert('QuickSaving...');\n";
echo " to_form.send_to.value = from_form.send_to.value;\n";
echo " to_form.send_to_cc.value =
from_form.send_to_cc.value;\n";
echo " to_form.send_to_bcc.value =
from_form.send_to_bcc.value;\n";
echo " to_form.subject.value = from_form.subject.value;\n";
echo " to_form.body.value = from_form.body.value;\n";
echo " self.setTimeout('QuickSave_swap(document.compose,
parent.left.document.quicksave)', $
echo " return true;\n";
echo "}\n";
echo "\n";
echo "function QuickSave_activate(do_we_save)\n";
echo "{\n";
echo " parent.left.document.quicksave.is_active.value =
do_we_save;\n";
echo " if ( do_we_save )\n";
echo " self.setTimeout('QuickSave_activate(1)',
15000);\n";
echo " return true;\n";
echo "}\n";
echo "\n";
echo " // we check to see if we restore, but we only do this
once\n";
echo "if ( parent.left.document.quicksave.is_active.value == 1
)\n";
echo "{\n";
echo " if ( confirm('There is a QuickSaved email!\\nDo you wish
to restore it?') )\n";
echo " {\n";
echo " QuickSave_swap(parent.left.document.quicksave,
document.compose);\n";
echo " alert('Email restored!\\nPlease try to be more
careful in the future! \;\)')$
echo " }\n";
echo "}\n";
echo "\n";
echo "self.setTimeout('QuickSave_swap(document.compose,
parent.left.document.quicksave)', 10$
echo "self.setTimeout('QuickSave_activate(1)', 15000);\n";
echo "//-->\n";
echo "</script>\n";
// end -- QuickSave addition
haptiK wrote:
>
> there was some talk a whyle ago about draft email's i think.. and i always
> thought to myself how easy it could be for me to program a javascript
> application that logs everything typed on the compose page and in the case
> that is lost. you could restore the information for each input box..
>
> but then the comment was made to the list by one of the programmers for sm
> that they wanted sm to work on all platforms and therefore stay away from
> the dhtml or any such platform/browser dependant code.
>
> though focus(); is used and is pretty portable..
>
> i think it would be terribly easy to create this in javascript and make it
> work across most if not all browsers so that a draft could sort of be
> saved 'on-the-fly' incase of any mishaps.
>
> though a save draft button would be nice as well.
>
> i've been thinking about conjuring up this javascript idea in my own time
> and planned to keep it secret till i know it worked.. but this could be a
> good oppurtunity to talk about it.
>
> comments?
>
> - haptiK
>
> > Is there a plugin that allows you to save an email that you are writing
> that
> > is not finished? That would be a great addition.
> >
> > Jim Van Etten
> >
> >
> >
> > --
> > SquirrelMail General Mailing List (http://www.squirrelmail.org)
> > Archives: http://www.squirrelmail.org/list_archives.php
> > Unsubscribe: http://www.squirrelmail.org/list_admin.php
> >
>
> --
> SquirrelMail General Mailing List (http://www.squirrelmail.org)
> Archives: http://www.squirrelmail.org/list_archives.php
> Unsubscribe: http://www.squirrelmail.org/list_admin.php

Just created a plugin that requires today's CVS (added a hook for it). It
shows what mail client the person used to send you a message. displays it
in the header (To, From, Subject) when reading the message.

> I've never done any programming, so of course, my changes do not provide
> the kind of configuation options that would be needed to make it a
> generalizable plug-in, nor did I do anything about the introduction of
> bizarre logic in the the original plug-in. (Right now, basically if
> bug_report_visible is not set (which it won't be because users can't set
> it) the link shows up.)
>
> But, I like this integrated Help Desk sort of thing a lot. Is anyone
> thinking about making a plug-in like this?
I am not aware of such a project, but if you like, you can go ahead and develop it further. I think that it would be best if sysadmins just do what you did and configured it to be their own type of Trouble Center. I can't really think of how I could make it a general-case type of plugin where each system could be radically different (their own FAQ/wiki/whatever, each system's amount of help provided, etc).
It is possible for you to write up a document and include it with the bug_report plugin to show how sysadmins can make the plugin tailored to their site, and how to have the messages go to them. In fact, if you do that, I'd be willing to change the plugin a bit to make it easier for the sysadmin to switch over to be his/her own Trouble Center.
--
Tyler Akins tyler@...

I finally installed the bug_fix plugin and really liked it. Except, of
course, I'm the only person among my 1,000 users who could actually use it.
So, I reworked it to become a "TroubleCenter" for my users. It collects
everything I would need to send to SM developers, but sends it to me
instead. It points them at my FAQ, which handles all the
organization-specific issues. I set it up to show by default in the menu
bar and remmed out the Display Preferences entry.
That way, I act as a filter and my users aren't posting things like "Why
doesn't my password work?" to the list.
I've never done any programming, so of course, my changes do not provide
the kind of configuation options that would be needed to make it a
generalizable plug-in, nor did I do anything about the introduction of
bizarre logic in the the original plug-in. (Right now, basically if
bug_report_visible is not set (which it won't be because users can't set
it) the link shows up.)
But, I like this integrated Help Desk sort of thing a lot. Is anyone
thinking about making a plug-in like this?

I've got Squirrelmail 1.0pre1 running with a courier-imap server and spell
check, clock, attachment common and Delete, Move, Next plugins installed.
The problem is when I click on the Delete & Next link, the message does not
get deleted and I get the following error at the bottom of the screen-
ERROR : Could not complete request.
Reason Given: Current box is selected READ-ONLY.
It also looks like when I move a message to another folder, it does not get
removed from the current folder (i.e. moving from inbox -> mailing list
folder copies to mailing list but does not remove from inbox).
Basically it looks like this plugin has a couple problems with 1.0. Has
anyone else noticed this?
Thanks in advance,
Chris

On Thu, Jan 11, 2001 at 11:17:14AM -0800, Melissa Anderson wrote:
Hello!
> We were testing the misbehavior of "replace" in Mac browsers a while ago.
> I wondered what ever came of that.
My complete bafflement as to why on earth it is doing that. :)
> * invoke the spell checker if all was well.
> * produce a polite message that says they need to upgrade their browser to
> enjoy the benefits of a spell checker.
> * produce a message that tells them they must enable javascript in their
> browser to enjoy the benefits of a spell checker.
Anything for a fellow educator. :)) Here's a version 0.2.1, which checks
for the browser version and disables SquirrelSpell under browsers which
are known not to work. The feature is called "Soup Nazi" since it doesn't
provide any polite messages, but disables SquirrelSpell entirely for bad
clients. :)
When you untar the plugin, there is config.php, at the bottom of which you
should find the "no_soup_for_you" variable, which disables spellchecker in
browsers which are known not to work. Currently, I know of four:
Mozilla/2 -- too old.
Mozilla/3 -- has several quirks which kill it
Opera -- known to choke
Macintosh -- disables Netscape-4.x on Macintosh due to strange quirks.
The last two are only there until I figure out what breaks the code. I am
getting an iMac soon, so I will have access to Netscape, and maybe I will
get around to debugging Opera.
If the browser's USER_AGENT matches the string in "no_soup_for_you", then
the "Check Spelling" button won't show up, and neither will the "Edit
Personal Dictionary" option be available under personal prefs.
Let me know how that works out.
> I want to mention again how much positive feedback I get on the spell
> checker, though. It's far better than anything available in other programs
> we've evaluated, and in current browsers, users really like it. I
> understand if it's not a high priority.
Thanks for kind words. :) The new version is attached, but I can't
PGP-sign this letter since I'm at work. You can also get SquirrelSpell
v0.2.1 from my web-site:
http://www.mricon.com/xmlparse/SM/index.xml
Sincerely,
Graf/Mr.Icon.
--
0> Konstantin Riabitsev: Nic Tech Admin
/ ) Web: http://www.nicodemusproject.com/
~ Carnivore: http://www.mricon.com/pgp/

I just updated the site. Thanks!
>>> I believe I posted a fixed password_forget plugin to the plugins
>>> mailing list. I also think the one on SquirrelMail has finally been
>>> updated, so try re-downloading it. If it doesn't have
>>> "login_username" anywhere in it, you have the old one. If needed, I
>>> can send it out on the plugins list again and CC you so that you
>>> should have one that works.
>
> To solve this, I am sending out the password_forget and focus_change
> plugins again. Download and install them if you are using the latest
> CVS (1.0pre2 or newer).
>
> --
> Tyler Akins tyler@...
--
_
. . Luke Ehresman - "Codito, ergo sum"
/ v \ luke@...
/( )\ http://www.css.tayloru.edu/~lehresma
^^ ^^