LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-26-2006, 11:02 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
Question php & imap: where's the Content-type of one attachment?


I'm trying to work with attachments.

As a test, I wrote the raw content of a multipart email in my web page.

Look at this section of the output:
Code:
------_=_NextPart_001_01C67E9D.4F953020 Content-Type: application/msword; name="Lab Capitulo 2.doc" Content-Transfer-Encoding: base64 Content-Description: Lab Capitulo 2.doc Content-Disposition: attachment; filename="Lab Capitulo 2.doc"
However, when I try to analize the structure of the part, all I get is name and filename (one dparameter and one parameter). Where is the Content-type in the part structure?

PS: oh, and part type shows up as 3 (application), but subtype is "id"

Last edited by eantoranz; 05-26-2006 at 11:05 AM.
 
Old 05-26-2006, 11:37 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
Got it. It's in subtype. I had a problem in my code that was overwriting the value I had gotten from subtype.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mime PHP attachment problems. atomicx Programming 1 08-03-2005 02:31 PM
Cannot not run executable jar file after set content type for download antony_csf Programming 1 12-08-2004 01:22 AM
use CGI vs. content-type: text/html johnensd Red Hat 0 05-10-2004 12:55 AM
IMAP works but IMAP TLS doesn't under PHP (Horde IMP) theparadigm Linux - Software 0 11-17-2003 01:35 AM
Content-Type: multipart/appledouble - Mail Problem WeNdeL Linux - Software 1 09-02-2003 03:04 PM


All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration