Forum

Share

Please consider registering
guest

Log In RegisterMembers
Or log in with

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
@AUTHOR@ parameter returned empty
January 21, 2011
9:17 am
Sam
Guest

I was wondering if you had any idea why the @AUTHOR@ parameter would be returned empty.  I checked the other parameters, and they return properly.  I am using Thunderbird 3.1.7.

Sam

Share
January 25, 2011
9:24 am
Admin
Forum Posts: 323
Member Since:
July 12, 2008
Offline

I'm not sure why this is giving you trouble. Perhaps commas or quotes in the real author are interfering somehow with the string? The author field could look like:

"Kent James" <kent@caspia.com>

for example.

This also might be system dependent. Are you running Windows? If so, if you sent me an email from you (to kent@caspia.com) , that you also try to process yourself with a Run File filter action, then perhaps I could test precisely what you are doing. But as a warning, I may not get to it right away, as this is always pain for me to test as I have to setup an external program to run.

rkent

Share
January 25, 2011
1:15 pm
Sam
Guest

Thanks for looking into this issue.  I will also send this text in an email message.

For an external testing program, I've been using a batch file with 'mkdir c:\temp\XX_%1' as the contents.

 

Interestingly I did modify your example Javascript action which did properly extract the author:

for (let index = 0; index < msgHdrs.length; index++)
{
  let hdr = msgHdrs.queryElementAt(index, Ci.nsIMsgDBHdr);
  hdr.subject = "_"+ hdr.author;
}

Sam

Share
Forum Timezone: UTC -8

Most Users Ever Online: 18

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

bobkatz: 8

BigMike: 8

t2m: 7

zabolyx: 7

taa: 6

onlyme: 6

Member Stats:

Guest Posters: 130

Members: 565

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 7

Topics: 231

Posts: 802

Moderators: rkent (323)

Administrators: rkent (323)