Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Howto open pine with body text?

1 view
Skip to first unread message

mechanic

unread,
Sep 26, 2011, 7:24:51 AM9/26/11
to
I'm trying to structure some commands to parse the Firefox 'Send
File' command to open alpine with sensible subject and body
contents, but I can't see (in 'alpine --help') how to put some text
into the body of a new compose window when opening alpine - any
thoughts?

--
mechanic

Lucas Levrel

unread,
Sep 26, 2011, 4:09:03 PM9/26/11
to
I'd try to make a wrapper script that:
- puts the contents in a temp file,
- calls alpine -F <temp_file> (or uses smart initial keystrokes).

Good luck!
--
LL

mechanic

unread,
Sep 27, 2011, 12:36:49 PM9/27/11
to
Thanks, I don't really want to send the page (there are one or two
Firefox addons that do that) but just to generate an email with the
URL in the mail body and maybe the page title in the 'subject' of
the message. Using FF prefs I can point the 'mail to' application
listed in Edit >> Prefs to a script that starts Alpine with all the
info in the subject field - I just need to work on parsing that! And
make it cope with 'mail to' links on the page as well as 'Send
Link' commands from the menu bar.

--
mechanic

cha...@washington.edu

unread,
Sep 27, 2011, 11:11:23 PM9/27/11
to
On Sep 27, 11:36 am, mechanic <mecha...@example.net> wrote:

> Thanks, I don't really want to send the page (there are one or two
> Firefox addons that do that) but just to generate an email with the
> URL in the mail body and maybe the page title in the 'subject' of
> the message. Using FF prefs I can point the 'mail to' application
> listed in Edit >> Prefs to a script that starts Alpine with all the
> info in the subject field - I just need to work on parsing that! And
> make it cope with  'mail to' links on the page as well as 'Send
> Link' commands from the menu bar.

try the commands:

echo ABC | alpine som...@somewhere.com

and

alpine som...@somewhere.com < somefile.txt

those put the text "ABC" or the text of somefile.txt in the body of
the message.
On the other hand, modulo quoting as your shell needs it, the
following command should
put "no way" in the body of the message, while it should put "look at
this" in the subject

./alpine -url mailto:som...@somewhere.com?subject=look%20at
%20%this&body=no%20way

(your shell may need to quote ? and/or &.)

--
Eduardo
http://patches.freeiz.com/alpine/

mechanic

unread,
Sep 29, 2011, 5:23:49 PM9/29/11
to
On Tue, 27 Sep 2011 20:11:23 -0700 (PDT), cha...@washington.edu
wrote:

> try the commands:
> ...

Thanks, Eduardo!
--
mechanic
0 new messages