Nigel Kerr | 9 Dec 2007 19:48
Picon

stream error on windows

good folk,

struggling some with getting libetpan .52 to work on windows.  my environment:

winxp pro
vs 2003
openssl 0.9.8g (libeay32.lib and ssleay32.lib!) built with same

had to #define EINPROGRESS WSAEINPROGRESS
had to remove references to unistd.h in a couple places
had to comment out a bit about feed_storage

then it compiles: the lib, sendsmtp and readmsg.  howmsoever:

if i invoke sendsmtp thus:

 sendsmtp -f me@... -u
me@... -v whatever -s
smtp.gmail.com -p 587 -S me@...

and a message text, i invariably get a stream error.  I have tracked
it down (i think) to:

 mailstream_socket.c:mailstream_low_socket_write(), the part where
"cancelled" is tested for non-zero.  cancelled is coming to us from
the win32 block above:

   event = CreateEvent(NULL, TRUE, FALSE, NULL);
   WSAEventSelect(socket_data->fd, event, FD_WRITE | FD_CLOSE);
   FD_SET(event, &fds_read);
(Continue reading)

DINH Viêt Hoà | 10 Dec 2007 11:04
Picon
Favicon

Re: stream error on windows

On 12/9/07, Nigel Kerr <nigel.kerr@...> wrote:
> good folk,
>
> struggling some with getting libetpan .52 to work on windows.  my environment:
>
> winxp pro
> vs 2003
> openssl 0.9.8g (libeay32.lib and ssleay32.lib!) built with same
>
> had to #define EINPROGRESS WSAEINPROGRESS
> had to remove references to unistd.h in a couple places
> had to comment out a bit about feed_storage
>
> then it compiles: the lib, sendsmtp and readmsg.  howmsoever:
>
> if i invoke sendsmtp thus:
>
>  sendsmtp -f me@... -u
me@... -v whatever -s
> smtp.gmail.com -p 587 -S me@...
>
> and a message text, i invariably get a stream error.  I have tracked
> it down (i think) to:
>
>  mailstream_socket.c:mailstream_low_socket_write(), the part where
> "cancelled" is tested for non-zero.  cancelled is coming to us from
> the win32 block above:
>
>    event = CreateEvent(NULL, TRUE, FALSE, NULL);
>    WSAEventSelect(socket_data->fd, event, FD_WRITE | FD_CLOSE);
(Continue reading)

DINH Viêt Hoà | 14 Dec 2007 10:53
Picon
Favicon

Re: Could libetpan support Secure Password Authentication(SPA) method to login?

On Dec 14, 2007 3:01 AM,  <woolshum@...> wrote:
> Hi libetpan guys
>
>  Outlook and Outlook Express support a Authentication method for login to
> mail server
>  It is Secure Password Authentication(SPA)

I guess SPA in NTLM, you have to use SASL authentication with
mechanism type 'NTLM'.

--

-- 
DINH Viêt Hoà

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
befer xiang | 19 Dec 2007 07:14
Picon

Can not parse IMAP bodystructure of SMIME Signed message from google imap server

Hi,

I try readmsg sample to receive a S/MIME Signed mail
it return while call mailmessage_get_bodystructure()

the error message:
** message 419 not found - file error - file could not be accessed **

It can not parse this IMAP bodystructure of SMIME Signed mail from
google imap server

attachment is stream log

Thank you.

ps. I use CVS version of libetpan library
Attachment (smime_imap_gmail.log): application/octet-stream, 1349 bytes
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Libetpan-users mailing list
Libetpan-users@...
https://lists.sourceforge.net/lists/listinfo/libetpan-users
(Continue reading)

DINH Viêt Hoà | 23 Dec 2007 17:19
Picon
Favicon

Re: Can not parse IMAP bodystructure of SMIME Signed message from google imap server

