File: README

package info (click to toggle)
gmime2.6 2.6.23+dfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,236 kB
  • sloc: ansic: 42,129; makefile: 634; sh: 415; cs: 250; xml: 9; python: 8; perl: 6
file content (51 lines) | stat: -rw-r--r-- 1,684 bytes parent folder | download | duplicates (7)
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
                               GMime Examples
                   by Jeffrey Stedfast <fejj@gnome.org>


Example: basic-example.c
------------------------

This example code illustrates a good number of the common tasks an
application developer using GMime is likely to use, including parsing
messages, verifying pgp signatures, adding/removing MIME parts and
writing messages back out again.


Example: imap-example.c
-----------------------

Although the name implies that this example source contains t0p
s3kret imap hackery action, in reality, it doesn't. The focus of this
example is more how to split out MIME parts into separate files and
then to restore them back into the original MIME structure using a
technique similar to (but not exactly) IMAP's BODYSTRUCTURE and
single-part FETCHing.

I think you'll find this example is worth looking at if you plan on
using GMime with your IMAP library.


Example: uuencode.c
-------------------

This program illustrates how to use the low-level MIME encoding
routines (specifically the uuencode and base64 encoding
routines). You'll likely find that this program outperforms GNU's
implementation of uuencode.


Example: uudecode.c
-------------------

This program illustrates how to use the low-level MIME decoding
routines (specifically the uudecode and base64 decoding
routines). You'll likely find that this program outperforms GNU's
implementation of uudecode.


Don't forget to take a look at any test programs that came bundled
with this distribution (they will be in tests/), as they will also
provide you with samples that you may find useful.

Questions and/or Comments on these examples should be sent to
<fejj@gnome.org>