Re: Can TB move a file, and send a link to it?
Roelof Otten <[email protected]> Tue, 15 Apr 2008 16:41:42 +0200
| Newsgroups | gmane.mail.the-bat.devel |
|---|---|
| Organization | E-mailaholics International |
| Message-ID | <[email protected]> |
--===============0003638434== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="----------1271AF1882D88448F" ------------1271AF1882D88448F Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable Hallo Brian, On Mon, 14 Apr 2008 15:14:18 -0700GMT (15-4-2008, 0:14 +0200, where I live), you wrote: BA> I have tried this filter: Sorting Office> Outgoing mail > Export BA> Message To File > C:\BAT\move.bat with a template: BA> copy "C:\BAT\XX\%Attachments" BA> "C:\BAT\Sent" Those two should have been on one line in order to work. BTW Are sending your messages as HTML or test only? HTML might cause this to go awry. BA> But, the files never moved, so I just left the template as: del BA> "C:\BAT\TA\%Attachments" BA> which worked successfully. BA> Would the filter template look something like this, in move.bat? BA> =20 BA> %SetPattRegExp=3D'C:\\BAT\\XX\\(.*?)~~(.*?)\.txt'%- BA> %SetHeader(To,%SubPatt=3D'1')%- BA> copy "C:\BAT\XX\%SubPatt=3D'1'~~(.*?)" BA> "C:\BAT\Sent\%SubPatt=3D'1'\" BA> del "C:\BAT\XX\%SubPatt=3D'1'~~(.*?)" No, you're thinking too complicated (and besides your regular expression wouldn't work either). It's a filter that's being triggered by your outgoing message and we've extracted the necessary information before sending that message, that's why I placed the file name in the Subject header. Change it to this: Copy C:\BAT\XX\%ToAddr~~%Subject C:\BAT\XX\%ToAddr\%Subject Del C:\BAT\XX\%ToAddr~~%Subject --=20 Groetjes, Roelof And those who lack the courage say it's dangerous to try. http://www.voormijalleen.nl/ The Bat! 4.0.20.2 Windows Vista 6.0 Build 6000=20 3 pop3 accounts OTFE enabled P4 3GHz 2 GB RAM ------------1271AF1882D88448F-- --===============0003638434== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline