GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Clicking on a Mailto link, usually brings up my email client, for sending a message to someone.
What I want to do is when I click on the link, it will first run a script, that will
1.) minimize the browser
2.) bring up the email client
3.) Enter the mailto address into the address
4.) enter text into the body
5.) attach another file to the message.
6.) send the message
7.) maximize the browser
I am trying to apply for a general tech job from a website with lots of links to potential employers. I know its better to write a new cover letter for every employer, but if each cover letter is pretty much the same text, why bother.
I was thinking of maybe using UID's for this, but maybe I still don't know a lot about linux yet.
Why not adopt the spammer method and just harvest the email addresses from the page and automate the responses external to the browser? Sounds easier to me than trying to coordinate between two apps. Just process the list:
Code:
psuedo code:
For each x in (spamlist)
Mail: Subject="Your Savior Has Arrived"
To=x
Body="High! I'm kennybob and I'm the answer to all your
prayers. Please see my attached CV and read about
how great I really am!" + addressblock
Attach="~\kennybobCV.pdf"
Mail:Send
Loop
Not what I want. I want to go between 2 apps. If I was in Windows, I could probably do it with VB. But now that I am on Linux and playing with scripts and all, and sometimes the linux scripts can do so much, I just want to know if it's feasible.
Sounds like a man sold on a method rather than a solution. That's always bothered me a little. Mostly because I've shot myself in the foot so often by being obsessed with the implementation rather than the result.
Be that as it may, you're really not far off. The MailTo link should already invoke your default email client and (probably) populate the "To" and "Subject" fields. All that remains is to automate populating the body, adding the attachment, and sending the email. I leave out minimizing and maximizing the browser since that is an aesthetic requirement, not a functional one.
1.) minimize the browser
2.) bring up the email client
3.) Enter the mailto address into the address
4.) enter text into the body
5.) attach another file to the message.
6.) send the message
7.) maximize the browser
I should think that Evolution, for instance, should be able to handle this with either a filter and/or a plugin. Or perhaps make a CLI email program like pine or elm (if they're still around) the default mail client and script command line parameters to be passed to the email client. I think it's do-able. But I still think my suggestion of processing the page or a list of email addresses would have been easier.
Either way, the fun is figuring out how to do it. Even if you fail, you'll still have learned something.
I agree with the OP, I refuse to believe that something I know I could do in Outlook and VB cannot be done in Linux.
I use IceDove as my email client. Thanks for all the positive thoughts about this. I guess its more trouble than its worth, although I might still work on it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.