~ubuntu-branches/ubuntu/saucy/evolution-data-server/saucy

« back to all changes in this revision

Viewing changes to camel/camel-mime-filter-from.c

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-10-08 12:58:16 UTC
  • mfrom: (181.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121008125816-i3n76e8c0m64e7xp
Tags: 3.6.0-0ubuntu2
* Fix LP: #1038047 part 1 - Don't abort in e_source_registry_new* when a
  problem occurs connecting to the Dbus service
  - add debian/patches/dont-abort-in-e_source_registry_new.patch
  - update debian/patches/series
* Fix LP: #1038047 part 2 - libedataserver depends on
  evolution-data-server-common to ensure that the GSettings schemas are
  present
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        inptr = in;
67
67
        inend = inptr + len;
68
68
 
69
 
        d(printf("Filtering '%.*s'\n", len, in));
 
69
        d (printf ("Filtering '%.*s'\n", len, in));
70
70
 
71
71
        /* first, see if we need to escape any from's */
72
72
        while (inptr < inend) {
88
88
                                                break;
89
89
                                        }
90
90
                                } else {
91
 
                                        if (!strncmp(inptr, "From ", 5)) {
 
91
                                        if (!strncmp (inptr, "From ", 5)) {
92
92
                                                fromcount++;
93
93
                                                /* yes, we do alloc them on the stack ... at most we're going to get
94
94
                                                 * len / 7 of them anyway */
125
125
                *outlen = outptr - mime_filter->outbuf;
126
126
                *outprespace = mime_filter->outbuf - mime_filter->outreal;
127
127
 
128
 
                d(printf("Filtered '%.*s'\n", *outlen, *out));
 
128
                d (printf ("Filtered '%.*s'\n", *outlen, *out));
129
129
        } else {
130
130
                *out = (gchar *) in;
131
131
                *outlen = inend - in;
132
132
                *outprespace = prespace;
133
133
 
134
 
                d(printf("Filtered '%.*s'\n", *outlen, *out));
 
134
                d (printf ("Filtered '%.*s'\n", *outlen, *out));
135
135
        }
136
136
}
137
137
 
198
198
        len = strlen (buffer);
199
199
        prespace = 0;
200
200
 
201
 
        printf("input = '%.*s'\n", len, buffer);
 
201
        printf ("input = '%.*s'\n", len, buffer);
202
202
        camel_mime_filter_filter (f, buffer, len, prespace, &buffer, &len, &prespace);
203
 
        printf("output = '%.*s'\n", len, buffer);
 
203
        printf ("output = '%.*s'\n", len, buffer);
204
204
        buffer = "";
205
205
        len = 0;
206
206
        prespace = 0;
207
207
        camel_mime_filter_complete (f, buffer, len, prespace, &buffer, &len, &prespace);
208
 
        printf("complete = '%.*s'\n", len, buffer);
 
208
        printf ("complete = '%.*s'\n", len, buffer);
209
209
 
210
210
        return 0;
211
211
}