aboutsummaryrefslogtreecommitdiffstats
path: root/README
Commit message (Collapse)AuthorAgeFilesLines
* Add fm_realpath(): a malloc()ating realpath() wrapper.Matthias Andree2020-05-041-1/+3
|
* Fix typo in fetchmail's name.Matthias Andree2019-10-121-1/+1
|
* Prepare for 6.4.0 release.Matthias Andree2019-09-271-1/+0
| | | | This entails recording new line numbers i
#!/usr/bin/perl

BEGIN { $SIG{'__WARN__'} = sub {};};

$hostname = "criens.u-psud.fr";
$username = "p99dreyf";
$passwd = "xxxxxxxx";
$command = "exec ~/bin/imapd";

use Net::Telnet ();
$host = new Net::Telnet (Timeout => 10,
                         Port => 23,
                         Prompt => '/p99dreyf>\s?$/',
                         Cmd_remove_mode => 1);

$host->option_accept(Dont => &Net::Telnet::TELOPT_ECHO,
                     Wont => &Net::Telnet::TELOPT_ECHO);
                     open (FILE,">log");
$host->dump_log("log2");
$host->input_log("log3");
## Issue some commands.
$host->open($hostname);
#$host->login($username, $passwd);
$host->waitfor('/login:\s?$/');
$host->print("$username");
$host->waitfor('/Password:\s?$/');
$host->print("$passwd");
$host->waitfor('/p99dreyf>\s?$/');

$host->print("$command");
$strip=1;
while ($strip) {
        $greeting=$host->getline();
   if ($greeting=~/^\* PREAUTH.*$/) { print "$greeting"; $strip=0;};
}
    do {
      do {
        $cmd=<STDIN>;
        chop $cmd;
      } while ($cmd !~/[A-Za-z0-9]/);
      $host->print("$cmd");
      print FILE ">>$cmd<<\n";
      do {
        $line=$host->getline();
        chop($line);
        print "$line\n";
        print FILE "<<$line<<\n";
      } while (($line!~/^[A-Za-z0-9]+ (OK|BAD|Expunge).*$/) &&
                ($line!~/^\* BAD.*$/));
      print FILE "--next cmd\n";
    } while ($line!~/^[A-Za-z0-9]+ OK LOGOUT.*$/);

exit;
/span>1-0/+2 | | | | svn path=/trunk/; revision=1715 * Note OS/2 port.Eric S. Raymond1998-01-181-0/+3 | | | | svn path=/trunk/; revision=1588 * Doc fix.Eric S. Raymond1997-12-181-2/+2 | | | | svn path=/trunk/; revision=1578 * Note that GSSAPI is supported.Eric S. Raymond1997-12-151-2/+2 | | | | svn path=/trunk/; revision=1571 * Typo fix.Eric S. Raymond1997-11-291-1/+1 | | | | svn path=/trunk/; revision=1544 * Integrated RPA support.Eric S. Raymond1997-09-301-2/+3 | | | | svn path=/trunk/; revision=1444 * More portation changes.Eric S. Raymond1997-09-171-4/+7 | | | | svn path=/trunk/; revision=1362 * First round of changes for OPIE support.Eric S. Raymond1997-07-171-3/+6 | | | | svn path=/trunk/; revision=1173 * We run on AmigaOS.Eric S. Raymond1997-07-031-1/+1 | | | | svn path=/trunk/; revision=1146 * Reorganization for Web page structure.Eric S. Raymond1997-06-131-99/+10 | | | | svn path=/trunk/; revision=1093 * Add exim 501 response.Eric S. Raymond1997-06-021-6/+7 | | | | svn path=/trunk/; revision=1055 * Added blurbs on new features.Eric S. Raymond1997-05-281-1/+9 | | | | svn path=/trunk/; revision=1045 * Caseblind comparison of names, more explicitness about Kerberos.Eric S. Raymond1997-05-131-1/+1 | | | | svn path=/trunk/; revision=988 * Added forcecr option.Eric S. Raymond1997-04-171-2/+2 | | | | svn path=/trunk/; revision=963 * These features are in.Eric S. Raymond1997-04-011-1/+3 | | | | svn path=/trunk/; revision=935 * Aded the `received' option.Eric S. Raymond1997-02-141-4/+6 | | | | svn path=/trunk/; revision=878 * Added RFC1985 ETRN support.Eric S. Raymond1997-02-101-0/+2 | | | | svn path=/trunk/; revision=861 * Add stripcr option.Eric S. Raymond1997-01-301-0/+3 | | | | svn path=/trunk/; revision=842 * Break down features by major release.Eric S. Raymond1997-01-221-19/+22 | | | | svn path=/trunk/; revision=807 * Remove obsolete caveat.Eric S. Raymond1997-01-221-4/+0 | | | | svn path=/trunk/; revision=806 * General ESMTP support seems pretty good now.Eric S. Raymond1997-01-221-14/+16 | | | | svn path=/trunk/; revision=805 * Support for EHLO and 8BITMIME extension.Eric S. Raymond1997-01-221-0/+2 | | | | svn path=/trunk/; revision=803 * Update beta list number.Eric S. Raymond1997-01-211-1/+1 | | | | svn path=/trunk/; revision=797 * RPOP support is back.Eric S. Raymond1997-01-201-1/+3 | | | | svn path=/trunk/; revision=791 * Ready to ship to George Sipe.Eric S. Raymond1997-01-171-1/+1 | | | | svn path=/trunk/; revision=783