# Integration of Felamimail as a standard windows destination

**URL:** <http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196>\
**Category:** eGW-developers\
**Created:** [November 9, 2009, 3:20pm UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196 "2009-11-09T15:20:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![CLorenzo-2](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/c/c67d28/32.png) [@CLorenzo-2](http://discourse.egroupware.org/u/CLorenzo-2)\
**Post date:** [November 9, 2009, 3:20pm UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196/1 "2009-11-09T15:20:40Z")

</div>

Hi to all.

In windows there is the posibility of making right click on a file and choose send to -\>

email or other destinations

I will like to know if it is possible to make felamimail to work with this. This could be configured placiong a simple .bat in the C:\documents and settings\username\Send to folder to make the action (ie email with egroupware) the .bat should contain a call to felamimail passing the attachment as a parameter, so the question is:

Is there any url that could be used for this, a url that calls the felamimail compose action passing one attachment?

thanks

---

<div class="post-metadata">

**Author:** ![JDlugi](http://discourse.egroupware.org/user_avatar/discourse.egroupware.org/jdlugi/32/1324_2.png) [@JDlugi](http://discourse.egroupware.org/u/JDlugi)\
**Post date:** [November 9, 2009, 7:38pm UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196/2 "2009-11-09T19:38:29Z")

</div>

> [@](#):
>
> Hi to all.
> 
> In windows there is the posibility of making right click on a file and choose send to -\>
> 
> email or other destinations
> 
> I will like to know if it is possible to make felamimail to work with this. This could be configured placiong a simple .bat in the C:\documents and settings\username\Send to folder to make the action (ie email with egroupware) the .bat should contain a call to felamimail passing the attachment as a parameter, so the question is:
> 
> Is there any url that could be used for this, a url that calls the felamimail compose action passing one attachment?
> 
> thanks

Hi clorenzo,

just to give you a hint in the right direction.

Your mentioned URL could look like this one:

**http(s)://your.server/egroupware/index.php?menuaction=felamimail.uicompose.compose&preset[bcc]=info+alpha-zet+\<info%[40alpha-zet.de](http://40alpha-zet.de)\>&preset[subject]=AAAAAAAAAAAAAAA&preset[body]**… and so on

this is just for better reading, please keep in mind that all special chars should be url save encoded to avoid running in trouble.

For getting more information about which other variables you can use for the get request I suggest a look in **\egroupware\felamimail\inc\class.uicompose.inc.php** at function: **function compose($\_focusElement=‘to’)**

…search for the $\_REQUEST[‘preset’][‘yxz’]…

and now happy “batching”, and I wouldn’t mind if you posted your tries or maybe positiv results ;-).

regards  
Jürgen

---

<div class="post-metadata">

**Author:** ![CLorenzo-2](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/c/c67d28/32.png) [@CLorenzo-2](http://discourse.egroupware.org/u/CLorenzo-2)\
**Post date:** [November 10, 2009, 10:30am UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196/3 "2009-11-10T10:30:20Z")

</div>

Hi Jürgen

> [@](#):
>
> > [@](#):
> >
> > Hi to all.
> > 
> > In windows there is the posibility of making right click on a file and choose send to -\>
> > 
> > email or other destinations
> > 
> > I will like to know if it is possible to make felamimail to work with this. This could be configured placiong a simple .bat in the C:\documents and settings\username\Send to folder to make the action (ie email with egroupware) the .bat should contain a call to felamimail passing the attachment as a parameter, so the question is:
> > 
> > Is there any url that could be used for this, a url that calls the felamimail compose action passing one attachment?
> > 
> > thanks
> 
> Hi clorenzo,
> 
> just to give you a hint in the right direction.
> 
> Your mentioned URL could look like this one:
> 
> **http(s)://your.server/egroupware/index.php?menuaction=felamimail.uicompose.compose&preset[bcc]=info+alpha-zet+\<info%[40alpha-zet.de](http://40alpha-zet.de)\>&preset[subject]=AAAAAAAAAAAAAAA&preset[body]**… and so on
> 
> this is just for better reading, please keep in mind that all special chars should be url save encoded to avoid running in trouble.
> 
> For getting more information about which other variables you can use for the get request I suggest a look in **\egroupware\felamimail\inc\class.uicompose.inc.php** at function: **function compose($\_focusElement=‘to’)**
> 
> …search for the $\_REQUEST[‘preset’][‘yxz’]…
> 
> and now happy “batching”, and I wouldn’t mind if you posted your tries or maybe positiv results ;-).
> 
> regards  
> Jürgen

Many Thanks. I will look at this and post my results here

---

<div class="post-metadata">

**Author:** ![Leithoff\_Klaus](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@Leithoff\_Klaus](http://discourse.egroupware.org/u/Leithoff_Klaus)\
**Post date:** [November 10, 2009, 10:43am UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196/4 "2009-11-10T10:43:06Z")

</div>

note, that the upload of files via preset will not work for php/HTML  
security restrictions.  
as you cannot (or I was not able to find out how) preset the input window  
for the upload.  
(I tried about a year ago)

---

<div class="post-metadata">

**Author:** ![JDlugi](http://discourse.egroupware.org/user_avatar/discourse.egroupware.org/jdlugi/32/1324_2.png) [@JDlugi](http://discourse.egroupware.org/u/JDlugi)\
**Post date:** [November 10, 2009, 10:51am UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196/5 "2009-11-10T10:51:06Z")

</div>

…and what about using a tool like netdrive pointing for example to something /home/user/mail-attachments and give the attachment-preset the vfs location?  
(and of course make the batch file doing the job of copying to the netdrive before 😉

> [@](#):
>
> note, that the upload of files via preset will not work for php/HTML  
> security restrictions.  
> as you cannot (or I was not able to find out how) preset the input window  
> for the upload.  
> (I tried about a year ago)
> 
> ## ----------------ursprüngliche Nachricht----------------- Von: “clorenzo” [clmates@mundo-r.com](mailto:clmates@mundo-r.com) An: [egroupware-developers@lists.sourceforge.net](mailto:egroupware-developers@lists.sourceforge.net) Datum: Tue, 10 Nov 2009 02:30:21 -0800 (PST)
> 
> > Hi Jürgen
> > 
> > Jürgen Dlugi wrote:
> > 
> > > clorenzo wrote:
> > > 
> > > > Hi to all.
> > > > 
> > > > In windows there is the posibility of making right click on a file and  
> > > > choose send to -\>
> > > > 
> > > > email or other destinations
> > > > 
> > > > I will like to know if it is possible to make felamimail to work with  
> > > > this. This could be configured placiong a simple .bat in the  
> > > > C:\documents
> > 
> > > > and settings\username\Send to folder to make the action (ie email with  
> > > > egroupware) the .bat should contain a call to felamimail passing the  
> > > > attachment as a parameter, so the question is:
> > > > 
> > > > Is there any url that could be used for this, a url that calls the  
> > > > felamimail compose action passing one attachment?
> > > > 
> > > > thanks
> > > 
> > > Hi clorenzo,
> > > 
> > > just to give you a hint in the right direction.
> > > 
> > > Your mentioned URL could look like this one:
> > > 
> > > http(s)://your.server/egroupware/index.php?menuaction=felamimail.u  
> > > icompose.compose&preset[bcc]=info+alpha-zet+&  
> > > preset[subject]=AAAAAAAAAAAAAAA&preset[body]…  
> > > and so on
> > > 
> > > this is just for better reading, please keep in mind that all special  
> > > chars should be url save encoded to avoid running in trouble.
> > > 
> > > For getting more information about which other variables you can use for  
> > > the get request I suggest a look in  
> > > \egroupware\felamimail\inc\class.uicompose.inc.php at function:  
> > > function  
> > > compose($\_focusElement=‘to’)
> > > 
> > > …search for the $\_REQUEST[‘preset’][‘yxz’]…
> > > 
> > > and now happy “batching”, and I wouldn’t mind if you posted your tries or  
> > > maybe positiv results ;-).
> > > 
> > > regards  
> > > Jürgen
> > 
> > Many Thanks. I will look at this and post my results here
> > 
> > –  
> > View this message in context:  
> > [http://old.nabble.com/Integration-of-Felamimail-as-a-standard-window](http://old.nabble.com/Integration-of-Felamimail-as-a-standard-window)  
> > s-destination-tp26268111s3741p26281229.html  
> > Sent from the egroupware-developers mailing list archive at [Nabble.com](http://Nabble.com).
> > 
> > * * *
> > 
> > * * *
> > 
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> > 30-Day  
> > trial. Simplify your report design, integration and deployment - and focus  
> > on  
> > what you do best, core application coding. Discover what’s new with  
> > Crystal Reports now. [http://p.sf.net/sfu/bobj-july](http://p.sf.net/sfu/bobj-july)
> > 
> > * * *
> > 
> > eGroupWare-developers mailing list  
> > [eGroupWare-developers@lists.sourceforge.net](mailto:eGroupWare-developers@lists.sourceforge.net)  
> > [https://lists.sourceforge.net/lists/listinfo/egroupware-developers](https://lists.sourceforge.net/lists/listinfo/egroupware-developers)
> 
> –  
> Stylite GmbH  
> [open style of IT]  
> Morschheimer Strasse 15  
> 67292 Kirchheimbolanden
> 
> fon 06352 . 70629-0  
> fax 06352 . 70629-30  
> [www.stylite.de](http://www.stylite.de)
> 
> Geschäftsführer: Andre Keller, Gudrun Müller, Ralf Becker  
> Handelsregister Kaiserslautern HRB 30575  
> USt-ID: DE214280951  
> SteuerNr. 44/667/1114/3
> 
> * * *
> 
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day  
> trial. Simplify your report design, integration and deployment - and focus on  
> what you do best, core application coding. Discover what’s new with  
> Crystal Reports now. [http://p.sf.net/sfu/bobj-july](http://p.sf.net/sfu/bobj-july)
> 
> * * *
> 
> eGroupWare-developers mailing list  
> [eGroupWare-developers@lists.sourceforge.net](mailto:eGroupWare-developers@lists.sourceforge.net)  
> [https://lists.sourceforge.net/lists/listinfo/egroupware-developers](https://lists.sourceforge.net/lists/listinfo/egroupware-developers)

---

<div class="post-metadata">

**Author:** ![Leithoff\_Klaus](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@Leithoff\_Klaus](http://discourse.egroupware.org/u/Leithoff_Klaus)\
**Post date:** [November 10, 2009, 12:31pm UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196/6 "2009-11-10T12:31:11Z")

</div>

Its something the upload dialog prohibits. If you use netdrive, files  
located there are regarded that they  
are local files of yours.  
If you hand over a url, you may alter the code to read the content of the  
url pointing to, and  
dump that locally, (or find out that you already have it,) and attach it  
then.  
bofelamimail-\>addAttachment would be the place to look for, as it evaluates  
if the file is readable and in temp  
or directly with its own vfs.  
But you may as well have to fiddle with uicompose-\> compose, as the preset  
file is checked for readability

---

<div class="post-metadata">

**Author:** ![CLorenzo-2](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/c/c67d28/32.png) [@CLorenzo-2](http://discourse.egroupware.org/u/CLorenzo-2)\
**Post date:** [November 10, 2009, 1:58pm UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196/7 "2009-11-10T13:58:10Z")

</div>

Hi to both.

> [@](#):
>
> Its something the upload dialog prohibits. If you use netdrive, files  
> located there are regarded that they  
> are local files of yours.  
> If you hand over a url, you may alter the code to read the content of the  
> url pointing to, and  
> dump that locally, (or find out that you already have it,) and attach it  
> then.  
> bofelamimail-\>addAttachment would be the place to look for, as it evaluates  
> if the file is readable and in temp  
> or directly with its own vfs.  
> But you may as well have to fiddle with uicompose-\> compose, as the preset  
> file is checked for readability

Well at this point I’m lost 🙂

Just one question, What is the difference into passing the file to upload using the windows form (when composing a new mail) or to pass the path as a url parameter?

both situations pass a local file to the function that really attach the file to the email (or pass the path to this file), or does the form transform the file or uuencode it, or something?

The idea of this is that this should be used with files anywhere in your computer, and not in vfs as the end user wants to be in a document, or be in a folder and select and send the file directly

Thanks

---

<div class="post-metadata">

**Author:** ![Leithoff\_Klaus](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@Leithoff\_Klaus](http://discourse.egroupware.org/u/Leithoff_Klaus)\
**Post date:** [November 10, 2009, 2:23pm UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196/8 "2009-11-10T14:23:46Z")

</div>

The idea is clear. No question about that.  
The difference is security. It is build in in the upload dialog of HTML.  
If you sit in front of your computer, and click to select the files, it is  
made sure, thatyou see what yolu do.  
If you where able to upload files by script, any bad script could use it to  
upload files to whatever location,  
without you knowing it.

---

<div class="post-metadata">

**Author:** ![CLorenzo-2](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/c/c67d28/32.png) [@CLorenzo-2](http://discourse.egroupware.org/u/CLorenzo-2)\
**Post date:** [November 10, 2009, 2:44pm UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196/9 "2009-11-10T14:44:39Z")

</div>

Hi Klaus.

> [@](#):
>
> The idea is clear. No question about that.  
> The difference is security. It is build in in the upload dialog of HTML.  
> If you sit in front of your computer, and click to select the files, it is  
> made sure, thatyou see what yolu do.  
> If you where able to upload files by script, any bad script could use it to  
> upload files to whatever location,  
> without you knowing it.

Ok, I understood, but if this upload by script is limited to upload to the compose window without the possibility to specify the TO or CC or BCC , so is not possible to code a malicious script without the user be presented with the compose form with the attachment and the subject populated, but waiting for a TO to be entered and a send to be clicked

This will give back security to this method

---

<div class="post-metadata">

**Author:** ![Leithoff\_Klaus](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@Leithoff\_Klaus](http://discourse.egroupware.org/u/Leithoff_Klaus)\
**Post date:** [November 10, 2009, 3:18pm UTC](http://discourse.egroupware.org/t/integration-of-felamimail-as-a-standard-windows-destination/35196/10 "2009-11-10T15:18:56Z")

</div>

The restriction is build into the HTML upload Dialog. There is no other way  
known to me to bring a local file  
on a users computer into the reach of the webserver running at another  
location.  
If you are able to build your own upload dialog, thats fine for you.  
If you find a way. go ahead.
