🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.eudora.mac
Article #52

Scripts to create Eudora personalities

#52
From: John Delacour
Date: Sat, 01 Mar 1997 00:00
177 lines
6061 bytes
The following scripts for A/S and Frontier provide a quick way of
creating new personalities in Eudora.  This has become particularly
urgent since the decision by Demon to terminate the service that
allowed posting to news without the need for a Newsgroups field.

For posting mail to news, now use the address
mail2news@news.demon.co.uk or the equivalent and modify one of the
ExtraHeader variables in the scripts below
to read:

     set ExtraHeader2 to "Newsgroups: " & title

When you get the dialog, just type in the name of the newgroup.

In the Frontier Script, just run

eudora.PersonalityCreate("comp.mail.eudora.mac")

With either of these scripts, modified with your own settings, in the
OSA menu or the Scripts menu, it will be possible to create mail for
any newsgroup quickly and painlessly.

The newsgroups thing is just one use for the scripts which happens to
be topical.  You can of course adapt them for any use.


on createPersonality()
  tell application "Eudora"
    activate
    try
      close window "Settings"
    on error
    end try
    display dialog "   Please name your new personality. It will
    take a moment to set up your new personality" default answer ""
    set title to text returned of result
    set newP to make personality
    set POP to "very@post.good.com"
    set SMTP to "post.good.com"
    set RealName to "Karl Marx"
    set ReturnAddress to "KM@very.good.com"
    set LeaveOnServer to "n"
    set AddDomain to ""
    --set SignatureFile to  -1  Standard Sig
    --set SignatureFile to  1  Alternative Sig
    set SignatureFile to 0 -- No Sig
    set stationeryfile to "mail2news"
    set CheckInterval to 0
    set DoCheck to "n" -- Don't check on manual checks
    set DontSend to "y"
    set NoPassword to "n"
    set Kerberos to "n"
    set PrefCCReply to "n"
    set APOP to "n"
    set ExtraHeader1 to "X-Mailer: Eudora Pro [Macintosh]"
    set ExtraHeader2 to "Newsgroups: " & title
    set ExtraHeader3 to "Organization:"
    set ExtraHeader4 to ""
    if Kerberos = "y" then
      set APOP to "n"
      set NoPassword to "y"
    end if
    if APOP = "y" then
      Kerberos = "n"
      NoPassword = "y"
    end if
    if NoPassword = "n" then
      Kerberos = "n"
      APOP = "n"
    end if
    tell newP
      set name to title
      set setting 3 to POP
      set setting 4 to SMTP
      set setting 5 to ReturnAddress
      set setting 18 to LeaveOnServer
      set setting 57 to APOP
      set setting 77 to RealName
      set setting 83 to DontSend
      set setting 92 to PrefCCReply
      set setting 116 to AddDomain
      set setting 117 to Kerberos
      set setting 119 to NoPassword
      set setting 183 to DoCheck
      set setting 186 to SignatureFile
      set setting 4401 to ExtraHeader1
      set setting 4402 to ExtraHeader2
      set setting 4403 to ExtraHeader3
      set setting 4404 to ExtraHeader4
      set setting 5706 to stationeryfile
    end tell
    display dialog "   A new personality, \"" & title & "\" has been
created.
    Open your Settings window to make sure
    it is as you want it"
  end tell
end createPersonality
createPersonality()


-------

on personalityCreate(title = nil) {
	if !eudora.isrunning() {
		return};
	if title == nil {
		dialog.ask("Please name your new personality",@p);
		title = p};
	with eudora, objectmodel, eventinfo {
		speaker.sound(1,50,400);
		local {
			newP = make(personality,"","");
			POP = "very@post.good.com";
			SMTP = "post.good.com";
			RealName = "Karl Marx";
			ReturnAddress = "KM@very.good.com";
			LeaveOnServer = "n";
			AddDomain = "";
			<<SignatureFile = -1 << Standard Sig
			<<SignatureFile = 1 << Alternative Sig
			<< change these into left guillemets (option backslash)
			SignatureFile = 0;  No Sig
			Stationery = "mail2news";
			CheckInterval = 0;
			DoCheck =  "n";  Don't check on manual checks
			DontSend = "y";
			NoPassword = "n";
			Kerberos = "n";
			PrefCCReply = "n";
			APOP = "n";
			ExtraHeader1 = "X-Mailer: Eudora Pro [Macintosh]";
			ExtraHeader2 = "Newsgroups: " + title;
			ExtraHeader3 = "Organization: ";
			ExtraHeader4 = ""};
		if Kerberos == "y" {
			APOP = "n";
			NoPassword = "y"};
		if APOP == "y" {
			Kerberos = "n";
			NoPassword = "y"};
		If NoPassword == "n" {
			Kerberos = "n";
			APOP = "n"};
		with newP {
			speaker.sound(1,60,1500);
			set(name, title);
			set (setting[3], POP);
			set (setting[4], SMTP);
			set (setting[5], ReturnAddress);
			speaker.sound(1,70,3000);
			set (setting[18], LeaveonServer);
			set (setting[57], APOP);
			set (setting[77], RealName);
			set (setting[83], DontSend);
			set (setting[92], PrefCCReply);
			speaker.sound(1,80,4500);
			set (setting[116], AddDomain);
			set (setting[117], Kerberos);
			set (setting[119], NoPassword);
			set (setting[183], DoCheck);
			set (setting[186], SignatureFile);
			speaker.sound(1,90,6000);
			set (setting[4401], ExtraHeader1);
			set (setting[4402], ExtraHeader2);
			set (setting[4403], ExtraHeader3);
			set (setting[4404], ExtraHeader4);
			set (setting[5706], Stationery)};
		speaker.sound(10,120,7000);
		speaker.sound(30,80,1000);
		dialog.notify("A new personality, "+title+" \
		has been created. Open your Settings window to \
		make sure it is as you want it");
		bringtofront()}}


	JD
Technical Details
Message-ID: <v03101706af3e58529823@[158.152.20.126]>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10f6fd,5985f438b6009e3c,start
X-Google-Attributes: gid10f6fd,public
X-Google-Thread: 10f989,5985f438b6009e3c,start
X-Google-Attributes: gid10f989,public
From: John Delacour <JD@eremita.demon.co.uk>
Subject: Scripts to create Eudora personalities
Date: 1997/03/01
Message-ID: <v03101706af3e58529823@[158.152.20.126]>
X-Deja-AN: 222402986
X-Mail2News-User: JD@eremita.demon.co.uk
X-Sender: (Unverified)
X-Mail2News-Path: relay-7.mail.demon.net!relay-6.mail.demon.net!eremita.demon.co.uk
Newsgroups: comp.mail.eudora.mac,demon.ip.support.mac