~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to pith/detach.h

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2007-02-17 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070217131742-99x5c6cpg1pbkdhw
Tags: upstream-0.82+dfsg
ImportĀ upstreamĀ versionĀ 0.82+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: detach.h 211 2006-11-01 00:34:10Z hubert@u.washington.edu $
 
3
 *
 
4
 * ========================================================================
 
5
 * Copyright 2006 University of Washington
 
6
 *
 
7
 * Licensed under the Apache License, Version 2.0 (the "License");
 
8
 * you may not use this file except in compliance with the License.
 
9
 * You may obtain a copy of the License at
 
10
 *
 
11
 *     http://www.apache.org/licenses/LICENSE-2.0
 
12
 *
 
13
 * ========================================================================
 
14
 */
 
15
 
 
16
#ifndef PITH_DETACH_INCLUDED
 
17
#define PITH_DETACH_INCLUDED
 
18
 
 
19
 
 
20
#include "../pith/filttype.h"
 
21
#include "../pith/store.h"
 
22
 
 
23
 
 
24
/*
 
25
 * Data used to keep track of partial fetches...
 
26
 */
 
27
typedef struct _fetch_read {
 
28
    unsigned       free_me:1;
 
29
    MAILSTREAM    *stream;              /* stream of open mailbox */
 
30
    unsigned long  msgno;               /* message number within mailbox */
 
31
    char          *section,             /* MIME section within message */
 
32
                  *chunk,               /* block of partial fetched data */
 
33
                  *chunkp,              /* pointer to next char in block */
 
34
                  *endp,                /* cell past last char in block */
 
35
                  *error;               /* Error message to report */
 
36
    unsigned long  read,                /* bytes read so far */
 
37
                   size,                /* total bytes to read */
 
38
                   chunksize,           /* size of chunk block */
 
39
                   allocsize;           /* allocated size of chunk block */
 
40
    long           flags,               /* flags to use fetching block */
 
41
                   fetchtime;           /* usecs avg per chunk fetch */
 
42
    gf_io_t        readc;
 
43
    STORE_S       *cache;
 
44
} FETCH_READC_S;
 
45
 
 
46
 
 
47
extern FETCH_READC_S *g_fr_desc;
 
48
 
 
49
#define AVOID_MICROSOFT_SSL_CHUNKING_BUG ((unsigned long)(12 * 1024L))
 
50
 
 
51
/* exported protoypes */
 
52
char       *detach_raw(MAILSTREAM *, long, char *, gf_io_t, int);
 
53
char       *detach(MAILSTREAM *, long, char *, long, long *, gf_io_t, FILTLIST_S *, int);
 
54
int         valid_filter_command(char **);
 
55
 
 
56
#endif /* PITH_DETACH_INCLUDED */