[Alpine-info] automated sending
mbmiller+l at gmail.com
Sun Dec 6 12:02:02 PST 2009
On Fri, 4 Dec 2009, Doug Barton wrote:
> Mike Miller wrote:
>> Is it possible to send text using Alpine but without having the alpine
>> interface pop up? This brings up Alpine:
>> echo "this is a test" | alpine person at wherever.com
>> Is there a way to make it automatically send?
> Have a custom pinerc file with the commands to send the message and use
> the -p argument to alpine.
That's an interesting idea but I don't know what commands cause Alpine to
send the message without opening the interface. Is the trick to use the
"initial-keystroke-list" or the "-I" argument? See below.
Unfortunately, it says "You cannot include any input to the composer in
the initial keystrokes," and I think that means that this won't work:
The idea there was to say "send (Ctrl-X), Yes".
Initial Keystrokes: Alpine will execute this comma-separated sequence
of commands upon startup. This allows users to get Alpine to start in any
of its menus/screens. You cannot include any input to the composer in the
initial keystrokes. The key <Return> is represented by a ``CR'' in the
keystroke list; the spacebar is designated by the letters ``SPACE''.
Control keys are two character sequences beginning with ``^'', such as
``^I''. A tab character is ``TAB''. Function keys are ``F1'' - ``F12'' and
the arrow keys are ``UP'', ``DOWN'', ``LEFT'', and ``RIGHT''. A
restriction is that you can't mix function keys and character keys in this
list even though you can, in some cases, mix them when running Alpine. A
user can always use only character keys in the startup list even if he or
she is using function keys normally, or vice versa. If an element in this
list is a string of characters surrounded by double quotes (") then it
will be expanded into the individual characters in the string, excluding
the double quotes.
Configuration equivalent: initial-keystroke-list
More information about the Alpine-info