Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/bin/unix/plumbmailapp

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/opt/p9p/bin/rc

rfork e

while () {
	eval `{plumbread plumb/showmail}
	msgdir=`{echo $data | sed 's/Mail/mail/'}
	msgid=`{9p read $msgdir^/messageid}

	osascript -e 'tell application "Mail"
		set myInbox to mailbox "INBOX" of account 1
		set myMessages to every message of myInbox
		repeat with theMessage in myMessages
			if message id of theMessage is "'$msgid'" then
				open theMessage
			end if
		end repeat
	end tell'
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].