looking for "metamail" package

Kernels & Hardware, configuring network, installing services

looking for "metamail" package

Postby syscon » 2020-11-01 02:12

I'm looking for a package name "metamail" on debian 10 stable but I can not seems to find it.
That package contains "mailto" I'm using this functions with some programs; is there a replacement or possibility to install it?
syscon
 
Posts: 13
Joined: 2020-10-24 18:35

Re: looking for "metamail" package

Postby sunrat » 2020-11-01 02:34

“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: looking for "metamail" package

Postby syscon » 2020-11-01 03:50

Thanks for quick reply.

I've installed the package but I can not execute "mailto" no such package
Where is it?

Code: Select all
apt-get install mailto
Reading package lists... Done
Building dependency tree       
Reading state information... Done
mailto is already the newest version (1.3.2-3+b2).


On other distros it is in /usr/sbin
syscon
 
Posts: 13
Joined: 2020-10-24 18:35

Re: looking for "metamail" package

Postby sunrat » 2020-11-01 05:30

More info needed. Exactly what commands are you using? How are you elevating to admin privileges?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: looking for "metamail" package

Postby syscon » 2020-11-02 00:48

I'm using osCommerce that uses "mailto" in php code
Code: Select all
 
<td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td>
syscon
 
Posts: 13
Joined: 2020-10-24 18:35

Re: looking for "metamail" package

Postby reinob » 2020-11-02 07:59

syscon wrote:I'm using osCommerce that uses "mailto" in php code
Code: Select all
 
<td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td>


mailto: is, like http: or https: or ftp: a URI scheme, not a program, let alone a debian package.

It is the browser which decides how to handle a mailto: link. Normally they open a mail program, or ask you what you want to do with it.

In Firefox, you can configure that in the preferences. In my case it says "Use Thunderbird (default)", which is just fine in my case.

Are on the server side or on the client side?
If server, there's nothing you need to do, other than serving the web page.
If client, you should configure your browser as you need.
reinob
 
Posts: 858
Joined: 2014-06-30 11:42

Re: looking for "metamail" package

Postby syscon » 2020-11-02 17:21

For example on Gentoo "mailto" is part of the package called: net-mail/metamail
Once installed, the program binary is in: /usr/bin/mailto

My server is using this program.

I think the one I installed on Debian is not correct one. Package info:
Code: Select all
 apt -a list mailto
Listing... Done
mailto/stable,now 1.3.2-3+b2 amd64 [installed]


I can find "mailto" in: /usr/lib/cgi-bin/mailto
Code: Select all
/usr/lib/cgi-bin/mailto
Content-type: text/html

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<!-- mailto v1.3.2 (c) 1994-1999 by Andreas Ley <Andreas.Ley@rz.uni-karlsruhe.de> -->
<HTML>
<HEAD>
<TITLE>WWW Mail Gateway</TITLE>
<LINK REV="made" HREF="mailto:root">
</HEAD>
<BODY>
<H1>WWW Mail Gateway</H1>
<FORM ACTION="/cgi-bin/mailto" METHOD=POST>
<STRONG>Send mail to:</STRONG> <INPUT NAME="To" SIZE=48><BR>
<STRONG>Carbon copy to:</STRONG> <INPUT NAME="Cc" SIZE=48><BR>
<STRONG>Subject:</STRONG> <INPUT NAME="Subject" SIZE=53><BR>
<STRONG>Your eMail address:</STRONG> <INPUT NAME="Reply-To" SIZE=43><BR>
<STRONG>Message:</STRONG><TEXTAREA NAME="Body" COLS=60 ROWS=9></TEXTAREA><BR>
<INPUT TYPE=submit VALUE="Submit">
<INPUT TYPE=reset>
</FORM>
</BODY>
</HTML>


It is not the same package. Running it from the command line gives the the above output.
syscon
 
Posts: 13
Joined: 2020-10-24 18:35

Re: looking for "metamail" package

Postby reinob » 2020-11-02 18:44

https://bugs.debian.org/cgi-bin/bugrepo ... bug=274451

If I need to automatically send an e-mail with an attachment, I use mpack to prepare the message, and then send it with sendmail (the command, not the package, I use postfix).
reinob
 
Posts: 858
Joined: 2014-06-30 11:42


Return to System configuration

Who is online

Users browsing this forum: arochester and 22 guests

fashionable