From ec8a999ce9563e323b6d22737046167e40ae9bfe Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 22 Mar 2010 10:30:47 +0000 Subject: [PATCH] IMAP: detect unsupported parameter git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@966 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/imap/ImapConnection.java | 2 ++ src/java/davmailmessages.properties | 1 + src/java/davmailmessages_fr.properties | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 6db2e048..9e55682d 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -608,6 +608,8 @@ public class ImapConnection extends AbstractConnection { os.write(baos.toByteArray()); os.flush(); buffer.setLength(0); + } else { + throw new DavMailException("EXCEPTION_UNSUPPORTED_PARAMETER", param); } } } diff --git a/src/java/davmailmessages.properties b/src/java/davmailmessages.properties index 4eea4566..0b826317 100644 --- a/src/java/davmailmessages.properties +++ b/src/java/davmailmessages.properties @@ -24,6 +24,7 @@ EXCEPTION_INVALID_MESSAGE_URL=Invalid message URL: {0} EXCEPTION_INVALID_RECIPIENT=Invalid recipient: {0} EXCEPTION_INVALID_REQUEST=Invalid request: {0} EXCEPTION_INVALID_SEARCH_PARAMETERS=Invalid search parameters: {0} +EXCEPTION_UNSUPPORTED_PARAMETER=Unsupported parameter: {0} EXCEPTION_NETWORK_DOWN=All network interfaces down or host unreachable ! EXCEPTION_UNABLE_TO_CREATE_MESSAGE=Unable to create message {0}: {1}{2}{3} EXCEPTION_UNABLE_TO_GET_FOLDER=Unable to get folder at {0} diff --git a/src/java/davmailmessages_fr.properties b/src/java/davmailmessages_fr.properties index 224f92e1..365e4e27 100644 --- a/src/java/davmailmessages_fr.properties +++ b/src/java/davmailmessages_fr.properties @@ -245,4 +245,5 @@ UI_CALDAV_ALARM_SOUND_HELP=Convertir les alarmes Caldav en alarmes sonores suppo UI_FORCE_ACTIVESYNC_UPDATE=Forcer ActiveSync : UI_FORCE_ACTIVESYNC_UPDATE_HELP=Forcer la mise à jour des évènements Caldav pour les appareils connectés via ActiveSync UI_DEFAULT_DOMAIN=Domaine par défaut : -UI_DEFAULT_DOMAIN_HELP=Nom du domaine windows par défaut \ No newline at end of file +UI_DEFAULT_DOMAIN_HELP=Nom du domaine windows par défaut +EXCEPTION_UNSUPPORTED_PARAMETER=Paramètre non supporté : {0} \ No newline at end of file