Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 02, 2015, 05:35:13 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: aliases to create an email from F&R  (Read 5229 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,977
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
aliases to create an email from F&R
« on: October 03, 2005, 07:27:40 PM »
two aliases, add *both*.
first one is for email without subject, second one if for email with subject.

see the two pictures for the aliases to create, OR even easier, copy the following text and go to group aliases tab, right click and say "paste preformatted alias groups" (see third pic):
Quote
1000>>>email2>->email $$1 subject=$$3 | mailto:$$1?subject=$$3>+>email (.*)\s+(s[\s]*=[\s]*)(.*)
1000>>>email1>->email $$1 | mailto:$$1>+>email ([^\s]+)$


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,977
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: aliases to create an email from F&R
« Reply #1 on: October 03, 2005, 07:29:37 PM »
one limitation that i need to fix with an update is that subject cannot yet contain spaces.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,977
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: aliases to create an email from F&R
« Reply #2 on: October 03, 2005, 07:34:23 PM »
for thos who were wondering why we use regular expressions in these alias commands, this is an example of why, in that its letting us pick out subject info.

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: aliases to create an email from F&R
« Reply #3 on: October 04, 2005, 04:47:05 AM »
This is a single group and fixes the problem with subject lines containing no spaces (but currently set so that subjects can have 8 words maximum):

Code: [Select]
1000>>>email>->email $$1 subject=$$2 $$3 $$4 $$5 $$6 $$7 $$8 $$9 | mailto:$$1?subject=$$2%20$$3%20$$4%20$$5%20$$6%20$$7%20$$8%20$$9>n>email $$1 | mailto:$$1>+>^email ([^\s]+)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)

BTW I've noticed the first ever crashes of FARR when clicking on this group to edit sometimes (didn't get chance to see what access violation it told me).

And can we get a key binding to bring up preferences - it is a pain when developing aliases to have to click and select the menu item each time (yeah I'm lazy!) ;)





FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]
« Last Edit: October 04, 2005, 05:04:27 AM by nontroppo »

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: aliases to create an email from F&R
« Reply #4 on: October 04, 2005, 05:14:56 AM »
Slight update, there is no need for two aliases for this group as the subject is optional anyway for the regexp to match:

Quote
1000>>>email>->email $$1 subject=$$2 $$3 $$4 $$5 $$6 $$7 $$8 $$9 | mailto:$$1?subject=$$2%20$$3%20$$4%20$$5%20$$6%20$$7%20$$8%20$$9>+>^email ([^\s]+)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)(?:\s)?([^\s]*)
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: aliases to create an email from F&R
« Reply #5 on: October 04, 2005, 05:23:47 AM »
BTW I also suggest starting all regex's in the future with a ^ as I noticed sometimes other groups match (as their regex didn't have ^ at the beginning so for e.g. matched the subject line of the email group). ^ fixes such problems. I updated the search database to do this.
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,977
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: aliases to create an email from F&R
« Reply #6 on: October 04, 2005, 05:29:37 AM »
thanks nontroppo

1) yes you are right about adding ^
2) i've fixed the ability handle spaces at least for mailto and urls (they are automatically converted to %20)
3) i will add hotkey for popping up preferences
4) i noticed an error myself when pasting aliases in, so i will look into that.

5) i will also add an option to main configuration that lets you say that a certain character need to start any alias command
so that if you have an alias called email, and set the option prefix character to $ then it wont trigger any aliases or regular expression matches unless you type $email.