php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3398 imap_append not implemented
Submitted: 2000-02-03 21:41 UTC Modified: 2000-07-25 12:27 UTC
From: mike at bedarra dot com Assigned:
Status: Closed Package: IMAP related
PHP Version: 3.0.14 OS: Linux (RHat 6.1)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mike at bedarra dot com
New email:
PHP Version: OS:

 

 [2000-02-03 21:41 UTC] mike at bedarra dot com
 Calling imap_append fails to append the message. The server logs show no APPEND request being received. Also imap_append is returning null rather than a boolean.

Using imap 4.7a.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-29 10:03 UTC] hholzgra at cvs dot php dot net
Example code please?

i suspect you just used the mailbox name as
mbox parameter instead of the full qualified
form "{servername}path_to_mailbod}"

see example below:

<?php
  $stream = imap_open("{your.imap.host}INBOX.Drafts","username", "password");

  $check = imap_check($stream);
  print "Msg Count before append: ". $check->Nmsgs."\n";

  if(! imap_append($stream,"{your.imap.host}INBOX.Drafts"
      ,"From: me@my.host\r\n"
      ."To: you@your.host\r\n"
      ."Subject: test\r\n"
      ."\r\n"
      ."test\r\n"
      ))
    echo "Append faild: ".imap_last_error()."\n";

  $check = imap_check($stream);
  print "Msg Count after append : ". $check->Nmsgs."\n";

  imap_close($stream);
?>


 [2000-07-25 12:27 UTC] hholzgra@php.net
no feedback and not reproduceable
in latest php 3 and 4
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Dec 03 06:03:43 2021 UTC