On Dec 19, 2007 7:14 AM, befer xiang <beferxiang@...> wrote:
> Hi,
>
> I try readmsg sample to receive a S/MIME Signed mail
> it return while call mailmessage_get_bodystructure()
>
> the error message:
> ** message 419 not found - file error - file could not be accessed **
>
> It can not parse this IMAP bodystructure of SMIME Signed mail from
> google imap server
>
> attachment is stream log
>
> Thank you.
>
> ps. I use CVS version of libetpan library

Hello,

Are you using libetpan on Windows or on Unix ?
I guess you are using cached IMAP driver.
Could you try to use IMAP driver without cache ?

If you are using on Unix, this is really a bug.
If this is the case, in imapdriver_cached_message.c, line 543, you
should find some MAIL_ERROR_FILE,
If the error in on fopen(), could you output the name of the file
before returning ?
If the error is on mailmime_write(), we will tke a step further in the analyze.
(Continue reading)

Alex S Moore | 25 Dec 2007 16:26

0.52 make error

I sent this incorrectly.  It should get to the list this time.  Thanks 
for letting me know of the problem, DINH

------------

I am trying to build 0.52 on Solaris 8.  Ran autogen, which appeared to
work, and configure with my options.  From gmake, I get the follwoing.

gmake[2]: Entering directory `/export/medusa/asmoore/build/libetpan-0.52'
Making prepare in build-windows
gmake[3]: Entering directory
`/export/medusa/asmoore/build/libetpan-0.52/build-windows'
/bin/bash: -c: line 6: syntax error near unexpected token `;'
/bin/bash: -c: line 6: `  && for hdr in ; do \'
gmake[3]: *** [prepare-am] Error 2
gmake[3]: Leaving directory
`/export/medusa/asmoore/build/libetpan-0.52/build-windows'

I looked at the Makefile and it looks like $(etpaninclude_HEADERS) is
not getting set.

How do I fix this?

Thanks,

Alex

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
(Continue reading)

DINH Viêt Hoà | 26 Dec 2007 02:44
Picon
Favicon

Re: 0.52 make error

On 12/25/07, Alex S Moore <asmoore@...> wrote:
> I sent this incorrectly.  It should get to the list this time.  Thanks
> for letting me know of the problem, DINH
>
> ------------
>
> I am trying to build 0.52 on Solaris 8.  Ran autogen, which appeared to
> work, and configure with my options.  From gmake, I get the follwoing.
>
> gmake[2]: Entering directory `/export/medusa/asmoore/build/libetpan-0.52'
> Making prepare in build-windows
> gmake[3]: Entering directory
> `/export/medusa/asmoore/build/libetpan-0.52/build-windows'
> /bin/bash: -c: line 6: syntax error near unexpected token `;'
> /bin/bash: -c: line 6: `  && for hdr in ; do \'
> gmake[3]: *** [prepare-am] Error 2
> gmake[3]: Leaving directory
> `/export/medusa/asmoore/build/libetpan-0.52/build-windows'
>
>
> I looked at the Makefile and it looks like $(etpaninclude_HEADERS) is
> not getting set.
>
> How do I fix this?

Hello,

Could you try this patch (you have to checkout the CVS and apply the patch) ?

--

-- 
(Continue reading)

Alex S Moore | 26 Dec 2007 04:59

Re: 0.52 make error

