Skip to content

Commit

Permalink
Merge pull request #99 from mpscholten/add-move-to-upstream
Browse files Browse the repository at this point in the history
Added support for IMAP move operation
  • Loading branch information
qnikst authored Aug 15, 2024
2 parents 119deab + 27b03b4 commit 118e91d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Network/HaskellNet/IMAP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Network.HaskellNet.IMAP
, list, lsub, status, append, appendFull
-- ** selected state commands
, check, close, expunge
, search, store, copy
, search, store, copy, move
, idle
-- * fetch commands
, fetch, fetchHeader, fetchSize, fetchHeaderFields, fetchHeaderFieldsNot
Expand Down Expand Up @@ -457,6 +457,9 @@ copyFull conn uidStr mbox =
copy :: IMAPConnection -> UID -> MailboxName -> IO ()
copy conn uid mbox = copyFull conn (show uid) mbox

move :: IMAPConnection -> UID -> MailboxName -> IO ()
move conn uid mboxname = sendCommand conn ("UID MOVE " ++ show uid ++ " " ++ mboxname) pNone

----------------------------------------------------------------------
-- auxialiary functions

Expand Down

0 comments on commit 118e91d

Please sign in to comment.