From: Tony <sm...@am...> - 2006-06-27 03:16:30
|
-----Original Message----- From: Tomas Kuliavas [mailto:to...@us...] Sent: Wednesday, June 21, 2006 2:28 PM To: Tony Fong Cc: squ...@li... Subject: Re: [SM-PLUGINS] newbie with tnef problem >>>>>> >>>>>> Hi All, >>>>>> >>>>>> I'm new to the world of Linux and was so excited to be able to >>>>>> build my first Linux mail server. When all was done, I only had >>>>>> time to do basic testing like sending/receiving, can I log into >>>>>> SM. I didn't have the time to do intense testing do to the situation. >>>>>> >>>>>> The problem that I am encountering now is those pesky tnef >>>>>> attachments. >>>>>> >>>>>> Normal attachments are ok, I can open and download those. I >>>>>> installed the attachment_tnef plugin and I'm able to view what's >>>>>> in the win.dat file. >>>>>> But when I try to download it, I get this error: >>>>>> >>>>>> >>>>>> ERROR: Could not complete request. >>>>>> Query: SELECT "" >>>>>> Reason Given: >>>>>> Invalid mailbox name >>>>>> >>>>>> I searched and can barely find anything about tnef errors. I'm >>>>>> using Dovecot with it configured to use Dovecot and have the >>>>>> address book and prefs in mysql on SM 1.4.6. >>> >>>>>> These are the plugins that I'm using. >>>>>> ... >>>>>> >>>>>> What can be causing this error? It's almost as if I'm the only >>>>>> one that has this problem because I searched and nobody has ever >>>>>> talked about this. >>>>>> >>>>>> Can anyone please help me out? I was so excited when I built my >>>>>> first Linux mail box but this is bumming me out. >>>>> >>>>> Provide more information about used PHP version, used >>>>> attachment_tnef plugin version and all modifications made in >>>>> SquirrelMail scripts. >>>>> >>>> I'm using PHP 5.1.4-1, attachment_tnef 0.70. I didn't change much >>>> for the scripts. In the login.php, I changed the part where it >>>> displays the version # in the login screen. This should only change >>>> what is displayed in the login screen below the logo. The other >>>> things I changed was to link the prefs & address book to the MySQL >>>> database, the logo, and the url under the sign out link. These can >>>> all be done using conf.pl. I don't know how to code PHP so I don't >>>> change anything that I don't recognize or don't have guidance on. >>>> >>>> The other thing I installed is pear Auth. I probably only had to >>>> install the db file but I'm a newbie so I'm not sure. >>>> I needed the db file to get it linked properly to MySQL. This >>>> wasn't mentioned anywhere. I had to examine the error output and >>>> thanks to the Linux community, was able to figure it out. But this >>>> tnef error just doesn't give me enough info. I searched for days >>>> and there are barely anything on this error. I don't know where to >>>> look. I checked the SquirrelMail site regarding 'invalid mailbox >>>> name' but it doesn't have anything about my error. >>>> >>>> I hope this >>>> problem can be solved and maybe even posted somewhere for others >>>> who encounters this problem. It's fustrating when there's barely >>>> anything on this error. >>> >>> Make sure that you can reproduce your error in standard SquirrelMail >>> installation with only attachment_tnef plugin enabled or show your >>> winmail.dat file. >>> >>> I can't reproduce error with tnef attachments used for testing. >>> mailbox parameter is set and attachments are downloaded correctly. >>> >>> -- >>> Tomas >> >> Tomas, >> >> I don't have a spare machine lying around to do my testing right now, >> but I think I know what happened. >> >> I didn't start out with 1.4.6 on a fresh install of SM. I upgraded to >> it. >> I think when I did this upgrade, some of the configuration got messed >> up or something. I did something like apt-get upgrade and it suppose >> to upgrade without any problems. This happened to me few days ago >> with Dovecot. After I upgraded it, no one could pop anymore, I kept >> getting errors in the mail log. I checked the configs and all was the >> same as when I first configed it. After about an hour of hair >> pulling, I just reinstalled and configured it and all was ok again. I >> also am now encountering a problem with html_mail after I unselected >> it to see if there were plugin conflicts with attachment_tnef. When I >> selected it back, the spell checker isn't working right. It'll spell >> check, but it spell checks nothing, even when something is typed in, >> it's just blank. I tried redownloading it and installed the newly >> downloaded one but it's screwed, so I'm not using it right now. >> >> I think I need to reinstall SM but someone is using notes and I >> believe this is stored in the MySQL db. My question is do I only need >> to backup the SQL db since all the prefs and address book is stored >> in SQL? What about calendar? I'm using the SQL backend for that. Is >> there any resyncing of the DBs that would have to be done so that the >> users will have their prefs and address book up right after I >> reinstall SM? >> >> I don't know if this a new bug or if this a rare situation that's >> being worked on in the new version or an administrator problem. If >> this is an unknown bug, let me know so I can report it. >> >> Thanks though, Tomas, for your help. >> >> Tony > > You don't need a separate machine to test SquirrelMail. get standard > SquirrelMail package from http://www.squirrelmail.org, install it in > different location on same server and test it. > > Please understand that when you talk about SquirrelMail 1.4.6, we > assume standard SquirrelMail version and not some version modified by > third party. Please make sure that you can reproduce your issue in > standard SquirrelMail package with only tnef plugin enabled. > > If you use some PHP cache or optimizer, make sure that you restart > apache after php scripts are upgraded. > > -- > Tomas > > > -- > squirrelmail-plugins mailing list > Posting Guidelines: > http://www.squirrelmail.org/wiki/MailingListPostingGuidelines > List Address: squ...@li... > List Archives: > http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins > List Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3931 > List Info: > https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins > > ---------------------------------------------------------------- > > Tomas, > > OK. I downloaded the tar file from the SquirrelMail.org site and > installed it. I followed what the quick & dirty said to do. > Attachment_tnef was the first and only plugin that I installed and it > still gave me the same error. > Could it be because I'm using maildir format or the location it's > installed in? > This is really fustrating. First step in debugging the problem is to enable display of php errors and set error_reporting to E_ALL. Test your php settings (http://www.squirrelmail.org/wiki/TestPHPSettings) If you have register_long_arrays option set to off, turn it on or find "$HTTP_SERVER_VARS['QUERY_STRING']" text in tnef.php file and replace it with " $_SERVER['QUERY_STRING']" -- Tomas ------------------------------------------------------ This is what I get in the begug mode: Notice: Undefined variable: HTTP_SERVER_VARS in /usr/share/squirrelmail/plugins/attachment_tnef/tnef.php on line 171 Thanks I also want to thank Paul for helping me. Tony |