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


Groups > comp.lang.php > #14422

Re: SOLVED: mail attachment

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: SOLVED: mail attachment
Date 2014-10-28 09:35 -0400
Organization A noiseless patient Spider
Message-ID <m2o631$n72$1@dont-email.me> (permalink)
References (1 earlier) <10481010.O8SIMfjRTL@PointedEars.de> <m2a83a$u0o$1@news.albasani.net> <m2mare$ao1$1@dont-email.me> <m2o51s$4s4$1@news.albasani.net> <m2o5jc$5pk$1@news.albasani.net>

Show all headers | View raw


On 10/28/2014 9:25 AM, Jan Novak wrote:
> The problem was this:
> 
> 
> in pop the part will be returned as lower case, in imap (whyever) in
> uppercase. So i change this
> 
> if ( $part->disposition == "ATTACHMENT") {
> 
> to
> 
> if ( strtoupper($part->disposition) == "ATTACHMENT") {
> 
> 
> and it works !!!
> Thanks Jerry, you got me on the right track!!!!
> 
> Jan
> 

Ah, glad you found it.  I hadn't gotten that far yet.  This is where a
debugger really comes in handy :)

BTW - it doesn't matter WHERE in the object the value "attachment"
appears - what counts is the member name, which is "disposition" in both
cases.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

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