Automatically attach a file to a mail with mutt
Clash Royale CLAN TAG#URR8PPP
I am searching for a way to automatically attach a file ~/.mutt/example.vcf
to any mail I compose with mutt
.
I tried something like send-hook 'attach-file ~/.mutt/fauve.vcf'
but it doesn't work.
Have you, please, any idea how to do that ?
email mutt
add a comment |
I am searching for a way to automatically attach a file ~/.mutt/example.vcf
to any mail I compose with mutt
.
I tried something like send-hook 'attach-file ~/.mutt/fauve.vcf'
but it doesn't work.
Have you, please, any idea how to do that ?
email mutt
add a comment |
I am searching for a way to automatically attach a file ~/.mutt/example.vcf
to any mail I compose with mutt
.
I tried something like send-hook 'attach-file ~/.mutt/fauve.vcf'
but it doesn't work.
Have you, please, any idea how to do that ?
email mutt
I am searching for a way to automatically attach a file ~/.mutt/example.vcf
to any mail I compose with mutt
.
I tried something like send-hook 'attach-file ~/.mutt/fauve.vcf'
but it doesn't work.
Have you, please, any idea how to do that ?
email mutt
email mutt
edited Aug 29 '15 at 19:58
fauve
asked Jan 11 '14 at 21:29
fauvefauve
311320
311320
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I dont know mutt, but I can tell you in mail or mailx I usually do uuencode myAttachment.tar.gz attachmentName | mail -s "Here is that dolphin porn you requested" somedude@earthlink.cc.net.foo
uuencode wasn’t installed in my system and was able to send mails with mutt.
– fauve
Jan 13 '14 at 17:34
add a comment |
[edit]
Easiest solution consist in to just create a simple alias for mutt:
alias mutt="/usr/bin/mutt -a $HOME/.std.vcf"
so if you enter mutt
mutt -a $HOME/.std.vcf
will be executed. That's it!
Normally in order to compose a email with attachments mime-construct
is used:
mime-construct --to "nerd@example" --subject 'hi there'
--string "test" --file-attach /etc/motd
There are some solutions to automaticly add your *.vcf:
vcf-to-mutt
muttquery.py
However, it is unusual to use vcf on unices where a signature is more common.
I haven’t mime-construct installed so I can send mails with mutt. Then, if what I want to do need the installation of mime-construct, I will install it.
– fauve
Jan 11 '14 at 23:51
Thank you for vcf-to-mutt and muttquery. I will try them. Yes, I can use a link to my vcf but some email program sync automatically the addressbook when they found a vcf as an attachment. That’s why I prefer this way :)
– fauve
Jan 13 '14 at 17:36
Vcf-to-mutt is an interesting script. Thank you o/ but it doesn’t resolve my problem :) Perhaps the solution are very complicated. Then as you tell me I will probably forget this idea and only quote the link to my vcard in a signature. Thank you.
– fauve
Jan 16 '14 at 18:25
updated alias solution
– user55518
Jan 16 '14 at 19:19
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f108916%2fautomatically-attach-a-file-to-a-mail-with-mutt%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I dont know mutt, but I can tell you in mail or mailx I usually do uuencode myAttachment.tar.gz attachmentName | mail -s "Here is that dolphin porn you requested" somedude@earthlink.cc.net.foo
uuencode wasn’t installed in my system and was able to send mails with mutt.
– fauve
Jan 13 '14 at 17:34
add a comment |
I dont know mutt, but I can tell you in mail or mailx I usually do uuencode myAttachment.tar.gz attachmentName | mail -s "Here is that dolphin porn you requested" somedude@earthlink.cc.net.foo
uuencode wasn’t installed in my system and was able to send mails with mutt.
– fauve
Jan 13 '14 at 17:34
add a comment |
I dont know mutt, but I can tell you in mail or mailx I usually do uuencode myAttachment.tar.gz attachmentName | mail -s "Here is that dolphin porn you requested" somedude@earthlink.cc.net.foo
I dont know mutt, but I can tell you in mail or mailx I usually do uuencode myAttachment.tar.gz attachmentName | mail -s "Here is that dolphin porn you requested" somedude@earthlink.cc.net.foo
answered Jan 12 '14 at 3:07
Gregg LeventhalGregg Leventhal
2,994134375
2,994134375
uuencode wasn’t installed in my system and was able to send mails with mutt.
– fauve
Jan 13 '14 at 17:34
add a comment |
uuencode wasn’t installed in my system and was able to send mails with mutt.
– fauve
Jan 13 '14 at 17:34
uuencode wasn’t installed in my system and was able to send mails with mutt.
– fauve
Jan 13 '14 at 17:34
uuencode wasn’t installed in my system and was able to send mails with mutt.
– fauve
Jan 13 '14 at 17:34
add a comment |
[edit]
Easiest solution consist in to just create a simple alias for mutt:
alias mutt="/usr/bin/mutt -a $HOME/.std.vcf"
so if you enter mutt
mutt -a $HOME/.std.vcf
will be executed. That's it!
Normally in order to compose a email with attachments mime-construct
is used:
mime-construct --to "nerd@example" --subject 'hi there'
--string "test" --file-attach /etc/motd
There are some solutions to automaticly add your *.vcf:
vcf-to-mutt
muttquery.py
However, it is unusual to use vcf on unices where a signature is more common.
I haven’t mime-construct installed so I can send mails with mutt. Then, if what I want to do need the installation of mime-construct, I will install it.
– fauve
Jan 11 '14 at 23:51
Thank you for vcf-to-mutt and muttquery. I will try them. Yes, I can use a link to my vcf but some email program sync automatically the addressbook when they found a vcf as an attachment. That’s why I prefer this way :)
– fauve
Jan 13 '14 at 17:36
Vcf-to-mutt is an interesting script. Thank you o/ but it doesn’t resolve my problem :) Perhaps the solution are very complicated. Then as you tell me I will probably forget this idea and only quote the link to my vcard in a signature. Thank you.
– fauve
Jan 16 '14 at 18:25
updated alias solution
– user55518
Jan 16 '14 at 19:19
add a comment |
[edit]
Easiest solution consist in to just create a simple alias for mutt:
alias mutt="/usr/bin/mutt -a $HOME/.std.vcf"
so if you enter mutt
mutt -a $HOME/.std.vcf
will be executed. That's it!
Normally in order to compose a email with attachments mime-construct
is used:
mime-construct --to "nerd@example" --subject 'hi there'
--string "test" --file-attach /etc/motd
There are some solutions to automaticly add your *.vcf:
vcf-to-mutt
muttquery.py
However, it is unusual to use vcf on unices where a signature is more common.
I haven’t mime-construct installed so I can send mails with mutt. Then, if what I want to do need the installation of mime-construct, I will install it.
– fauve
Jan 11 '14 at 23:51
Thank you for vcf-to-mutt and muttquery. I will try them. Yes, I can use a link to my vcf but some email program sync automatically the addressbook when they found a vcf as an attachment. That’s why I prefer this way :)
– fauve
Jan 13 '14 at 17:36
Vcf-to-mutt is an interesting script. Thank you o/ but it doesn’t resolve my problem :) Perhaps the solution are very complicated. Then as you tell me I will probably forget this idea and only quote the link to my vcard in a signature. Thank you.
– fauve
Jan 16 '14 at 18:25
updated alias solution
– user55518
Jan 16 '14 at 19:19
add a comment |
[edit]
Easiest solution consist in to just create a simple alias for mutt:
alias mutt="/usr/bin/mutt -a $HOME/.std.vcf"
so if you enter mutt
mutt -a $HOME/.std.vcf
will be executed. That's it!
Normally in order to compose a email with attachments mime-construct
is used:
mime-construct --to "nerd@example" --subject 'hi there'
--string "test" --file-attach /etc/motd
There are some solutions to automaticly add your *.vcf:
vcf-to-mutt
muttquery.py
However, it is unusual to use vcf on unices where a signature is more common.
[edit]
Easiest solution consist in to just create a simple alias for mutt:
alias mutt="/usr/bin/mutt -a $HOME/.std.vcf"
so if you enter mutt
mutt -a $HOME/.std.vcf
will be executed. That's it!
Normally in order to compose a email with attachments mime-construct
is used:
mime-construct --to "nerd@example" --subject 'hi there'
--string "test" --file-attach /etc/motd
There are some solutions to automaticly add your *.vcf:
vcf-to-mutt
muttquery.py
However, it is unusual to use vcf on unices where a signature is more common.
edited Jan 18 '14 at 21:36
answered Jan 11 '14 at 22:51
user55518
I haven’t mime-construct installed so I can send mails with mutt. Then, if what I want to do need the installation of mime-construct, I will install it.
– fauve
Jan 11 '14 at 23:51
Thank you for vcf-to-mutt and muttquery. I will try them. Yes, I can use a link to my vcf but some email program sync automatically the addressbook when they found a vcf as an attachment. That’s why I prefer this way :)
– fauve
Jan 13 '14 at 17:36
Vcf-to-mutt is an interesting script. Thank you o/ but it doesn’t resolve my problem :) Perhaps the solution are very complicated. Then as you tell me I will probably forget this idea and only quote the link to my vcard in a signature. Thank you.
– fauve
Jan 16 '14 at 18:25
updated alias solution
– user55518
Jan 16 '14 at 19:19
add a comment |
I haven’t mime-construct installed so I can send mails with mutt. Then, if what I want to do need the installation of mime-construct, I will install it.
– fauve
Jan 11 '14 at 23:51
Thank you for vcf-to-mutt and muttquery. I will try them. Yes, I can use a link to my vcf but some email program sync automatically the addressbook when they found a vcf as an attachment. That’s why I prefer this way :)
– fauve
Jan 13 '14 at 17:36
Vcf-to-mutt is an interesting script. Thank you o/ but it doesn’t resolve my problem :) Perhaps the solution are very complicated. Then as you tell me I will probably forget this idea and only quote the link to my vcard in a signature. Thank you.
– fauve
Jan 16 '14 at 18:25
updated alias solution
– user55518
Jan 16 '14 at 19:19
I haven’t mime-construct installed so I can send mails with mutt. Then, if what I want to do need the installation of mime-construct, I will install it.
– fauve
Jan 11 '14 at 23:51
I haven’t mime-construct installed so I can send mails with mutt. Then, if what I want to do need the installation of mime-construct, I will install it.
– fauve
Jan 11 '14 at 23:51
Thank you for vcf-to-mutt and muttquery. I will try them. Yes, I can use a link to my vcf but some email program sync automatically the addressbook when they found a vcf as an attachment. That’s why I prefer this way :)
– fauve
Jan 13 '14 at 17:36
Thank you for vcf-to-mutt and muttquery. I will try them. Yes, I can use a link to my vcf but some email program sync automatically the addressbook when they found a vcf as an attachment. That’s why I prefer this way :)
– fauve
Jan 13 '14 at 17:36
Vcf-to-mutt is an interesting script. Thank you o/ but it doesn’t resolve my problem :) Perhaps the solution are very complicated. Then as you tell me I will probably forget this idea and only quote the link to my vcard in a signature. Thank you.
– fauve
Jan 16 '14 at 18:25
Vcf-to-mutt is an interesting script. Thank you o/ but it doesn’t resolve my problem :) Perhaps the solution are very complicated. Then as you tell me I will probably forget this idea and only quote the link to my vcard in a signature. Thank you.
– fauve
Jan 16 '14 at 18:25
updated alias solution
– user55518
Jan 16 '14 at 19:19
updated alias solution
– user55518
Jan 16 '14 at 19:19
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f108916%2fautomatically-attach-a-file-to-a-mail-with-mutt%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown