MUAとnottoouchアドレスの多くを使用してください。

MUAとnottoouchアドレスの多くを使用してください。

MUAを使用しようとしています。たくさんnottoomuch-addresses.sh以下の説明に従って、スクリプトを使用してアドレスをオートコンプリートします。http://alot.readthedocs.org/en/latest/configuration/contacts_completion.html

[[[abook]]]
      type = shellcommand
      command = nottoomuch-addresses.sh
      regexp = \"(?P<name>.+)\"\s*<(?P<email>.*.+?@.+?)>
      ignorecase = True

多くの範囲でオートコンプリートしようとすると、次のエラーメッセージが表示されます。 completition error: abook command "nottoomuch-addresses.sh" returned with return code 2

シェルコマンドではなくただのスクリプトなので、スクリプトに完全なPATHを与えて、複数の構成フォルダにスクリプトを移動してみてみましたが、問題はまだあります。

だから何をすべきか疑問に思います。

ベストアンサー1

これは私にとって効果的です。

[[[abook]]]
type = shellcommand
command = nottoomuch-addresses.sh
regexp = '"(?P<name>.+?)" <(?P<email>.+?)>'
ignorecase = True

おすすめ記事