aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.h
blob: 6c74d291f872814cd387920d8fad933e2b44a4d2 (plain) (blame)
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/* 
 * Author : 
 *  Peter Williams <peterw@ximian.com>
 *
 * Copyright 2000 Ximian, Inc. (www.ximian.com)
 *
 * This program is free software; you can redistribute it and/or 
 * modify it under the terms of version 2 of the GNU General Public 
 * License as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 */

#ifndef MAIL_TOOLS_H
#define MAIL_TOOLS_H

#include <camel/camel.h>
#include <camel/camel-filter-driver.h> /*eek*/

typedef struct _xevolution {
    char *flags;
    char *source;
    char *transport;
    char *account;
    char *fcc;
    char *format;
    char *postto;
} XEvolution;

/* Get the CamelFolder for the local inbox */
CamelFolder *mail_tool_get_local_inbox (CamelException *ex);

/* Get the "inbox" for a url (uses global session) */
CamelFolder *mail_tool_get_inbox (const char *url, CamelException *ex);

/* Get the "trash" for a url (uses global session) */
CamelFolder *mail_tool_get_trash (const char *url, int connect, CamelException *ex);

/* Does a camel_movemail into the local movemail folder
 * and returns the path to the new movemail folder that was created. which shoudl be freed later */
char *mail_tool_do_movemail (const char *source_url, CamelException *ex);

/* Transfers all the messages from source into dest;
 * source is emptied and synced. */
void mail_tool_move_folder_contents (CamelFolder *source, CamelFolder *dest, gboolean use_cache, CamelException *ex);

XEvolution *mail_tool_remove_xevolution_headers (CamelMimeMessage *message);
void mail_tool_restore_xevolution_headers (CamelMimeMessage *message, XEvolution *xev);
void mail_tool_destroy_xevolution (XEvolution *xev);

/* Generates the subject for a message forwarding @msg */
gchar *mail_tool_generate_forward_subject (CamelMimeMessage *msg);

/* Make a message into an attachment */
CamelMimePart *mail_tool_make_message_attachment (CamelMimeMessage *message);

/* Parse the ui into a real CamelFolder any way we know how. */
CamelFolder *mail_tool_uri_to_folder (const char *uri, guint32 flags, CamelException *ex);

GHashTable *mail_lookup_url_table (CamelMimeMessage *mime_message);

gchar *mail_tool_quote_message (CamelMimeMessage *message, const char *fmt, ...);

gchar *mail_tool_forward_message (CamelMimeMessage *message, gboolean quoted);

CamelFolder *mail_tools_x_evolution_message_parse (char *in, unsigned int inlen, GPtrArray **uids);

char *mail_tools_folder_to_url (CamelFolder *folder);