DINH Viêt Hoà wrote:
>>
>> I am trying to build 0.52 on Solaris 8.  Ran autogen, which appeared to
>> work, and configure with my options.  From gmake, I get the follwoing.
>>
>> gmake[2]: Entering directory `/export/medusa/asmoore/build/libetpan-0.52'
>> Making prepare in build-windows
>> gmake[3]: Entering directory
>> `/export/medusa/asmoore/build/libetpan-0.52/build-windows'
>> /bin/bash: -c: line 6: syntax error near unexpected token `;'
>> /bin/bash: -c: line 6: `  && for hdr in ; do \'
>> gmake[3]: *** [prepare-am] Error 2
>> gmake[3]: Leaving directory
>> `/export/medusa/asmoore/build/libetpan-0.52/build-windows'
..
> 
> Hello,
> 
> Could you try this patch (you have to checkout the CVS and apply the patch) ?

Thanks very much!  Yes, CVS plus the patch got me through that problem.

The build went a long way and failed at subdirectory tests.  I will work 
on this again tomorrow.  Here is the error, if the solution is obvious 
to you.  My configure options are simply `--prefix=/opt/csw 
--sysconfdir=/opt/csw/etc --mandir=/opt/csw/share/man 
--libdir=/opt/csw/lib`,

"option-parser.c", line 5: cannot find include file: <getopt.h>
"option-parser.c", line 75: incomplete struct/union/enum option: 
(Continue reading)

Alex S Moore | 26 Dec 2007 14:43

0.52 make error on Solaris

Getting the source from cvs and adding the rules-mk.patch made a huge 
leap in completing the build.  I have tried a few things on this new 
error and am at a loss.  This build environment is Solaris 8 with Sun's 
compiler.  The configure options are just directory redirects.

---------------
source='option-parser.c' object='option-parser.o' libtool=no \
         DEPDIR=.deps depmode=none /bin/bash ../depcomp \
         /opt/studio/SOS8/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. 
-I../include -I/opt/csw/bdb4/include -I/opt/csw/include -D_REENTRANT 
-I/opt/csw/include  -DSOLARIS -D__SUNPRO_CC -O -xarch=386 -ULIBETPAN_DLL 
-c option-parser.c
"option-parser.c", line 5: cannot find include file: <getopt.h>
"option-parser.c", line 75: incomplete struct/union/enum option: 
long_options
"option-parser.c", line 76: cannot do pointer arithmetic on operand of 
unknown
size
"option-parser.c", line 76: too many struct/union initializers
"option-parser.c", line 76: cannot recover from previous errors
cc: acomp failed for option-parser.c
gmake[3]: *** [option-parser.o] Error 2
gmake[3]: Leaving directory 
`/export/medusa/asmoore/build/libetpan-0.52-cvs/tests'
gmake[2]: *** [all] Error 2
---------------

Besides the obvious include file missing error, the compile option 
'-ULIBETPAN_DLL' is not expected.  Some time ago, you added some SOLARIS 
defines for me.  I think the __SUNPRO_CC defines is not used and I will 
(Continue reading)

DINH Viêt Hoà | 26 Dec 2007 23:51
Picon
Favicon

Re: 0.52 make error on Solaris

On Dec 26, 2007 2:43 PM, Alex S Moore <asmoore@...> wrote:
> Getting the source from cvs and adding the rules-mk.patch made a huge
> leap in completing the build.  I have tried a few things on this new
> error and am at a loss.  This build environment is Solaris 8 with Sun's
> compiler.  The configure options are just directory redirects.
>
> ---------------
> source='option-parser.c' object='option-parser.o' libtool=no \
>          DEPDIR=.deps depmode=none /bin/bash ../depcomp \
>          /opt/studio/SOS8/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I..
> -I../include -I/opt/csw/bdb4/include -I/opt/csw/include -D_REENTRANT
> -I/opt/csw/include  -DSOLARIS -D__SUNPRO_CC -O -xarch=386 -ULIBETPAN_DLL
> -c option-parser.c
> "option-parser.c", line 5: cannot find include file: <getopt.h>
> "option-parser.c", line 75: incomplete struct/union/enum option:
> long_options
> "option-parser.c", line 76: cannot do pointer arithmetic on operand of
> unknown
> size
> "option-parser.c", line 76: too many struct/union initializers
> "option-parser.c", line 76: cannot recover from previous errors
> cc: acomp failed for option-parser.c
> gmake[3]: *** [option-parser.o] Error 2
> gmake[3]: Leaving directory
> `/export/medusa/asmoore/build/libetpan-0.52-cvs/tests'
> gmake[2]: *** [all] Error 2
> ---------------
>
> Besides the obvious include file missing error, the compile option
> '-ULIBETPAN_DLL' is not expected.  Some time ago, you added some SOLARIS
(Continue reading)


Gmane