From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 290372714496 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,83d4144633313afc X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.181.8.194 with SMTP id dm2mr6989680wid.2.1414658627724; Thu, 30 Oct 2014 01:43:47 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 10.152.43.34 with SMTP id t2ls324547lal.2.gmail; Thu, 30 Oct 2014 01:43:47 -0700 (PDT) X-Received: by 10.112.217.102 with SMTP id ox6mr17175lbc.19.1414658627081; Thu, 30 Oct 2014 01:43:47 -0700 (PDT) Return-Path: Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by gmr-mx.google.com with ESMTPS id ea4si1007346lbc.0.2014.10.30.01.43.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 01:43:46 -0700 (PDT) Received-SPF: none (google.com: eg@gaute.vetsj.com does not designate permitted sender hosts) client-ip=209.85.217.177; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: eg@gaute.vetsj.com does not designate permitted sender hosts) smtp.mail=eg@gaute.vetsj.com Received: by mail-lb0-f177.google.com with SMTP id 10so3748775lbg.8 for ; Thu, 30 Oct 2014 01:43:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:references:in-reply-to :user-agent:message-id:mime-version:content-type :content-transfer-encoding; bh=WW3Xjef68oX67F4TwY9wEdb6yNbelnk8Dgx9lD8lkrA=; b=Z7nFN3UZovNzEbN4c/PxI1QsqzqJ49wfdKEDlzHwwR8zHkuetpEyEcBfoRAcsUE8mI fDD8W9Vj42mrIR8UAKpWUlSV0OrwCqZqev/LLPKxiZqeIvhTljQk0Zdo81a9Cb87C34e 0NRCLPgyLlJ5zW5+0fNaRZVWqzHXPV91tc1izCIXb8hn7qR/09GcPfRKls3fLxke72Ig I4+0NW4L+xBW8kuH82Pu1zRltrW1cSSiYlZrZ9qnRiD0QHhZUY2Rh9/uMf3cMYc97z0/ uSDQXSQxSIpFAm/OAQ4ksBPDBXeNMiApAyQnlYrOBgRqtIi0a2RyWCSsdCvpGYPmGTuM vc4A== X-Gm-Message-State: ALoCoQml1ESHPBhCj44OhngFKFmfCA71uI0twVhZ6xihi9GVhowNY+3g/u8XEx/ucEePAoD7nFSZ X-Received: by 10.112.173.100 with SMTP id bj4mr17377310lbc.78.1414658626186; Thu, 30 Oct 2014 01:43:46 -0700 (PDT) Return-Path: Received: from localhost ([128.39.46.106]) by mx.google.com with ESMTPSA id qg4sm2931918lbb.36.2014.10.30.01.43.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Oct 2014 01:43:44 -0700 (PDT) Date: Thu, 30 Oct 2014 08:43:57 +0000 From: Gaute Hope Subject: Re: [sup] calling sup with email address as argument To: supmua , Ruthard Baudach References: <1414658155-sup-3764@ruthard-lappi> In-Reply-To: <1414658155-sup-3764@ruthard-lappi> User-Agent: astroid/v068eda5e (https://github.com/gauteh/astroid) Message-Id: <1414658379-astroid-1-lcvfs1mnt9-2157@strange> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Excerpts from Ruthard Baudach's message of October 30, 2014 9:36: > Dear developers, >=20 > To use sup for composing emails following "mailto://" links in HTML > documents, sup should enter compose mode when called with an email > adress as command line argument like this: >=20 > sup supmua@googlegroups.com >=20 > This could be achieved adding the following line of code after > the option definitions in bin/sup: >=20 > ---------------->%---------------------------- > $opts =3D Trollop::options do > version "sup v#{Redwood::VERSION}" > banner < Sup is a curses-based email client. >=20 > Usage: > sup [options] >=20 > Options are: > EOS > opt :list_hooks, "List all hooks and descriptions, and quit." > opt :no_threads, "Turn off threading. Helps with debugging. (Necessaril= y disables background polling for new messages.)" > opt :no_initial_poll, "Don't poll for new messages when starting." > opt :search, "Search for this query upon startup", :type =3D> String > opt :compose, "Compose message to this recipient upon startup", :type = =3D> String > opt :subject, "When composing, use this subject", :type =3D> String, :s= hort =3D> "j" > end >=20 >>>> ## compose message if we have an email address as first command line a= rgument >>>> $opts[:compose] =3D ARGV[0] if ARGV[0] =3D~ /.+@.+\..+/ && !$opts[:com= pose] > ---------------->%---------------------------- That is fine by me, but perhaps you can use trollop? Otherwise I don't think this possibility will be contained in --help. Also, this requires updating the man pages. I think it would be better with a stricter check, perhaps RMail can help out. - gaute =