~davidagraf/zorba/cclient-with-clang

« back to all changes in this revision

Viewing changes to src/com/zorba-xquery/www/modules/email/imap.xq.src/imap_function.h

  • Committer: Tarmac
  • Author(s): David Graf
  • Date: 2012-07-02 10:08:34 UTC
  • mfrom: (46.1.1 email-module)
  • Revision ID: tarmac-20120702100834-31w5xopsw11lke3x
Several email module fixes:
- case insensitive email attribute comparison
- catch more attachment filenames
- don't create empty recipients and email tags
- fixed typos
- made constant for namespace prefix
- introduced default mime charset
- remove newlines from base64 that comes from uw-imap
- if email content is quoted-printable encoded and the content type binary, it needs to be encoded into base64
- fixed content type check
- decode all email headers
- non-ascii (non encoded) chars are not allowed in email headers -> we ignore them
- added missing namespaces Approved: David Graf, Dennis Knochenwefel, Alexander Kreutz

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  protected:
36
36
    const ImapModule* theModule;
37
37
    static const char* SCHEMA_NAMESPACE;
 
38
    static const char* SCHEMA_PREFIX;
38
39
 
39
40
    void
40
41
    raiseImapError(
130
131
      const char* aHost) const;
131
132
 
132
133
    void
133
 
    createRecipentNode(
 
134
    createRecipientNode(
134
135
      Item& aParent,
135
136
      const std::string& aName,
136
137
      const char* aPersonal,
167
168
    void
168
169
    toUtf8(
169
170
      const std::string& value,
170
 
      const char* fromCharset,
 
171
      const std::string& fromCharset,
171
172
      std::string& result) const;
172
173
 
173
174
    void