ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:24.67 GB of 70.42 GB (35.04%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ src/ courier-0.66.1/ rfc2045/ - drwxrwxrwx

Directory:
Viewing file:     rfc3676parser.h (3.88 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#ifndef    rfc3676_h
#define    rfc3676_h
/*
** Copyright 2011 Double Precision, Inc.  See COPYING for
** distribution information.
*/

/*
*/

#include    "../rfc2045/rfc2045_config.h" /* VPATH */
#include    "../unicode/unicode.h"
#include    <stdlib.h>
#include    <string.h>

#ifdef  __cplusplus
extern "C" {
#endif

#if 0
}
#endif

typedef struct rfc3676_parser_struct *rfc3676_parser_t;

/*
** Structure passed to rfc3676_parser_init().
*/

struct rfc3676_parser_info {

    const char *charset;
    /*
    ** MIME charset parameter. String not used after rfc3676_parser_init()
    ** returns.
    */

    /* MIME format flowed flag set */
    int isflowed;

    /* MIME delsp=yes flag is set */
    int isdelsp;

    /*
    ** Callback - start of a line.
    **
    ** If this callback returns 0, normal parsing continues. If this
    ** callback returns a non-0 value, parsing stops and
    ** rfc3676_parse() or rfc3676_deinit() returns the non-0 value.
    */

    int (*line_begin)(size_t quote_level, /* Line's quote level */
              void *arg);

    /*
    ** Callback - contents of the line, converted to unicode.
    ** May be invoked multiple times, consecutively.
    **
    ** If this callback returns 0, normal parsing continues. If this
    ** callback returns a non-0 value, parsing stops and
    ** rfc3676_parse() or rfc3676_deinit() returns the non-0 value.
    */

    int (*line_contents)(const unicode_char *txt, /* Contents */
                 size_t txt_size,
                 /* Count of unicode chars in txt */
                 void *arg);
    /*
    ** Optional callback. If not NULL, it gets invoked when
    ** a line is logically flowed into the next physical line.
    */

    int (*line_flowed_notify)(void *);

    /*
    ** End of the line's contents.
    **
    ** If this callback returns 0, normal parsing continues. If this
    ** callback returns a non-0 value, parsing stops and
    ** rfc3676_parse() or rfc3676_deinit() returns the non-0 value.
    */

    int (*line_end)(void *arg);

    /* Argument passed through to the above callback methods */

    void *arg;
};

/*
** Begin parsing.
**
** Returns an opaque parsing handle.
*/
rfc3676_parser_t rfc3676parser_init(const struct rfc3676_parser_info *info);

/*
** Parse next part of rfc3676-encoded message.
**
** Returns non-0 value returned by any callback method, or 0 if all
** invoked callback methods returned 0.
*/

int rfc3676parser(rfc3676_parser_t handle,
          const char *txt,
          size_t txt_cnt);

/*
** End parsing.
**
** The handle gets destroyed, and the parsing finishes.
**
** NOTE: rfc3676_deinit() WILL LIKELY invoke some leftover callback methods.
**
** Returns non-0 value returned by any callback method, or 0 if all
** invoked callback methods returned 0.
*/

int rfc3676parser_deinit(rfc3676_parser_t handle,

             /*
             ** Optional, if not NULL, set to indicate unicode
             ** error.
             */
             int *errptr);

#if 0
{
#endif

#ifdef  __cplusplus
}

namespace mail {

    extern "C" int tpp_trampoline_line_begin(size_t, void *);

    extern "C" int tpp_trampoline_line_contents(const unicode_char *,
                            size_t, void *);

    extern "C" int tpp_trampoline_line_flowed_notify(void *);

    extern "C" int tpp_trampoline_line_end(void *);

    /*
    ** C++ binding for the parser logic
    */
    class textplainparser {

        rfc3676_parser_t handle;

    public:
        textplainparser();
        ~textplainparser();

        /*
        ** Begin parsing. Returns FALSE if the parsing could
        ** not be initialized (probably unknown charset).
        */
        bool begin(const std::string &charset,
               bool flowed,
               bool delsp);

        void end(
             /*
             ** Set to true if a unicode conversion error occured.
             */
             bool &unicode_errflag);

        void end()
        {
            bool dummy;

            return end(dummy);
        }

        /* Feed raw contents to be parsed */
        void operator<<(const std::string &text)
        {
            if (handle)
                rfc3676parser(handle, text.c_str(),
                          text.size());
        }


        virtual void line_begin(size_t);

        virtual void line_contents(const unicode_char *,
                       size_t);

        virtual void line_flowed_notify();

        virtual void line_end();
    };
}
#endif

#endif
Command:
Quick Commands:
Upload:
[OK] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [OK]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.2643 seconds