#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    60
    Rep Power
    17

    Imap_mail_move on POP3 mailbox


    Got most of my IMAP functionality done. Now...on to moving the messages.

    In reading about the imap_mail_move function, it is clear that trying to use it on a POP3 mailbox doesn't work.
    If you try it, you will get an error: "Copy not valid for POP3".

    You get a Copy not valid because imap_mail_move first copies the message then marks the messages delete flag to true.

    Is there a way around this at all? How can I move messages from my INBOX to another mailbox in my POP3 mailbox using imap functions?
  2. #2
  3. Wiser? Not exactly.
    Devshed God 2nd Plane (6000 - 6499 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    6,276
    Rep Power
    4193
    POP3 does not support folders as far as I am aware. There is only the "INBOX" which is the list of messages on the server. Folder support is something implemented on the client where the message is downloaded and then saved into the appropriate folder based on the user's settings.

    You just need to download the message using the appropriate functions, then save it into whichever folder you want to put it in, after that you can delete the message from the server if desired.
    Recycle your old CD's



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    60
    Rep Power
    17
    Care to elaborate on that? I am not sure what you are saying.
    If Horde has he capability to do this, why can't I?
  6. #4
  7. Wiser? Not exactly.
    Devshed God 2nd Plane (6000 - 6499 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    6,276
    Rep Power
    4193
    Basically what I am saying is that with pop3, folders/"mailboxes" is something you have to implement yourself. The server only has a list of messages, not any folder/structure functionality. You have to implement all that in your client application.
    Recycle your old CD's



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    60
    Rep Power
    17
    Originally Posted by kicken
    Basically what I am saying is that with pop3, folders/"mailboxes" is something you have to implement yourself. The server only has a list of messages, not any folder/structure functionality. You have to implement all that in your client application.
    I understood that point, but HOW would I do that? I have not seen any code showing how to do something like this.
  10. #6
  11. Wiser? Not exactly.
    Devshed God 2nd Plane (6000 - 6499 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    6,276
    Rep Power
    4193
    Creating the folder system is up to you. Do it however you want.

    As far as getting the messages and information from the server, see the user comments on http://us.php.net/imap for some easy to use pop3 functions.
    Recycle your old CD's



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    60
    Rep Power
    17
    Originally Posted by kicken
    Creating the folder system is up to you. Do it however you want.

    As far as getting the messages and information from the server, see the user comments on http://us.php.net/imap for some easy to use pop3 functions.
    That url didn't say anything about folders, nor tell me anything that the regular help doesn't.
  14. #8
  15. manwich
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2003
    Location
    Canadanistan
    Posts
    577
    Rep Power
    389
    He's said several times, POP3 does not use folders. Ever. No matter how you phrase the question the answer is: POP3 does not implement folders in any way, shape, or form. It is not in the POP3 spec.

    Mail clients create the illusion of folders after downloading the messages, and now so will you.
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    60
    Rep Power
    17
    Ok, I understand it.

    I know I can move the FILE because it would currently be in this FOLDER:
    /mail/my_server/help/cur

    And I can move it to this folder:
    /mail/my_server/help/.completed uploads/cur

    Now, how do I know what the FILE name is for the particular message?
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    60
    Rep Power
    17
    Ok, you open the courierimapuiddb file and look for the msgnum, then the filename will be there.
    i.e.
    Code:
    MSGNUM FILENAME
    ------ ---------------------------------------------------
    302    1275038115.H259797P9718.server.myhost.com,S=1536456
    304    1275051597.H812919P25674.server.myhost.com,S=936114

    Comments on this post

    • fubes2000 disagrees : why would there be and IMAP uid list if he is unable to use IMAP?

IMN logo majestic logo threadwatch logo seochat tools logo