Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
03-26-2003, 09:58 PM
|
#1
|
Member
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55
Rep:
|
Squirrelmail Attachments corrupt
Help!... I'm a relative newbie with Squirrelmail. I'm running with RH 8.0. If I use the Squirrelmail web interface and attach a very simple text document and send it to another email account it seems to get there with no problems e.g
text.txt contains:
This is a simple test!
When I receive the email and open text.txt I can see the same text.
If I get a little more sophisticated and attach an image (image.png), then when I receive it on another email account it appears that the image has been corrupted. By corrupted I mean that the image is nolonger the same size and none of my graphical packages can open the file (it was OK before it was sent).
I am using courier-imap and qmail. If I use Mozilla or Netscape to send the image (rather than Squirrelmail) then it transfers fine, so it appears that this is just a php problem with squirrelmail?
I'd be extremely gratful if somebody could point me in the right direction???
Thankyou.
Hube 
|
|
|
03-27-2003, 02:32 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
Has the filesize of the attached image changed?
|
|
|
03-27-2003, 06:39 AM
|
#3
|
Member
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55
Original Poster
Rep:
|
Yes, it has gotten larger. To me that implies that the contents are either being replicated or extra characters are being injected. I've not managed too find anything else similar to this but a friend of mine also has the same problem so I know this isn't unique to me (which wouldn't be a first!)
Thanks.
Hube
|
|
|
03-27-2003, 06:41 AM
|
#4
|
Member
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55
Original Poster
Rep:
|
fwiw, package version in squirrelmail-1.2.10-1
|
|
|
03-27-2003, 07:25 AM
|
#5
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
I've been using SquirrelMail/Postfix/UW-IMAP for well over a year now and have never seen a problem like this so I don't think SM is suspect.
This morning I am in the middle of a qmail/courier/squirrelmail/LDAP(if I can get it figured out) setup so I'll see if I get the same results as you.
|
|
|
03-27-2003, 07:37 AM
|
#6
|
Member
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55
Original Poster
Rep:
|
That's good to hear. I have docs (rough notes) that I wrote if you need some help? I think the problem is with squirrelmail or courier-imap as I can send messages straight to qmail (smtp) from Mozilla or Netscape and they get there OK.
I'd be interested to hear what you find?
|
|
|
03-27-2003, 07:44 AM
|
#7
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
Ahhh.... ok.
Which IMAP server did you specify in your SquirrelMail config (run the SqurrelMail configure script, select option 2 'Server Settings')
Do all attachments get mangled? What happens if you change the extension of the attachment or delete the extension and then send it?
|
|
|
03-27-2003, 08:09 AM
|
#8
|
Member
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55
Original Poster
Rep:
|
The imap server is set to courier, I just double checked in the /etc/squirrelmail/config.php file.
If I strip the extension off a file and send it, it still gets mangled (it looks to be almost double the size!? (but not exactly)). If I send a very basic text string it looks to be OK, but a longer plain text file also gets corrupted. If I do a file comparison, it's taking blocks of the original text file and replicating them (looks to be random)!
|
|
|
03-27-2003, 08:27 AM
|
#9
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
OK.... let's try and trace this out.
Compose a new message, add an attachment, but don't send it. After you have added the atty it should live in the $data directory and will remain there until the message is sent. Go there and see if the file you uploaded has changed in any form.
|
|
|
03-27-2003, 10:02 AM
|
#10
|
Member
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55
Original Poster
Rep:
|
OK... sorry for the delay had to pop out for a minute...
I upload the document to the email but didn't send the email, I then move in to /var/spool/squirrelmail/attach and do a long listing: ls -lart, I see that the timestamp on the file is approximately the same as the point when I uploaded the file so I believe I am looking at the uploaded file. I then ftp the original file to the same location and look at the respective file sizes, once again the uploaded file is corrupted. I also did a comparison and see that the it's corrupted in a simlar fashion to what I reported above.
So my conclusion is that the uploading of the file using squirrelmail causes the corruption. Do you have any thoughts?
I really appreciate you help. Thank you
Hube
|
|
|
03-27-2003, 11:04 AM
|
#11
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
Getting stumped here...
|
|
|
03-27-2003, 12:07 PM
|
#12
|
Member
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55
Original Poster
Rep:
|
Yeah me to... Generally I can work out these things but this time I'm bashing my head against a brick wall... and it hurts!
Wondering if any of the squirrelmail folks read these posts?
The fact that I'm not alone since a friend who uses sendmail, UW-imap and the same version of squirrelmail is seeing the same problem makes me curious why others have not seen the same issue. I did see a post regarding plugins. I wonder if the existance of a plugin is causing issues, guess I should remove all plugins, try again and then add them back in one by one?
Thoughts?
|
|
|
03-27-2003, 12:30 PM
|
#13
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
Is your friend also running his setup on RH8.0?
I've run this setup on SuSE 7.3/8.1, Slackware 8.1, debian 3.0.1 with no problems...
|
|
|
03-27-2003, 12:49 PM
|
#14
|
Member
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55
Original Poster
Rep:
|
Yes RH 8.0, with the standard RH install, however, they also provided an upgrade to the version I mentioned above based on I believe a security issue.
I don't find anything useful by doing a google search
I think something in the php file may be responsible. Do you know what version you have installed with Debian?
|
|
|
03-27-2003, 01:18 PM
|
#15
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
Running SM 1.2.10, php 4.3.1, apache 1.3.27.
Check your httpd.conf file to make sure you're handling php/php3 extensions properly.
(Quickly running out of things to blame!) 
|
|
|
All times are GMT -5. The time now is 04:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|