This file is indexed.

/usr/include/dacs/email.h is in libdacs-dev 1.4.28b-3ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
 * Copyright (c) 2003-2012
 * Distributed Systems Software.  All rights reserved.
 * See the file LICENSE for redistribution information.
 *
 * $Id: email.h 2594 2012-10-19 17:28:49Z brachman $
 */

#ifndef _EMAIL_H_
#define _EMAIL_H_

typedef enum {
  CANON_SIMPLE  = 0,
  CANON_RELAXED = 1,
  CANON_NONE    = 2,
  CANON_DEFAULT = CANON_SIMPLE
} Canon_alg;

typedef struct Email_command_arg {
  int nfields;
  Dsvec *fields;
} Email_command_arg;

/*
 * A specification of how a mailer (MTA) is to be invoked.
 */
typedef struct Email_mailer {
  char *prog;
  Dsvec *argv;
  Dsvec *command_args;
  Dsvec *env;
} Email_mailer;

typedef struct Email_header {
  char *name;
  char *value;
} Email_header;

typedef struct Email_dkim {
  Canon_alg canon_alg;
  Ds *canon_headers;
  Ds *canon_body;
  Ds *canon_mesg;
  char *dkim_signature_header_value;	/* DKIM-Signature */
  Dsvec *headers;
} Email_dkim;

typedef struct Email_message {
  Email_mailer *mailer;
  Dsvec *headers;			/* Vector of (Email_header *) */
  Ds *body;
  Ds *mesg;					/* The ready-to-send message */
  Email_dkim *dkim;
  int finalized;
} Email_message;

#ifdef __cplusplus
extern "C" {
#endif

extern Email_message *email_create(char *mailer, Dsvec *mailer_args,
								   Dsvec *headers, Ds *body,
								   Email_dkim *dkim);
extern Email_message *email_init(char *prog_path);
extern Email_command_arg *email_add_mailer_arg(Email_message *em,
											   unsigned int nfields, ...);
extern Dsvec *email_add_header(Email_message *em, Email_header *eh);
extern Email_header *email_new_header(char *name, char *value);
extern Email_header *email_dup_header(Email_header *old_eh);
extern char *email_add_env(Email_message *em, char *name, char *value);
extern int email_append_to_body(Email_message *em, char *str,
								int do_transform, Kwv *kwv);
extern int email_finalize(Email_message *em, Email_dkim *dkim);
extern int email_send(Email_message *em);
extern int email_show(FILE *fp, Email_message *em);
extern Email_header *email_lookup_header(Email_message *em, char *name);
extern char *email_make_boundary(char *spec, size_t len);
extern Email_message *email_create_transformed(char *mailer,
											   Dsvec *mailer_args,
											   Dsvec *headers,
											   char *content_type,
											   char *template_file,
											   Kwv *kwv, Email_dkim *dkim);

#ifdef __cplusplus
}
#endif

#endif