#endif
fort2005-08-312-10/+6 * upgrade to 1.0.5ijliao2005-08-309-86/+327 * - Update to 2.2.5ahze2005-08-303-18/+8 * Fix INDEX build.krion2005-08-291-1/+1 * Fix index build by moving openoffice.org-1.1 ports.maho2005-08-2938-39/+39 * Fix index buildmaho2005-08-291-1/+1 * Fix distinfomaho2005-08-291-176/+176 * After repocopied by PR 85372, old ports must bemaho2005-08-29206-13034/+0 * After the repocopy request : PR 85372,maho2005-08-291-4/+4 * remove dependency the name of openoffice,maho2005-08-291-3/+3 * backout last commit :(maho2005-08-291-1/+1 * ${PORTNAME} should be openoffice.orgmaho2005-08-2914-18/+13 * update to 2.0beta2maho2005-08-2930-156/+126 * - Update to 2.10.5.mezz2005-08-294-3/+17 * Upgrade to 2000.11.thierry2005-08-286-72/+73 * Add a message for workaroundmaho2005-08-2812-12/+12 * 1. update to m126maho2005-08-2884-959/+1067 * 1. remove duplicated helpcontent_01.tgz in DISTFILESmaho2005-08-288-28/+72 * 1. remove duplicated helpcontent_01.tgz in DISTFILES sectionmaho2005-08-284-20/+20 * 1. remove duplicated helpcontent_01.tgz in DISTFILESmaho2005-08-2826-108/+500 * Don't depend on libpq directly, instead use the USE_PGSQL knobgirgen2005-08-223-3/+3 * Add a note about VIM's modeline support. This will instruct usersremko2005-08-172-0/+9 * 1. if we set CPUTYPE in /etc/make.conf, OOo build fails [1].maho2005-08-134-2/+46 * OOo is updated to 1.1.5 and following ports hardcodesmaho2005-08-111-1/+1 * make fetchablemaho2005-08-112-4/+0 * 1. use --with-system-freetype . update of libXft to version 2.1.7,maho2005-08-1136-156/+9180 * make fetchablemaho2005-08-082-2/+2 * make fetchablemaho2005-08-052-4/+0 * Don't try to invoke autoheader during build stage.lofi2005-08-043-12/+6 * Remove duplicate file listing to fix fetch of editors/ooodict-en_CAkris2005-08-031-2/+0 * Update to Vim 6.3 patchlevel 85obrien2005-08-032-3/+11 * adding missing double-quote mark in Makefile.knobsmaho2005-08-024-6/+6 * - Unbreak [1]garga2005-08-022-14/+7 * Update to 2.60.2lawrance2005-08-023-10/+5 * - Use PORTDOCSgarga2005-08-022-11/+8 * Make a mirror and take maintainership.thierry2005-08-021-5/+2 * - Remove 2 lines pkg-plistgarga2005-08-022-2/+2 * - Remove 2 lines pkg-plistgarga2005-08-022-2/+2 * - Update to 1.12.5sem2005-08-022-3/+3 * Update to 10.2.danfe2005-08-013-91/+91 * Remove obsolete patch.lofi2005-08-013-15180/+0 * Update to KDE 3.4.2 / KOffice 1.4.1lofi2005-08-01140-231/+443 * Update to version 9.5.gj2005-07-318-177/+269 * Fix a runtime problem on emacs20. Bump PORTREVISION.hrs2005-07-302-1/+26 * Issue a one-month stay of execution for these ports so I can send outkris2005-07-302-2/+2 * Fix plist.barner2005-07-301-0/+1 * removing unnecessary patchesmaho2005-07-2930-428/+0 * Broken on >= 6.0: invalid packing list.jylefort2005-07-291-1/+7 * remove unnecessary patches again :(maho2005-07-2920-330/+0 * o forgot to remove some filesmaho2005-07-296-66/+0 * Remove gif disable patch.maho2005-07-296-692/+0 * more robust generation of scriptmaho2005-07-2918-49/+49 * Unbreak for 5-seriesmaho2005-07-29360-3212/+3106 * Rename openoffice-wrapper to openoffice.org-wrappermaho2005-07-2932-64/+64 * some cleanups.maho2005-07-274-16/+8 * Update to 1.1.5rc2maho2005-07-2726-588/+90 * update to m121maho2005-07-2724-48/+72 * Upgrade xemacs-devel to 21.5.b21 "corn" by following upgrade oflesi2005-07-276-104/+14 * Update to 2.2.2.naddy2005-07-252-6/+4 * Add dependency for gtksourceview (added to USE_GNOME).barner2005-07-251-1/+1 * BROKEN on 6.0: Configure failskris2005-07-251-0/+4 * Extend an ifdef from __amd64__ to other _LP64 archs and unbreak for sparc64lesi2005-07-242-4/+11 * - Update to MlView 0.8barner2005-07-236-15/+109 * This port is scheduled for deletion on 2005-09-22 if it is still brokenkris2005-07-232-0/+4 * No longer need DEFALUT_TO_ENGLISH_FOR_PACKING to be set to yes;maho2005-07-2312-24/+24 * Ne is a free text editor based on the POSIX standard that runs (wegarga2005-07-225-0/+56 * o update to m120maho2005-07-2260-480/+1260 * Add application/msword mime type for you can double click on any of .doc filesmezz2005-07-222-2/+2 * - Update to 2.3.4, see release note for detail:mezz2005-07-217-16/+26 * BROKEN on ia64 and sparc64: Does not buildkris2005-07-211-0/+4 * - Get rid of pkg-plistsem2005-07-193-8/+5 * - Update to 13.1sem2005-07-182-70/+70 * - Update to 4.2sem2005-07-182-13/+13 * - Update to 2.2.1pav2005-07-182-3/+3 * - Update to 2.06pav2005-07-182-3/+3 * Add note how to make localized packagesmaho2005-07-178-60/+104 * Update to 1.9m117maho2005-07-1624-48/+48 * Add powerpc support.nobutaka2005-07-163-9/+12 * Update to 10.1.danfe2005-07-143-111/+113 * update to 1.9m116maho2005-07-1324-48/+48 * - Update to 20050108pav2005-07-124-32/+64 * - Update to 2.2.0pav2005-07-125-43/+41 * Change MAINTAINER to my @FreeBSD.org accountgarga2005-07-121-1/+1 * Update to latest Pine distfiledougb2005-07-112-3/+5 * Update to 2.3.2, only a lot of bug fixes. See release note for detail:mezz2005-07-114-6/+4 * Various bugfixes from the KOffice-1.4.x branch.lofi2005-07-1115-105/+15183 * Chase master sitekris2005-07-111-1/+1 * Backout USE_IMAKEmaho2005-07-102-12/+4 * Use USE_IMAKE instead of explicitlymaho2005-07-102-4/+4 * Update to manedit-0.6.1 to fix fetchingkris2005-07-092-3/+3 * - Update to 3.2pav2005-07-086-37/+78 * Presenting GNOME 2.10.2 for FreeBSD. Check outmarcus2005-07-081-1/+1 * somehow duplicated MD5 and SIZE of helpcontent_01_unix.tgzmaho2005-07-072-4/+0 * Update to Vim 6.3 patchlevel 79obrien2005-07-072-4/+30 * Update to 0.8.2.novel2005-07-062-3/+3 * Update to KOffice 1.4.0a.lofi2005-07-06169-2128/+5985 * Update to 9.4z.gj2005-07-064-4/+40 * o Update m57maho2005-07-058-80/+12 * update to m114maho2005-07-0536-348/+48 * - Update to version 1.3.3novel2005-07-043-21/+30 * - Update to version 2.1novel2005-07-042-3/+3 * add missing imake dependencymaho2005-07-032-2/+4 * fix by adding imake dependencymaho2005-07-0312-12/+24 * Fix distinfo.maho2005-07-032-4/+4 * Update to m113maho2005-07-0248-816/+1080 * update to m56maho2005-07-0212-142/+100 * - Update to 10.0danfe2005-07-012-7/+4 * Remove openoffice.org localized ports as I announced:maho2005-06-2922-318/+0 * Currently only OOo buildable java is jdk1.4.maho2005-06-2812-12/+12 * Dmitry Sivachenko has just checked-in a patch to fltk such that openofficemaho2005-06-2712-36/+0 * Update to KDE 3.4.1lofi2005-06-267-9/+6 * Update to 0.9.0lawrance2005-06-232-6/+7 * Update to 3.17.17lawrance2005-06-234-9/+6 * Update to 2.0lawrance2005-06-232-10/+7 * Update to 1.12.3lawrance2005-06-232-3/+3 * Update to 2.0.7lawrance2005-06-232-3/+3 * update to m111maho2005-06-2236-96/+384 * - Update to 0.9.1pav2005-06-213-4/+5 * Add warning if x11-toolkits/fltk is installed build fails.maho2005-06-2012-36/+36 * Set as broken if epm is installed. it causes a build errormaho2005-06-1912-0/+36 * call uname needlessly.maho2005-06-1916-16/+16 * Add English helpfile as default for languagesmaho2005-06-198-8/+20 * fix typo and correct apparent mistakemaho2005-06-1912-72/+12 * Mega-patch to cleanup the ports infrastructure regarding our linux bits:netchild2005-06-185-15/+19 * Update to 1.1.4 (1.1.5?) m55.maho2005-06-1816-472/+8 * Update to m110maho2005-06-1748-384/+72 * - Make packages optional (WITHOUT_XEMACS_PACKAGES).sem2005-06-153-5/+35 * Directory share/pixmaps is now included in mtreelesi2005-06-151-1/+0 * - Update to 2.3.1.mezz2005-06-137-28/+28 * IGNORE: Hangs during buildkris2005-06-121-0/+2 * update to m109maho2005-06-1136-168/+168 * - Provide unzip for install stage (RUN_DEPENDS really, but we don't havepav2005-06-101-1/+2 * - Update or add WWW: linesahze2005-06-102-1/+3 * Update to 2.10.3.mezz2005-06-092-3/+3 * - Update to 1.12.2pav2005-06-073-14/+3 * Update to 2.2.8.mezz2005-06-064-8/+9 * - Add Setswana and Zulu OpenOffice dictionariespav2005-06-062-0/+36 * - Unbreak and general updatepav2005-06-0640-75/+714 * - Fix typo in COMMENTpav2005-06-0616-16/+16 * - Update to 0.9.6sem2005-06-052-5/+21 * * Update to 21.5-b21 "corn"sem2005-06-049-128/+17 * o For QA purpose, add optional target package-canonical.maho2005-06-0436-36/+2352 * Remove ports which expired on 2005-06-01 (no pending PRs, either)vs2005-06-0310-220/+0 * Forgot to remove this patchmaho2005-06-0312-600/+0 * Update to m107maho2005-06-03192-12384/+48 * Update to 0.3.5.mezz2005-06-023-20/+18 * Update to version 1.8.1markus2005-06-024-6/+6 * change the libtool version to use from 1.3 to 1.5oliver2005-06-02