MBOX-Line: From jsiegle at psu.edu  Tue Sep  2 12:04:12 2008
To: imap-protocol@u.washington.edu
From: Jonathan Siegle <jsiegle@psu.edu>
Date: Fri Jun  8 12:34:42 2018
Subject: [imap-protocol] Question about rename
Message-ID: <48BD8E2C.7060702@psu.edu>

I see in RFC 3501 in section 9:

command-auth    = append / create / delete / examine / list / lsub /
                   rename / select / status / subscribe / unsubscribe
                     ; Valid only in Authenticated or Selected state

command-nonauth = login / authenticate / "STARTTLS"
                     ; Valid only when in Not Authenticated state

command-select  = "CHECK" / "CLOSE" / "EXPUNGE" / copy / fetch / store /
                   uid / search
                     ; Valid only when in Selected state



I'm confused if I can do this from the client:

2 select foo
3 rename foo foo2
4 logout


or should I do this:

2 select foo
3 close
4 rename foo foo2
5 logout



Some servers don't like it when I do scenario #1.

Thanks,
Jonathan

