[kdepim-users] sending a file via cli?

Ingo Klöcker kloecker at kde.org
Mon Jun 23 22:07:03 BST 2008


On Monday 23 June 2008, Pablo Sanchez wrote:
> Howdy,
>
> I'm looking for a way to send an attachment via the CLI.  Basically
> what I'd like to do is emulate `konqueror's `send file'
> functionality.
>
> What `send file' does is:
>
> o Open a Composer window
> o Set the `Subject:' to the file name
> o and attaches the file
>
> I'm not looking to send the file automagically.  I'm just getting
> lazy about typing `konqueror .'  :)

kmail --attach "<filepath>" --subject "<filename>"

where <filename> is the name of the file and <filepath> is the full 
filepath, e.g. /home/user/filename.bla. Of course, you can omit the 
double quotes if <filepath>/<filename> does not contain spaces or other 
characters that have a special meaning in the CLI.


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdepim-users/attachments/20080623/02196231/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM users mailing list
kdepim-users at kde.org
https://mail.kde.org/mailman/listinfo/kdepim-users


More information about the kdepim-users mailing list