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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 5 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC