commit 4c4aa3b79a56b0faf82b16f2659e8e52a24a12e5
Author: Oswald Buddenhagen <o...@kde.org>
Date:   Sun Feb 7 17:36:38 2010 +0100

    add -P option to isync wrapper
    
    not really a backwards compat option, but whatever ...
    
    based on a patch submitted long ago by "nobody".
    BUG: 1433532

 src/compat/isync.1 |    3 +++
 src/compat/main.c  |    8 +++++++-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/compat/isync.1 b/src/compat/isync.1
index 399b0a3..e1633c3 100644
--- a/src/compat/isync.1
+++ b/src/compat/isync.1
@@ -105,6 +105,9 @@ Specifies the hostname of the IMAP server
 \fB-u\fR, \fB--user\fR \fIuser\fR
 Specifies the login name to access the IMAP server (default: $USER)
 .TP
+\fB-P\fR, \fB--pass\fR \fIpassword\fR
+Specifies the password to access the IMAP server (prompted for by default)
+.TP
 \fB-M\fR, \fB--maildir\fR \fIdir\fR
 Specifies the location for your local mailboxes.
 .TP
diff --git a/src/compat/main.c b/src/compat/main.c
index 3255bb5..0f1be9e 100644
--- a/src/compat/main.c
+++ b/src/compat/main.c
@@ -60,6 +60,7 @@ struct option Opts[] = {
        {"debug", 0, NULL, 'D'},
        {"quiet", 0, NULL, 'q'},
        {"user", 1, NULL, 'u'},
+       {"pass", 1, NULL, 'P'},
        {"version", 0, NULL, 'v'},
        {"verbose", 0, NULL, 'V'},
        {0, 0, 0, 0}
@@ -100,6 +101,7 @@ PACKAGE " " VERSION " - mbsync wrapper: IMAP4 to maildir 
synchronizer\n"
 "  -s, --host HOST     IMAP server address\n"
 "  -p, --port PORT     server IMAP port\n"
 "  -u, --user USER     IMAP user name\n"
+"  -P, --pass PASSWORD IMAP password\n"
 "  -c, --config CONFIG read an alternate config file (default: ~/.isyncrc)\n"
 "  -D, --debug         print debugging messages\n"
 "  -V, --verbose               verbose mode (display network traffic)\n"
@@ -182,7 +184,7 @@ main( int argc, char **argv )
        maildir = "~";
        xmaildir = Home;
 
-#define FLAGS "wW:alCLRc:defhp:qu:r:F:M:1I:s:vVD"
+#define FLAGS "wW:alCLRc:defhp:qu:P:r:F:M:1I:s:vVD"
 
        mod = all = list = ops = writeout = Quiet = Verbose = Debug = 0;
 #if HAVE_GETOPT_LONG
@@ -266,6 +268,10 @@ main( int argc, char **argv )
                        global.user = optarg;
                        mod = 1;
                        break;
+               case 'P':
+                       global.pass = optarg;
+                       mod = 1;
+                       break;
                case 'D':
                        Debug = 1;
                        break;

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to