Sébastien Marinier | 7 Jun 2006 15:15
Favicon

Re: move mailmessage

Move message is not implemented in the imap implementation driver. But, the maildriver is able to be nice, in that case, and if copy_message and remove_message are implemented, it do the move by the sequence of these two calls.

As remove_message is now implemented, this will work now. Note, as Din said to me, that this is a "slow implementation". Imap might be optimized in better way with STORES and EXPUNGE. But if you're not afraid losing some mic-secs, you can use it.

Moreover, this allow pop3/imap transparent use of remove_message without protocol consideration.

Regards
Am Dienstag, 23. Mai 2006 11:44 schrieb Marko Ivancic:
I see the best method to solve this kind of problems is to directly "grep" the libetpan headers file :)
Yes, that's true :) Alternatively, if you're working mostly on IMAP my advise is to download the rfc. You can find every command mentioned there as mailimap_command in mailimap.h :-) Regards, Michael

--
_________________________
Sébastien Marinier
<div>
Move message is not implemented in the imap implementation driver. But,
the maildriver is able to be nice, in that case, and if copy_message
and remove_message are implemented, it do the move by the sequence of
these two calls.<br><br>
As remove_message is now implemented, this will work now. Note, as Din
said to me, that this is a "slow implementation". Imap might be
optimized in better way with STORES and EXPUNGE. But if you're not
afraid losing some mic-secs, you can use it.<br><br>
Moreover, this allow pop3/imap transparent use of remove_message
without protocol consideration.<br><br>
Regards<br><blockquote cite="mid200605231149.06883.leupold@..." type="cite">
  Am Dienstag, 23. Mai 2006 11:44 schrieb Marko Ivancic:

  <blockquote type="cite">
    I see the best method to solve this kind of problems is to directly
"grep" the libetpan headers file :)

  </blockquote>

Yes, that's true :) Alternatively, if you're working mostly on IMAP my advise 
is to download the rfc. You can find every command mentioned there as 
mailimap_command in mailimap.h :-)

Regards,
Michael

</blockquote>
<br><div class="moz-signature">-- <br>
_________________________<br>
S&eacute;bastien Marinier<a href="callto:marinier34"></a><br>
</div>
</div>
_______________________________________________
Libetpan-users mailing list
Libetpan-users@...
https://lists.sourceforge.net/lists/listinfo/libetpan-users
Matt Ronge | 20 Jun 2006 08:17

mailsmtp_auth_sasl instead of mailsmtp_auth

Hi,

I've been using mailsmtp_auth but I've recently run into a problem where 
   it wasn't working on a gmail SMTP server. After taking a look at 
mailsmtp.h I noticed that mailsmtp_auth is now deprecated.

Here's the new function:
int mailesmtp_auth_sasl(mailsmtp * session, const char * auth_type,
     const char * server_fqdn,
     const char * local_ip_port,
     const char * remote_ip_port,
     const char * login, const char * auth_name,
     const char * password, const char * realm);

However, I'm not sure how to get started with it. Is there any 
documentation for this? What are the available auth_type's? What is the 
server_fqdn? What about the local port? Auth_name? realm? Does anyone 
have an example of this function in use?

(Please point me to the appropriate RFC if I'm missing something)
Thanks,
--
Matt
--

-- 
Matt Ronge

AIM: monkeybreadr
http://www.theronge.com
DINH Viêt Hoà | 21 Jun 2006 01:18
Picon
Favicon

Re: mailsmtp_auth_sasl instead of mailsmtp_auth

On 20 Jun 2006, at 08:17, Matt Ronge wrote:

> Hi,
>
> I've been using mailsmtp_auth but I've recently run into a problem  
> where
>    it wasn't working on a gmail SMTP server. After taking a look at
> mailsmtp.h I noticed that mailsmtp_auth is now deprecated.
>
> Here's the new function:
> int mailesmtp_auth_sasl(mailsmtp * session, const char * auth_type,
>      const char * server_fqdn,
>      const char * local_ip_port,
>      const char * remote_ip_port,
>      const char * login, const char * auth_name,
>      const char * password, const char * realm);
>
> However, I'm not sure how to get started with it. Is there any
> documentation for this? What are the available auth_type's? What is  
> the
> server_fqdn? What about the local port? Auth_name? realm? Does anyone
> have an example of this function in use?
>
> (Please point me to the appropriate RFC if I'm missing something)
> Thanks,

on google smtp, you need to start tls before authenticating.
I attached a code that I tested with my account. This code worked for  
google smtp.

Attachment (smtptest.c): application/octet-stream, 3019 bytes

-- 
DINH Viêt Hoà


--

-- 
DINH Viêt Hoà

_______________________________________________
Libetpan-users mailing list
Libetpan-users@...
https://lists.sourceforge.net/lists/listinfo/libetpan-users
Heyligen Tom | 27 Jun 2006 17:10

Excluding features from libEtPan library

Dear libetpan-users,

I am new to libEtPan so please bear my ignorance :-)

I would like to optimize the size of the libetpan.so library (version
0.45).
Since the result of stripping the file is not sufficient, I would like
to exclude some features like localstorage/NNTP/Hotmail support, which
are not used by my application.

- Is the configure script accepting any relevant options? 
- In the generated Makefile, I changed the SUBDIRS variable to contain
only the needed subdirectories from the src directory. Compiling and
linking seems to succeed, but no libetpan.so is produced?
- Executing "make install" from the src level fails to find -lssl (which
is found however when installing a clean libEtPan out-of-the-box)...

Any ideas on how to proceed appreciated.

Thanks,
 Tom.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lemma | 28 Jun 2006 13:41
Picon

Re: Excluding features from libEtPan library

Hi Tom,

> I would like to optimize the size of the libetpan.so library (version
> 0.45).
> Since the result of stripping the file is not sufficient, I would like
> to exclude some features like localstorage/NNTP/Hotmail support, which
> are not used by my application.

I'm not sure if stripping functionality makes that much sense (unless
you're trying to fit your application on a floopy disk :-)). Nonetheless I
just tried stripping it myself and I think I can give you some hints.

> - Is the configure script accepting any relevant options?

As far as I know it doesn't.

> - In the generated Makefile, I changed the SUBDIRS variable to contain
> only the needed subdirectories from the src directory. Compiling and
> linking seems to succeed, but no libetpan.so is produced?

I succeeded by modifying the following files:
- strip SUBLIBS and SUBDIRS from src/driver/implementation/Makefile
- do the same for src/low-level/Makefile
- have a look at src/main/libetpan.h and remove the includes for the parts
you just removed (the "sections" are commented).

Doing that I succeeded in compiling. The generated libs can be found in
src/.libs. Please note that I didn't try it with the latest release but
with some old cvs checkout I had lieing around somewhere.

> - Executing "make install" from the src level fails to find -lssl (which
> is found however when installing a clean libEtPan out-of-the-box)...

I didn't try running make install as I didn't want to screw my previous
install, but ldd libetpan.so.6.1.0 yields:
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00002b28f4e6b000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8
(0x00002b28f4fb3000)
        libdb-4.4.so => /usr/lib/libdb-4.4.so (0x00002b28f5224000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00002b28f542b000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00002b28f5543000)
        libc.so.6 => /lib/libc.so.6 (0x00002b28f5658000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002b28f5897000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00002b28f599b000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00002b28f5ab1000)
        /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
so ssl seems to be fine.

> Any ideas on how to proceed appreciated.

Hope I could help.

Kind regards,
Michael

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane