~ubuntu-branches/ubuntu/karmic/edbrowse/karmic-updates

« back to all changes in this revision

Viewing changes to sendmail.c

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2007-05-09 07:33:04 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070509073304-ywptg9g6iiitsg17
Tags: 3.2.1-1
* New upstream version (3.2.1). Closes: #421451.
  - can fetch and execute a local javascript file
    if required by local html file.
  - provide COPYING and CHANGES files.
* debian/rules:
  - add CHANGES to dh_installchangelogs line.
  - add dh_installman entry to install the man page.
* debian/copyright: updated to include the COPYING file.
* debian/edbrowse.1: added a basic man page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 */
7
7
 
8
8
#include "eb.h"
9
 
#include "tcp.h"
 
9
 
10
10
#include <time.h>
11
11
 
12
12
char serverLine[MAXTTYLINE];
248
248
bool
249
249
mailConnect(const char *host, int port)
250
250
{
251
 
    long ip;
252
 
    ip = tcp_name_ip(host);
253
 
    if(ip == -1) {
 
251
    IP32bit ip = tcp_name_ip(host);
 
252
    if(ip == NULL_IP) {
254
253
        setError(intFlag ? opint : "cannot locate the mail server %s", host);
255
254
        return false;
256
255
    }
971
970
        setError("cannot send mail while in browse mode");
972
971
        return false;
973
972
    }
 
973
    if(cw->sqlMode) {
 
974
        setError("cannot send mail while in database mode");
 
975
        return false;
 
976
    }
974
977
    if(cw->dirMode) {
975
978
        setError("cannot send mail from directory mode");
976
979
        return false;