~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-updates

« back to all changes in this revision

Viewing changes to camel/providers/imap4/camel-imap4-engine.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-07-13 15:01:33 UTC
  • mfrom: (1.1.69 upstream)
  • Revision ID: james.westby@ubuntu.com-20090713150133-4lxw1fqpbo2b1i7w
Tags: 2.27.4-0ubuntu1
* New upstream version:
  Bug Fixes:
  Addressbook:
  - #540779 - Do not call e_book_new in the main thread (lp: #265044)
  - #563668 - Do not pop-down an empty completion list 
  - #586225 - Parse numeric name suffixes 
  Calendar:
  - #548702 - google calendar source does not show all events  (lp: #183846)
  Mail:
  - #575701 - Message disappear from unread vfolder, when reply. 
  - #568302 - create camel summary table if not exists on load 
  - #586602 – folder messages are lost on folder rename 
  - #327285 - Word "Success" in error message for failed action (lp: #175599)
  - #587699 - IMAP - Localize only Inbox folder name, no other 
  - #579065 - IMAP - Synchronize remote mail locally is not working 
    (lp: #331478)
  - #564388 - UI blocks for a long time when downloading mails with nntp 
  Misc:
  - #586442 – Various build cleanups 
  - #586477 – Fix quoting in configure.ac 
  - #586811 – Require automake 1.9 and fix whitespace 
  - #586813 – Fix iconv cflags/libs in configure.ac 
  - #586809 – Enable "silent rules" automake 1.11 option 
  - #587165 – Double free in initialize_categories 
  - #587374 - iconv test broken on some gcc 
      Other Fixes:
  Misc:
  Use G_BEGIN_DECLS / G_END_DECLS macros. 
  Work around deprecation of g_mapped_file_free
  Silence some compiler warnings 
  Fixes for windows build 
  Calendar:
  CalDav Fixes/improvements 
  Translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 *  Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
20
 */
21
21
 
22
 
 
23
22
#ifdef HAVE_CONFIG_H
24
23
#include <config.h>
25
24
#endif
42
41
 
43
42
#define d(x)
44
43
 
45
 
 
46
44
static void camel_imap4_engine_class_init (CamelIMAP4EngineClass *klass);
47
45
static void camel_imap4_engine_init (CamelIMAP4Engine *engine, CamelIMAP4EngineClass *klass);
48
46
static void camel_imap4_engine_finalize (CamelObject *object);
50
48
static gint parse_xgwextensions (CamelIMAP4Engine *engine, CamelIMAP4Command *ic, guint32 index,
51
49
                                camel_imap4_token_t *token, CamelException *ex);
52
50
 
53
 
 
54
51
static CamelObjectClass *parent_class = NULL;
55
52
 
56
 
 
57
53
CamelType
58
54
camel_imap4_engine_get_type (void)
59
55
{
149
145
        }
150
146
}
151
147
 
