Re: Suggestion For The List
Re: Suggestion For The List
- Subject: Re: Suggestion For The List
- From: Ron Hunsinger <email@hidden>
- Date: Thu, 06 Jun 2013 14:47:24 -0700
On Jun 6, 2013, at 1:37 PM, Harmony Neil <email@hidden> wrote:
> just a quick suggestion … Could the list owners put (xcode) or something in the subject line?
Let's please not add gratuitous verbiage to the Subject line. That means that much less room to see the actual subject on-screen.
Instead, look at the List-Id header. It will contain, for example, xcode-users.lists.apple.com.
If you're using Mail, there's a bug, which I filed but Apple closed as a duplicate, that headers are not always all present when a message first arrives. My filter script detects a missing Recieved header as an indication that other headers are missing too, and marks the message as needing to be re-examined 4 seconds later. After three 4-second deferrals with full headers not forthcoming, the script gives up and leaves the message in my Inbox. Once all the headers are present, mail sent to the address I gave the list but not containing a List-Id header are either spam or someone trying to reply off-list, which I junk either way.
The deferral is handled by marking the message somehow (I use an otherwise-unused background color), and invoking a shell script, (once, no matter how many messages get deferred) with:
do shell script "~/bin/check_deferred_mail undefer &>/dev/null &"
That shell script is:
#!/bin/bash
scripts=~/Library/"Application Scripts"/com.apple.mail
lockname=${TMPDIR:=$(/usr/bin/getconf DARWIN_USER_TEMP_DIR)}/deferred_mail.lock
command=${1:-unread}
if [[ "$command" = undefer ]]; then /bin/sleep 4; fi
/usr/bin/lockfile -l 60 "$lockname"
/usr/bin/osascript "$scripts/ErstesoftCentral.scpt" "${command}"
rm -f "$lockname"
The AppleScript it invokes is the same one I have Mail use to filter the messages. It knows, from the fact that its run handler was invoked with an "undefer" command, that it should build a list of messages marked deferred. (By way of contrast, when Mail calls the script, it does so by invoking the "perform mail action with messages" handler with the list of new messages pre-built.)
-Ron Hunsinger
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden