summaryrefslogtreecommitdiff
path: root/mailutils
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-04-01 22:56:30 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-04-03 01:33:55 +0200
commit6a3e01d5a9f979f7d6e52665c2bf6c74e2592980 (patch)
treeb7d40d6e0c6042f0d102101ff7b5784d2f0536ba /mailutils
parentfa9126e68904b16aee2a0fc47688ffe17403152a (diff)
downloadbusybox-w32-6a3e01d5a9f979f7d6e52665c2bf6c74e2592980.tar.gz
busybox-w32-6a3e01d5a9f979f7d6e52665c2bf6c74e2592980.tar.bz2
busybox-w32-6a3e01d5a9f979f7d6e52665c2bf6c74e2592980.zip
move help text from include/usage.src.h to debianutils/*.c e2fsprogs/*.c editors/*.c loginutils/*.c mailutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mailutils')
-rw-r--r--mailutils/mime.c27
-rw-r--r--mailutils/popmaildir.c34
2 files changed, 61 insertions, 0 deletions
diff --git a/mailutils/mime.c b/mailutils/mime.c
index 1e393ed31..0aff8b1d7 100644
--- a/mailutils/mime.c
+++ b/mailutils/mime.c
@@ -7,6 +7,33 @@
7 * 7 *
8 * Licensed under GPLv2, see file LICENSE in this source tree. 8 * Licensed under GPLv2, see file LICENSE in this source tree.
9 */ 9 */
10
11//usage:#define makemime_trivial_usage
12//usage: "[OPTIONS] [FILE]..."
13//usage:#define makemime_full_usage "\n\n"
14//usage: "Create multipart MIME-encoded message from FILEs\n"
15/* //usage: "Transfer encoding is base64, disposition is inline (not attachment)\n" */
16//usage: "\nOptions:"
17//usage: "\n -o FILE Output. Default: stdout"
18//usage: "\n -a HDR Add header. Examples:"
19//usage: "\n \"From: user@host.org\", \"Date: `date -R`\""
20//usage: "\n -c CT Content type. Default: text/plain"
21//usage: "\n -C CS Charset. Default: " CONFIG_FEATURE_MIME_CHARSET
22/* //usage: "\n -e ENC Transfer encoding. Ignored. base64 is assumed" */
23//usage: "\n"
24//usage: "\nOther options are silently ignored"
25
26//usage:#define reformime_trivial_usage
27//usage: "[OPTIONS] [FILE]..."
28//usage:#define reformime_full_usage "\n\n"
29//usage: "Parse MIME-encoded message\n"
30//usage: "\nOptions:"
31//usage: "\n -x PREFIX Extract content of MIME sections to files"
32//usage: "\n -X PROG ARGS Filter content of MIME sections through PROG"
33//usage: "\n Must be the last option"
34//usage: "\n"
35//usage: "\nOther options are silently ignored"
36
10#include "libbb.h" 37#include "libbb.h"
11#include "mail.h" 38#include "mail.h"
12 39
diff --git a/mailutils/popmaildir.c b/mailutils/popmaildir.c
index 6b733441f..642657919 100644
--- a/mailutils/popmaildir.c
+++ b/mailutils/popmaildir.c
@@ -9,6 +9,40 @@
9 * 9 *
10 * Licensed under GPLv2, see file LICENSE in this source tree. 10 * Licensed under GPLv2, see file LICENSE in this source tree.
11 */ 11 */
12
13//usage:#define popmaildir_trivial_usage
14//usage: "[OPTIONS] MAILDIR [CONN_HELPER ARGS]"
15//usage:#define popmaildir_full_usage "\n\n"
16//usage: "Fetch content of remote mailbox to local maildir\n"
17//usage: "\nOptions:"
18/* //usage: "\n -b Binary mode. Ignored" */
19/* //usage: "\n -d Debug. Ignored" */
20/* //usage: "\n -m Show used memory. Ignored" */
21/* //usage: "\n -V Show version. Ignored" */
22/* //usage: "\n -c Use tcpclient. Ignored" */
23/* //usage: "\n -a Use APOP protocol. Implied. If server supports APOP -> use it" */
24//usage: "\n -s Skip authorization"
25//usage: "\n -T Get messages with TOP instead of RETR"
26//usage: "\n -k Keep retrieved messages on the server"
27//usage: "\n -t SEC Network timeout"
28//usage: IF_FEATURE_POPMAILDIR_DELIVERY(
29//usage: "\n -F \"PROG ARGS\" Filter program (may be repeated)"
30//usage: "\n -M \"PROG ARGS\" Delivery program"
31//usage: )
32//usage: "\n"
33//usage: "\nFetch from plain POP3 server:"
34//usage: "\npopmaildir -k DIR nc pop3.server.com 110 <user_and_pass.txt"
35//usage: "\nFetch from SSLed POP3 server and delete fetched emails:"
36//usage: "\npopmaildir DIR -- openssl s_client -quiet -connect pop3.server.com:995 <user_and_pass.txt"
37/* //usage: "\n -R BYTES Remove old messages on the server >= BYTES. Ignored" */
38/* //usage: "\n -Z N1-N2 Remove messages from N1 to N2 (dangerous). Ignored" */
39/* //usage: "\n -L BYTES Don't retrieve new messages >= BYTES. Ignored" */
40/* //usage: "\n -H LINES Type first LINES of a message. Ignored" */
41//usage:
42//usage:#define popmaildir_example_usage
43//usage: "$ popmaildir -k ~/Maildir -- nc pop.drvv.ru 110 [<password_file]\n"
44//usage: "$ popmaildir ~/Maildir -- openssl s_client -quiet -connect pop.gmail.com:995 [<password_file]\n"
45
12#include "libbb.h" 46#include "libbb.h"
13#include "mail.h" 47#include "mail.h"
14 48