152
 
 
153
148
/**
154
149
 * camel_imap4_engine_new:
155
150
 * @service: service
173
168
        return engine;
174
169
}
175
170
 
176
 
 
177
171
/**
178
172
 * camel_imap4_engine_take_stream:
179
173
 * @engine: imap4 engine
232
226
        return -1;
233
227
}
234
228
 
235
 
 
236
229
/**
237
230
 * camel_imap4_engine_disconnect:
238
231
 * @engine: IMAP4 engine
256
249
        }
257
250
}
258
251
 
259
 
 
260
252
/**
261
253
 * camel_imap4_engine_capability:
262
254
 * @engine: IMAP4 engine
303
295
        return retval;
304
296
}
305
297
 
306
 
 
307
298
/**
308
299
 * camel_imap4_engine_namespace:
309
300
 * @engine: IMAP4 engine
373
364
        return 0;
374
365
}
375
366
 
376
 
 
377
367
/**
378
368
 * camel_imap4_engine_select_folder:
379
369
 * @engine: IMAP4 engine
467
457
        return retval;
468
458
}
469
459
 
470
 
 
471
460
static struct {
472
461
        const gchar *name;
473
462
        guint32 flag;
775
764
        return -1;
776
765
}
777
766
 
778
 
 
779
767
/*
780
768
 * resp-text-code  = "ALERT" /
781
769
 *                   "BADCHARSET" [SP "(" astring *(SP astring) ")" ] /
809
797
        { NULL,             CAMEL_IMAP4_RESP_CODE_UNKNOWN,     0 }
810
798
};
811
799
 
812
 
 
813
800
/**
814
801
 * camel_imap4_engine_parse_resp_code:
815
802
 * @engine: IMAP4 engine
1075
1062
        return -1;
1076
1063
}
1077
1064
 
1078
 
 
1079
1065
/**
1080
1066
 * camel_imap4_engine_handle_untagged_1:
1081
1067
 * @engine: IMAP4 engine
1238
1224
        return code;
1239
1225
}
1240
1226
 
1241
 
 
1242
1227
/**
1243
1228
 * camel_imap4_engine_handle_untagged:
1244
1229
 * @engine: IMAP4 engine
1273
1258
        engine->state = CAMEL_IMAP4_ENGINE_DISCONNECTED;
1274
1259
}
1275
1260
 
1276
 
 
1277
1261
static gint
1278
1262
imap4_process_command (CamelIMAP4Engine *engine, CamelIMAP4Command *ic)
1279
1263
{
1290
1274
        return 0;
1291
1275
}
1292
1276
 
1293
 
 
1294
1277
static void
1295
1278
engine_prequeue_folder_select (CamelIMAP4Engine *engine)
1296
1279
{
1313
1296
        camel_imap4_command_unref (ic);
1314
1297
}
1315
1298
 
1316
 
 
1317
1299
static gint
1318
1300
engine_state_change (CamelIMAP4Engine *engine, CamelIMAP4Command *ic)
1319
1301
{
1344
1326
        return retval;
1345
1327
}
1346
1328
 
1347
 
 
1348
1329
/**
1349
1330
 * camel_imap4_engine_iterate:
1350
1331
 * @engine: IMAP4 engine
1440
1421
        return retval;
1441
1422
}
1442
1423
 
1443
 
 
1444
1424
/**
1445
1425
 * camel_imap4_engine_queue:
1446
1426
 * @engine: IMAP4 engine
1472
1452
        return ic;
1473
1453
}
1474
1454
 
1475
 
 
1476
1455
/**
1477
1456
 * camel_imap4_engine_prequeue:
1478
1457
 * @engine: IMAP4 engine
1525
1504
        return ic;
1526
1505
}
1527
1506
 
1528
 
 
1529
1507
/**
1530
1508
 * camel_imap4_engine_dequeue:
1531
1509
 * @engine: IMAP4 engine
1548
1526
        camel_imap4_command_unref (ic);
1549
1527
}
1550
1528
 
1551
 
 
1552
1529
/**
1553
1530
 * camel_imap4_engine_next_token:
1554
1531
 * @engine: IMAP4 engine
1577
1554
        return 0;
1578
1555
}
1579
1556
 
1580
 
 
1581
1557
/**
1582
1558
 * camel_imap4_engine_eat_line:
1583
1559
 * @engine: IMAP4 engine
1618
1594
        return 0;
1619
1595
}
1620
1596
 
1621
 
 
1622
1597
/**
1623
1598
 * camel_imap4_engine_line:
1624
1599
 * @engine: IMAP4 engine
1673
1648
        return 0;
1674
1649
}
1675
1650
 
1676
 
 
1677
1651
/**
1678
1652
 * camel_imap4_engine_literal:
1679
1653
 * @engine: IMAP4 engine
1730
1704
        return 0;
1731
1705
}
1732
1706
 
1733
 
 
1734
1707
/**
1735
1708
 * camel_imap4_engine_nstring:
1736
1709
 * @engine: IMAP4 engine
1773
1746
        return 0;
1774
1747
}
1775
1748
 
1776
 
 
1777
1749
/**
1778
1750
 * camel_imap4_resp_code_free:
1779
1751
 * @rcode: RESP-CODE