66 | | /* |
67 | | |
68 | | |
69 | | for (optind = 0; optind < argv.length; optind++) { |
70 | | if (argv[optind].equals("-T")) { |
71 | | protocol = argv[++optind]; |
72 | | } else if (argv[optind].equals("-H")) { |
73 | | host = argv[++optind]; |
74 | | } else if (argv[optind].equals("-U")) { |
75 | | user = argv[++optind]; |
76 | | } else if (argv[optind].equals("-P")) { |
77 | | password = argv[++optind]; |
78 | | } else if (argv[optind].equals("-M")) { |
79 | | mailhost = argv[++optind]; |
80 | | } else if (argv[optind].equals("-f")) { |
81 | | record = argv[++optind]; |
82 | | } else if (argv[optind].equals("-s")) { |
83 | | subject = argv[++optind]; |
84 | | } else if (argv[optind].equals("-o")) { // originator |
85 | | from = argv[++optind]; |
86 | | } else if (argv[optind].equals("-c")) { |
87 | | cc = argv[++optind]; |
88 | | } else if (argv[optind].equals("-b")) { |
89 | | bcc = argv[++optind]; |
90 | | } else if (argv[optind].equals("-L")) { |
91 | | url = argv[++optind]; |
92 | | } else if (argv[optind].equals("-d")) { |
93 | | debug = true; |
94 | | } else if (argv[optind].equals("--")) { |
95 | | optind++; |
96 | | break; |
97 | | } else if (argv[optind].startsWith("-")) { |
98 | | System.out |
99 | | .println("Usage: sendhtml [[-L store-url] | [-T prot] [-H host] [-U user] [-P passwd]]"); |
100 | | System.out |
101 | | .println("\t[-s subject] [-o from-address] [-c cc-addresses] [-b bcc-addresses]"); |
102 | | System.out |
103 | | .println("\t[-f record-mailbox] [-M transport-host] [-d] [address]"); |
104 | | System.exit(1); |
105 | | } else { |
106 | | break; |
107 | | } |
108 | | } |
109 | | */ |