npm2deb
npm2deb copied to clipboard
use xdg-email to send itp mail
Currently we have to manually copy paste the contents of package_itp.mail to email program. We can use xdg-open command to open default email program so one more step can be automated. We can do this after the build is completed.
xdg-email [--utf8] [--cc address] [--bcc address] [--subject text] [--body text
] [--attach file] [ mailto-uri | address(es) ]
How is it going to help those who run sid in container ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
shanavas [email protected] wrote:
How is it going to help those who run sid in container ?
It will help people who are running npm2deb directly on bare metal like me or in a VM. So we should make it optional and enable only when DISPLAY variable is set. In containers DISPLAY variable will be set and we can disable it.
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEKnl0ri/BUtd4Z9pKzh+cZ0USwioFAliXZkcACgkQzh+cZ0US wip9IA/+Ik6DahcOsQq3bgVp+dCNVoJvXEVRwi7c4+cbV1lmEwIVCyenfphdcgez 9wyQLHsprBj2R2XghSUtX+yxGjSbKyjpQ4L01j4LT9KGgnuFYjAP6KqSQuTZhU1r PJN2s+nT+8JqU29wPaWgHqPUFabuCPft+2fN1YIBBwF5FyMAcHPK1bRMdfZ5oxTa DQF3gQ1bHv39PZ1bAs5Mfumxq6Qkn92cP9H7d2L9Ph995iS95OnihrbZLdA7FUSe d55yL4MbPu8Jo7KZFKxchvh0RLOJVjIfgQ/YRIvOkrWEIiA9cIH5VsuhEyZDoxhL 1TS/BLuXFaT7G8YKN8E8c1ynksXPRCdUGMGmU1mWC14LvGYLaOe6fVacKhuF8MDx 7inI/hLRv7YG5dgLsyl3S3cQIc2CUNRm/6PB9EE1gQKRZNJKEBvZKLqvwIVG741w 66/4bELzDqLSCB6yzjIogR6mNRo18H1W9l81TlSWpMA4xaL8I0oBVu2EhFC96nEO Cph2XgwsrVM3QUxLsRwyx3Rsz+MNdfSIv4TqcIx9eDK1sdnyZdStVpvgAMwdR6s+ 4WQny6jdAcaEPgraGuE2VmmNbV5c0mNIlLFDJMgKwg1c4c+lcXOB/RwYFvRSxY7V vBAChVXSEocCveO3RSoRv+6c90XbFVUMVtB92kcFxjeRf0DijvE= =JboD -----END PGP SIGNATURE-----
something like:
xdg-email --subject "ITP: node-make-iterator -- FIX_ME write the Debian package description" \
--body "$(cat /tmp/node-make-iterator_itp.mail)" [email protected]
but xdg-email silently ignores extra headers so I can't pass X-Debbugs-CC
for thunderbird users, versions > 1:52.5.0-1 it's easy to turn on support for the X-Debbugs-CC custom header:
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=379304
- https://salsa.debian.org/mozilla-team/thunderbird/commit/5d564397839d819af79d1c7547a4ee14031e777e?view=parallel
I tried this (note that you need to give it the full path to the message body):
thunderbird -compose "to='[email protected]',subject='ITP: node-make-iterator -- FIX_ME write the Debian package description',X-Debbugs-CC='[email protected]',message=/tmp/node-make-iterator/node-make-iterator_itp.mail"
but it still ignores the X-Debbugs-CC custom header