Calling uid_store results in the error "wrong number of arguments (5 for 4)" In lib/em-imap/client.rb on line 342, uid_store calls store_internal("UID", "STORE", seq, name, value) which is only expecting 4 arguments.