Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14389

Re: mail attachment

From Chuck Anderson <cycletourist@invalid.invalid>
Newsgroups comp.lang.php
Subject Re: mail attachment
Date 2014-10-23 23:59 -0600
Organization cycletourist.com
Message-ID <m2cpr3$kom$1@dont-email.me> (permalink)
References <m25ma0$bmf$1@news.albasani.net> <10481010.O8SIMfjRTL@PointedEars.de> <m2a83a$u0o$1@news.albasani.net>

Show all headers | View raw


Jan Novak wrote:
>
> So now i am at the same point as before, therefore below is my code.
> Rmember - for me is important, to get and save the attachment.
>
> Jan
>
 
[code snipped]

I didn't read all of your code, but will toss out this bit of advice.

I wrote an IMAP email client using Php - and I borrowed (script and 
concepts) from a script posted on the php.net site to write the parser 
for message parts, including attachments.  It's been working flawlessly 
for over a year.

http://php.net/manual/en/function.imap-fetchstructure.php#85486

Also, when I connect I use port 993 and these option flags: 
/imap/ssl/novalidate-cert

I convert all text message parts to utf-8 and save them to a database. I 
decode (base64) attachments and save them as a file.

Maybe something in all of that will help you.

-- 
*****************************
 Chuck Anderson • Boulder, CO
  http://cycletourist.com
 Turn Off, Tune Out, Drop In
*****************************

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

mail attachment Jan Novak <repcom@gmail.com> - 2014-10-21 15:14 +0200
  Re: mail attachment Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-10-22 20:42 +0200
    Re: mail attachment Jan Novak <repcom@gmail.com> - 2014-10-23 08:43 +0200
      Re: mail attachment Chuck Anderson <cycletourist@invalid.invalid> - 2014-10-23 23:59 -0600
      Re: mail attachment Jerry Stuckle <jstucklex@attglobal.net> - 2014-10-24 11:21 -0400
        Re: mail attachment Jan Novak <repcom@gmail.com> - 2014-10-27 09:23 +0100
          Re: mail attachment Jerry Stuckle <jstucklex@attglobal.net> - 2014-10-27 14:16 -0400
            Re: mail attachment Jan Novak <repcom@gmail.com> - 2014-10-28 11:58 +0100
              Re: mail attachment Jerry Stuckle <jstucklex@attglobal.net> - 2014-10-28 08:21 -0400
      Re: mail attachment Jerry Stuckle <jstucklex@attglobal.net> - 2014-10-27 16:44 -0400
        Re: mail attachment Jan Novak <repcom@gmail.com> - 2014-10-28 14:16 +0100
          SOLVED: mail attachment Jan Novak <repcom@gmail.com> - 2014-10-28 14:25 +0100
            Re: SOLVED: mail attachment Jerry Stuckle <jstucklex@attglobal.net> - 2014-10-28 09:35 -0400
  Re: mail attachment Jerry Stuckle <jstucklex@attglobal.net> - 2014-10-23 06:07 -0400

csiph-web