Your message dated Fri, 30 Dec 2016 22:06:32 +0000
with message-id <[email protected]>
and subject line Bug#849702: Removed package(s) from unstable
has caused the Debian Bug report #189247,
regarding gotmail: prompt for password
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
189247: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=189247
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gotmail
Version: 0.7.9-1
Severity: wishlist
Tags: patch

Hello,

        gotmail should ask for password instead of type the password in
the command line or even within the configuration file. I send you a
patch with a new option, -P, to prompt for password.

Kind regards,

        Sergio Rua


--- gotmail.old 2003-04-16 09:38:40.000000000 +0100
+++ gotmail     2003-04-16 09:37:17.000000000 +0100
@@ -34,6 +34,7 @@
 use English;
 use URI::Escape;
 use POSIX qw(tmpnam);
+use POSIX qw(:termios_h);
 use FileHandle;
 use strict;
 
@@ -147,6 +148,7 @@
        print "  -c, --config-file <file>  Specify config file (default 
~/.gotmailrc)\n";
        print "  -u, --username <name>     Specify your hotmail username 
(REQUIRED)\n";
        print "  -p, --password <pass>     Specify your hotmail password 
(REQUIRED)\n";
+       print "  -P,                       Prompt for password\n";
        print "  -d, --domain <domain>     Specify hotmail.com (default) or 
msn.com\n";
        print "  --proxy <host:port>       Specify an HTTP proxy to use. Format 
is\n" .
              "                              host:port - eg: localhost:3128\n";
@@ -296,11 +298,30 @@
                                dispUsageAndExit();
                        }
                }
+               elsif ($element =~ /^(-P)$/) {
+                       print "Password for ".$login.": ";
+                       my($t) = POSIX::Termios->new();
+                       $t->getattr();
+                       my($term_orig) = $t->getlflag();
+                       
+                       my($echo) = (&POSIX::ECHO|&POSIX::ECHOK);
+                       my($no_echo) = $term_orig;
+                       $no_echo &= ~$echo;
+                       $t->setlflag( $no_echo );
+                       $t->setattr( 0, &TCSANOW);
+
+                       $password = <STDIN>;
+
+                       $t->setlflag( $term_orig );
+                       $t->setattr( 0, &TCSANOW);
+               }
                elsif ($element =~ /^(-p|--password)$/i) {
-                       if (@ARGV) {
-                               $password = shift(@ARGV);
-                       } else {
-                               dispUsageAndExit();
+                       if (!$password) {
+                               if (@ARGV) {
+                                       $password = shift(@ARGV);
+                               } else {
+                                       dispUsageAndExit();
+                               }
                        }
                }
                elsif ($element =~ /^--proxy$/i) {


--- End Message ---
--- Begin Message ---
Version: 0.9.0-1+rm

Dear submitter,

as the package gotmail has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/849702

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to