distinguish the input with multiple argus
807589Sep 17 2008 — edited Sep 17 2008hi all,
here i have a question about programming a SMTP email client using the command-line for the user input.
it requires distinguish the input with multiple argus, regardless upper case or lower case and the order of some critical key words, for example: "from:", "to:", "subject:", and "body:", this means the user input "ForM:" or "fOrM:" should recognize as a same "form:" string.
in addition, the command-line is as follow:
+java MyPMC To:xyz@gmail.com From:abc@yahoo.com Subject:Hi Body:See you at library a
and
java MyPMC froM:abc@yahoo.com TO:xyz@gmail.com suBjecT:Hi body:See you at library at 1
should work exactlly the same (assumming the java file name is MyPMC), how can i achieve this task.
please anyone can help me or give me some hints to do so.
thanks a lot.
Max