Re: Mail.app: Reindexing Inbox
Re: Mail.app: Reindexing Inbox
- Subject: Re: Mail.app: Reindexing Inbox
- From: cricket <email@hidden>
- Date: Thu, 3 Apr 2003 10:46:53 -0800
This has been a common request from people that use procmail, for
example. What we're hoping to do is add an applescript command to
'refresh' the view of a mailbox in Mail.
There is at least one way you could pull this off right now, though.
You can use the message viewer class (10.2.3 or later) to select
mailboxes in the UI. So, what you could do is this:
tell app "Mail"
set yahooInbox to mailbox "In" of account "Yahoo"
tell message viewer 1
set selected mailboxes to {}
-- do your append of data here
set selected mailboxes to {yahooInbox}
end tell
end tell
Mail notices that the modification date on the mbox file is out of sync
with the table_of_contents file and that triggers a check of the mbox
file to see if there is new data that needs to be added to the TOC.
- cricket
On Thursday, April 3, 2003, at 6:38 AM, Ed wrote:
Mike,
Thanks for the suggestion, but that's not exactly what I'm looking
for. As I mentioned, I have a program that downloads my Yahoo! mail
from the web site. In short, it logs onto the web site and parses the
HTML documents and saves each message into a standard mbox format
file.
What I figured out is that I can set up a dummy e-mail account in
Mail.app to store these messages. So currently I have an account
called email@hidden in Mail.app which is only a container for
my Yahoo! mail since it doesn't have a pop account configured and it
is set to never check for mail. I have configured the program I use to
download messages to
~/Library/mail/email@hidden/INBOX.mbox/mbox.
Additionally, there is another perl script included with the program
that latches onto a POP request to a real mail account and runs the
perl script at that time. What I'm getting at is the following: If I
have Mail.app open when this program writes to my mbox file, it
doesn't automatically update Mail.app because Mail.app has no idea
that activity is happening with the mailbox file so it doesn't reindex
and display the messages. The only way I've figured out how to do this
is to close the Mail.app window and open it again. Which can get
annoying quickly.
I wanted to write a little applescript that will tell Mail.app to
reindex the email@hidden folder in the "In" box automatically.
There's an option in the program configuration to run a command when
you've received mail, so I thought it'd be the perfect solution.
The program is called YoSucker and can be downloaded at the following
address:
http://yosucker.sourceforge.net/
I have written a StartupItems script to start the YoPop daemon which I
can send anyone who is interested; just send me an e-mail and I will
forward it to you.
If anyone has any ideas about how to solve this problem, please let me
know. I would greatly appreciate it. (*^ ^*)
Thanks!
Ed
On Wednesday, April 2, 2003, at 10:16 PM, Michael P. Wilson wrote:
Ed,
Good question. Have you tried an "import" of mbox files directly? I
did that when moving from Eudora on Win98 to mail and it worked like
a charm.
BTW: What's the program? Sounds nice and juicy.
- Mike
On Wednesday, Apr 2, 2003, at 10:33 America/New_York, Ed wrote:
Hi Everyone!
Does anyone know how to tell mail.app to reindex the contents of the
INBOX? I am using a program to download my Yahoo mail into a "dummy"
account I created, but when new mail is written to the file mail.app
isn't aware of it so I have to close the window and open it up again
to see if there was any new mail. I've searched everywhere and
cannot find a way to tell mail.app to do it automatically. Does
anyone have any ideas?
Thanks!
Ed
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
-
"Thus nature has no love for solitude, and always leans, as it were,
on some support; and the sweetest support is found in the most
intimate friendship." - Cicero
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.