Re: Need advice on correct configuration for an SMTP Transport account



Hi Sergio,

Thank you for the advice on getting notification of a folder
change - that is pretty much what I had figured out from looking
at some of the code in the demo programs.  I'll be trying that
soon.

However - I am having a problem getting my little console app
to send an email (even though I can easily do it in Tmut now).

I'm debugging the difference between Tmut and my console app,
as we speak - it's looking like the Tmut program successfully
creates an "outbox.ev-summary.mmap" file in the "maildir" folder,
but my console app does NOT create this file - I'm not sure why
at this point, but maybe you (or anyone else) has some insight
into this.

Here is the traceback for Tmut (where it's going to create that
summary file):

#0  maildir_create_summary (lf=0x80a4270, path=0x81a3e88 "/home/rosens/.tmut/mail/sendqueue/smtp-comcast/maildir/outbox.ev-summary.mmap",
    folder=0x81a3e20 "/home/rosens/.tmut/mail/sendqueue/smtp-comcast/maildir/outbox", index=0x0) at camel-maildir-folder.c:242
#1  0xb3988f53 in camel_local_folder_construct (lf=0x80a4270, parent_store=0x80a4218, full_name=0xb78f06ab "outbox", flags=1, ex=0xbfffe468) at camel-local-folder.c:317
#2  0xb399383c in camel_maildir_folder_new (parent_store=0x80a4218, full_name=0xb78f06ab "outbox", flags=1, ex=0xbfffe468) at camel-maildir-folder.c:233
#3  0xb39956ce in get_folder (store=0x80a4218, folder_name=0xb78f06ab "outbox", flags=1, ex=0xbfffe468) at camel-maildir-store.c:226
#4  0xb7805b91 in camel_store_get_folder (store=0x80a4218, folder_name=0xb78f06ab "outbox", flags=1, ex=0xbfffe468) at camel-store.c:321
#5  0xb78e5787 in create_maildir (self=<value optimized out>, name=0xb78f06ab "outbox") at tny-camel-send-queue.c:1229
#6  0xb78e5bf5 in tny_camel_send_queue_get_outbox_default (self=0xb5303110) at tny-camel-send-queue.c:1313
#7  0xb78e4d41 in tny_camel_send_queue_get_outbox (self=0xb5303110) at tny-camel-send-queue.c:1304
#8  0xb76e1253 in tny_send_queue_get_outbox (self=0xb5303110) at tny-send-queue.c:118
#9  0xb78e5feb in create_worker (self=0xb5303110, err=<value optimized out>) at tny-camel-send-queue.c:910
#10 0xb78e6f19 in tny_camel_send_queue_flush (self=0xb5303110) at tny-camel-send-queue.c:1506
#11 0xb78e71d6 in tny_camel_send_queue_set_transport_account (self=0xb5303110, trans_account=0x807b1f8) at tny-camel-send-queue.c:1466
#12 0xb78e738c in tny_camel_send_queue_new (trans_account=0x807b1f8) at tny-camel-send-queue.c:1384

And, here is the traceback for my console app (at the same
point):

#0  maildir_create_summary (lf=0x8063508, path=0x8066728 "/tmp/tinymail.13/mail/sendqueue/SMTP-server-for-Comcast/maildir/outbox.ev-summary.mmap",
    folder=0x80666c0 "/tmp/tinymail.13/mail/sendqueue/SMTP-server-for-Comcast/maildir/outbox", index=0x0) at camel-maildir-folder.c:242
#1  0xb66c8f53 in camel_local_folder_construct (lf=0x8063508, parent_store=0x80634b0, full_name=0xb74f96ab "outbox", flags=1, ex=0xbffff168) at camel-local-folder.c:317
#2  0xb66d383c in camel_maildir_folder_new (parent_store=0x80634b0, full_name=0xb74f96ab "outbox", flags=1, ex=0xbffff168) at camel-maildir-folder.c:233
#3  0xb66d56ce in get_folder (store=0x80634b0, folder_name=0xb74f96ab "outbox", flags=1, ex=0xbffff168) at camel-maildir-store.c:226
#4  0xb7450b91 in camel_store_get_folder (store=0x80634b0, folder_name=0xb74f96ab "outbox", flags=1, ex=0xbffff168) at camel-store.c:321
#5  0xb74ee787 in create_maildir (self=<value optimized out>, name=0xb74f96ab "outbox") at tny-camel-send-queue.c:1229
#6  0xb74eebf5 in tny_camel_send_queue_get_outbox_default (self=0x80578b8) at tny-camel-send-queue.c:1313
#7  0xb74edd41 in tny_camel_send_queue_get_outbox (self=0x80578b8) at tny-camel-send-queue.c:1304
#8  0xb7f29253 in tny_send_queue_get_outbox (self=0x80578b8) at tny-send-queue.c:118
#9  0xb74eefeb in create_worker (self=0x80578b8, err=<value optimized out>) at tny-camel-send-queue.c:910
#10 0xb74eff19 in tny_camel_send_queue_flush (self=0x80578b8) at tny-camel-send-queue.c:1506
#11 0xb74f01d6 in tny_camel_send_queue_set_transport_account (self=0x80578b8, trans_account=0x805d000) at tny-camel-send-queue.c:1466
#12 0xb74f038c in tny_camel_send_queue_new (trans_account=0x805d000) at tny-camel-send-queue.c:1384

For Tmut, it creates the summary file (outbox.ev-summary.mmap) -
but for my console app, nada...

I'm sure I'll zero in on the reason why at some point = but if
you can tell me something that is obvious to you (but clearly
not obvious to me), I'd appreciate the assist...

Thanks,
Steve


Sergio Villar Senin wrote:
En 24/05/10 18:19, Steve Rosen escribiu:
Hi All,

I just wanted to let you know that I (finally!) got Tmut to
actually send out an email, using my Comcast SMTP server!

The solution?  It looks like when I changed the "auth meth"
for the transport account from "login" to "LOGIN" - and viola! -
I could now send out an email...  :)

Now I just need to make my little console application do the
same thing, and I'm (almost) done!  After showing that I can
send an email, I just need to write the code to get notification
that my Gmail inbox has changed (new email, or existing email
deleted, etc.)...


The best way to do that is most likely to perform a refresh_async at scheduled intervals and get the changes in a folder monitor. Tinymail can return a list of headers that were added/deleted/changed.

Br

_______________________________________________ tinymail-devel-list mailing list tinymail-devel-list gnome org http://mail.gnome.org/mailman/listinfo/tinymail-devel-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]