Re: a question about Pantomime
Re: a question about Pantomime
- Subject: Re: a question about Pantomime
- From: Lorenzo <email@hidden>
- Date: Thu, 08 Apr 2004 11:34:49 +0200
Hi,
so, in order to take the current user default internet parameters:
Username, Password, Email (from), Hostname, SMTP
Require Authentication, and if yes, Username and Password to authenticate,
I have just taken a look at the file
~/Library/Preferences/com.apple.internetconfig.plist
using BBEdit, but unlikely you say, the strings "SMTPHost" or "SMTP" don't
exist.
Instead I found something in the file:
~/Library/Preferences/com.apple.mail.plist
it contains a DeliveryAccounts array, whose the first item contains the
Hostname = "smtp.mac.com". Good Start.
Just below a new array "MailAccounts" contains some items.
The first item it's something strange. I never defined it. It reports
AccountType = LocalAccount and doesn't report the information I need. I
presume I should skip it all the time.
The second item reports my username "archidea" but there is no information
to connect this account to the DeliverAccount (thus the SMTP).
I noted that it reports AccountType = iToolsAccount and AccountName =
email@hidden (my email address).
So, since there could be many DeliverAccounts items and many MailAccounts
items I don't know how to connect the AccountName "email@hidden" to its
SMTP host.
I noted that in the plist file, this "connection-mail-to-deliver-account"
information is missed only in case of mac.com accounts (where
AccountType = iToolsAccount).
Instead if I define a new POP MailAccount (AccountType = POPAccount), it
reports the SMTPIdentifier, the Hostname and the EmailAddresses keys
properly. This works. But, how to get the internet parameters when the email
account is a mac.com account?
Last, I suppose than I need to get the passwords. I hope no, but if I need,
should I access the keychain? If so, amazing: a new chapter to learn.
And, guess what, why do I need to use Pantomime and retrive all of those
informations in order to send an email? Because "sometimes" the Cocoa API
"deliverMessage" doesn't work.
Best Regards
--
Lorenzo
email: email@hidden
>
>> If I wanted to use a default "from" address and "outgoing mail
>
>> server" string as it is set by the mail.app, how would I go about
>
>> getting them?
>
>
>
> I think you might want to look at
>
> ~/Library/Preferences/com.apple.internetconfig.plist and search for
>
> the "SMTPHost" key. There must be an other key for the default "from"
>
> too (I haven't looked for it though).
>
>
>
> Also, if you use Pantomime, you might wanna have a quick look at the
>
> CVS version. The new I/O code is now fully non-blocking, giving the
>
> possibility to use Pantomime fully asynchronously.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.