Filtering mail in which the trigger is text containing alternating spaces
Colleagues
I receive spam from a company called SONIC Media. They cleverly place spaces between each character in the email, e.g., "S O N I C" so that one can't filter on "SONIC". Is there any means to filter on text that contains spaces?
Dennis
Try placing the text in quotes. However, it may be easier to filter on the sender's email address. That way you can block the entire domain which is then independent of whatever text is used in the message subject or body.
Similar Messages
-
If a user's LDAP
"icsCalendar" value
contains a whitespace, the user will still be able to log in to the iPlanet
Calendar Server(iCS). However, the user will receive a bad request
error when creating events or tasks. The event or task is created,
but the error will occur every time the user tries to save one.
The "icsCalendar"
preference cannot have a space in it. To avoid the above problem,
the administrator must fix this value in LDAP.Hi Mahendra,
check the following links:
http://www.sapgenie.com/saptech/lsmw.htm
http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
May be u can find some help.
Hope this helps you.
Regards,
Anuradha.B -
How can 1 send a mail in which the content is an image file, by JavaMail?
I want to send a mail which has content of a gif file. I don't want an attachment. It seems that the content type "image/gif" is not supported.
Many thanksu can do the following
the solution is on implementing the DataSource class and overwrite getInputStream method
see the following code:
public static void setGifContent(Message msg) throws MessagingException {
FileInputStream s;
try {
s = new FileInputStream("c:\\try.gif");
byte b[];
b = new byte[s.available()];
s.read(b);
System.out.println("byte size"+b.length);
String x=new String(b);
ByteArrayInputStream b1=new ByteArrayInputStream(b);
// gif DataSource is an inner class
msg.setDataHandler(new DataHandler(new GIFDataSource(b)));
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
static class GIFDataSource implements DataSource {
private byte b[];
public GIFDataSource(byte[] stream) {
this.b=stream;
// Return image stream in an InputStream.
// A new stream must be returned each time.
public InputStream getInputStream() throws IOException {
if (html == null) throw new IOException("Null HTML");
ByteArrayInputStream b1=new ByteArrayInputStream(b);
return b1;
public OutputStream getOutputStream() throws IOException {
throw new IOException("This DataHandler cannot write HTML");
public String getContentType() {
return "image/gif";
public String getName() {
Message was edited by:
[email protected] -
Af:inputText problem : how to display text containing blank spaces
Hi,
I have a inputText in af:table with clickToEdit mode, when I commit a value from input text
for e.g
"This is______________ a ________text with_________lot________of_______blank spaces"
(_ undescore represents spaces)
it get saved perfectly fine to db, but when I am in display mode , it removes all spaces leaving one space
"This is a text with lot of blank spaces"
seems like problem is with while displaying, component is not rendering more than one blank spaces
Message was edited by:
user626222Hi Frank,
Thanks for your response,
I am using inputText in af:table with editingMode="clickToEdit"
so, when its in edit mode, it deplays the correct value as its saved in db
as soon as you come back to view mode , it eliminates extra spaces replaces with one space
Thank you -
How to get the table name in the trigger definition without hard coding.
CREATE TRIGGER db.mytablename
AFTER UPDATE,INSERT
AS
INSERT INTO table1(col1)
SELECT InsRec.col1
FROM
INSERTED Ins
--Below i am calling one sp for which i have to pass the table name
EXEC myspname 'tablename'
In the above trigger,presently i am hard coding the tablename
but is it possible to get the table name dynamically on which the trigger is defined in order to avoid hard coding the table nameI really liked your audit table concept. You inspired me to modify it so that, the entire recordset gets captured and added a couple of other fields. Wanted to share my end result.
USE [YourDB]
GO
/****** Object: Trigger [dbo].[iudt_AutoAuditChanges] Script Date: 10/18/2013 12:49:55 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[iudt_AutoAuditChanges]
ON [dbo].[YourTable]
AFTER INSERT,DELETE,UPDATE
AS
BEGIN
SET NOCOUNT ON;
Declare @v_AuditID bigint
IF OBJECT_ID('dbo.AutoAudit','U') IS NULL BEGIN
CREATE TABLE [dbo].[AutoAudit]
( [AuditID] bigint identity,
[AuditDate] DateTime,
[AuditUserName] varchar(128),
[TableName] varchar(128) NULL,
[OldContent] XML NULL,
[NewContent] XML NULL
ALTER TABLE dbo.AutoAudit ADD CONSTRAINT
PK_AutoAudit PRIMARY KEY CLUSTERED
[AuditID]
) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
CREATE NONCLUSTERED INDEX [idx_AutoAudit_TableName_AuditDate] ON [dbo].[AutoAudit]
( [TableName] ASC,
[AuditDate] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
END
Select * Into #AuditDeleted from deleted
Select * Into #AuditInserted from inserted
While (Select COUNT(*) from #AuditDeleted) > 0 OR (Select COUNT(*) from #AuditInserted) > 0
Begin
INSERT INTO [dbo].[AutoAudit]
( [AuditDate], [AuditUserName], [TableName], [OldContent], [NewContent])
SELECT
GETDATE(),
SUSER_NAME(),
[TableName]=object_name([parent_obj]),
[OldContent]=CAST((SELECT TOP 1 * FROM #AuditDeleted D FOR XML RAW) AS XML),
[NewContent]=CAST((SELECT TOP 1 * FROM #AuditInserted I FOR XML RAW) AS XML)
FROM sysobjects
WHERE
[xtype] = 'tr'
and [name] = OBJECT_NAME(@@PROCID)
Set @v_AuditID = SCOPE_IDENTITY()
Delete from AutoAudit
Where AuditID = @v_AuditID
AND Convert(varchar(max),oldContent) = Convert(varchar(max),NewContent)
Delete top(1) from #AuditDeleted
Delete top(1) from #AuditInserted
End
END -
Team,
I'm trying to print a PO and some of the text are supposed to be underlined, but aren't
On change mode, I get the message below:
Text contains formatting -> SAPscript editor
Message no. MEPO089
Diagnosis
The text contains formattings that cannot be represented using the continuous text editor.
Procedure
To edit the text, invoke the SAPscript editor or the line editor.
I will appreciate your feedback on how to edit the text formatting.
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Jun 17, 2009 1:18 PMOn the change mode, go to item text , double click on the text space, and go to change editor to edit the text
-
"row text contains" search on IR slow
I have IR reports that can potentialy return lots of rows. The IR usually returns in < 1 second. I am seeing major performance issues if the user enters some text in the search bar (which add the fiter "row text contains" to IR). This is making the IR take over 20 minutes to return in some instances (depending on previous filters chosen). I know I can disable the search in the IR properties, but
I was wondering if anyone seen issues with this and if so what did you do to rectify?
ThanksMy DBA has, but I do not think his suggestion is valid. He mentions this is do to an index on 3 text fields that contain (last_name,forst_name,id) and I should remove histograms for that column. tried that and it still takes just as long:
execution plan
| Id | Operation | Name | E-Rows |E-Bytes| Cost (%CPU)| E-Time | OMem | 1Mem | Used-Mem | Used-Tmp|
| 0 | SELECT STATEMENT | | | | 3262 (100)| | | | | |
| 1 | WINDOW SORT | | 63 | 28791 | 3262 (1)| 00:00:40 | 4096 | 4096 | 4096 (0)| |
|* 2 | COUNT STOPKEY | | | | | | | | | |
|* 3 | FILTER | | | | | | | | | |
|* 4 | HASH JOIN OUTER | | 63 | 28791 | 3262 (1)| 00:00:40 | 221M| 7439K| 202M (1)| 38912 |
| 5 | NESTED LOOPS OUTER | | 63 | 26523 | 3204 (1)| 00:00:39 | | | | |
| 6 | NESTED LOOPS OUTER | | 63 | 24192 | 3197 (1)| 00:00:39 | | | | |
| 7 | NESTED LOOPS | | 63 | 21861 | 3194 (1)| 00:00:39 | | | | |
| 8 | NESTED LOOPS | | 61 | 14640 | 96 (0)| 00:00:02 | | | | |
|* 9 | HASH JOIN OUTER | | 11 | 1551 | 9 (12)| 00:00:01 | 12M| 2004K| 16M (0)| |
| 10 | TABLE ACCESS BY INDEX ROWID| STU_BASE | 11 | 1155 | 6 (0)| 00:00:01 | | | | |
|* 11 | INDEX RANGE SCAN | STU_BASE_I2 | 1 <<<<<<<############################ THIS IS PART/ALL OF THE PROBLEM
| 12 | TABLE ACCESS FULL | ETHNIC | 8 | 288 | 2 (0)| 00:00:01 | | | | |
| 13 | TABLE ACCESS BY INDEX ROWID | STU_YEAR | 6 | 594 | 8 (0)| 00:00:01 | | | | |
|* 14 | INDEX RANGE SCAN | STU_YEAR_I | 6 | | 2 (0)| 00:00:01 | | | | |
| 15 | INLIST ITERATOR | | | | | | | | | |
| 16 | TABLE ACCESS BY INDEX ROWID | STU_SCHOOL | 1 | 107 | 51 (0)| 00:00:01 | | | | |
|* 17 | INDEX UNIQUE SCAN | STU_SCHOOL_I | 1 | | 49 (0)| 00:00:01 | | | | |
| 18 | TABLE ACCESS BY INDEX ROWID | SPECIAL_ED | 1 | 37 | 1 (0)| 00:00:01 | | | | |
|* 19 | INDEX UNIQUE SCAN | PK_SPECIAL_ED | 1 | | 0 (0)| | | | | |
| 20 | TABLE ACCESS BY INDEX ROWID | HOMEROOM | 1 | 37 | 1 (0)| 00:00:01 | | | | |
|* 21 | INDEX UNIQUE SCAN | PK_HOMEROOM | 1 | | 0 (0)| | | | | |
| 22 | TABLE ACCESS FULL | GRADE_LEVEL | 14199 | 499K| 57 (0)| 00:00:01 | | | | |
and the execution plan at line: 11 is using the index: STU_BASE_I2
and that index is
CREATE INDEX "SIS_EXPRESS"."STU_BASE_I2" ON "SIS_EXPRESS"."STU_BASE" ("LAST_NAME", "FIRST_NAME", "STUDENT_ID")
you did a "wildcard" search for these columns, but the execution plan says
it is expecting 1 row, this is due to the histograms.
The bind variables show
:APXWS_EXPR_1 "%" >>>lastname
:APXWS_EXPR_2 "%" >>>firstname
:APXWS_EXPR_3 "%" >>>studentid
Try removing the histograms on columns last_name, first_name, and student_id of the stu_base table. -
Export to text removes trailing spaces in XI R2
I've found an article that talks about the problem of the export to text removing trailing spaces, but the article mentions that this is fixed in Crystal Reports XI with a newer version of u2ftext.dll to version 11.0.0.941.
[1218375 - Trailing spaces ignored when exporting to Text format|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333333373335%7D.do]
I'm using Crystal Reports XI R2 and my u2ftext.dll version is already 11.5.11.1470.
I'm I missing something or is there another solution to the issue in XI R2?
Thanks,
Jeff2 Years, multiple people are asking this question.......Does anyone in support have a response for keeping the trailing spaces intact during export?
-
How to process a text file (mail attachment) using the sender mail adapter?
Hi guys,
Is it possible to process mail attachments using the sender mail adapter? Let's say I have a structured text file (attachment) which needs to be mapped and sent to target system.
Post please any thoughts or experience.
Thanks,
OlianHi Olian,
Have a look at these helpful links -
1. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05&overridelayout=true
2. http://www.riyaz.net/blog/xipi-configuring-the-sender-mail-adapter/
3. http://help.sap.com/saphelp_nw70/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
Regards,
Sunil Chandra -
HTML emails render as plain text. Restarting Mail.app resolves the issue
I keep seeing this problem every day. Occasionally when I receive an HTML email (e.g. a newsletter), the HTML isn't rendered -- instead some sort of plain text equivalent is displayed, which is full of entity codes and URLs to all the images in the HTML. Clearly not right.
If I restart Mail.app when this occurs, the HTML email is ALWAYS rendered correctly. It's really annoying having to do this every day!
It seems like it could be to do with leaving Mail.app running when my Mac is in Sleep mode -- the issue always seems to occur when I wake the Mac. When I have restarted Mail.app after the issue occurs, all incoming HTML emails are rendered correctly.
Has anyone else seen this issue and do you know of a workaround? How do I submit a bug to Apple?
Cheers,
OllyHi again:
The preference file is located in the home folder (~library>preferences). Occasionally (rare, but it happens) preference files become corrupted and then cause all sorts of odd behavior.
Barry -
Can i know the user exits which should trigger while saving billing docu
hi,
please can u help me to find out user exits which should trigger while saving billing documents.A couple years ago I downloaded this program, I think from SAPFANS. I don't take any credit for it...Not sure who originally wrote it. Just type in the t-code and hit execute.
*& Report name : Identify and Drill-Down to SAP User Exits. *
*& Program name : ZZ_FIND_USER_EXITS *
REPORT ZZ_FIND_USER_EXITS
NO STANDARD PAGE HEADING
LINE-SIZE 132
LINE-COUNT 65
MESSAGE-ID MM.
D A T A D E F I N I T I O N *
TABLES : TSTC, " SAP Transaction Codes
TADIR, " Directory of Repository Objects
MODSAPT, " SAP Enhancements - Short Texts
MODACT, " Modifications
TRDIR, " System Table TRDIR
TFDIR, " Function Module
ENLFDIR, " Additional Attributes for Function Modules
TSTCT. " Transaction Code Texts
S E L E C T I O N S C R E E N *
PARAMETERS : P_TCODE LIKE TSTC-TCODE OBLIGATORY.
I N T E R N A L S T R U C T U R E S & T A B L E S *
DATA : GT_TADIR LIKE TADIR OCCURS 0 WITH HEADER LINE.
V A R I A B L E S *
DATA :
GV_FIELD1(30) TYPE C,
GV_DEVCLASS LIKE TADIR-DEVCLASS.
C O N S T A N T S *
CONSTANTS:
GC_F LIKE TRDIR-SUBC VALUE 'F',
GC_R3TR LIKE TADIR-PGMID VALUE 'R3TR',
GC_FUGR LIKE TADIR-OBJECT VALUE 'FUGR',
GC_SMOD LIKE TADIR-OBJECT VALUE 'SMOD',
GC_PROG LIKE TADIR-OBJECT VALUE 'PROG'.
R A N G E S *
RANGES:
GR_VKORK FOR WKBP-VKORG.
E V E N T P R O C E S S I N G *
INITIALIZATION.
AT SELECTION-SCREEN.
SELECT SINGLE PGMNA
INTO TSTC-PGMNA
FROM TSTC
WHERE TCODE = P_TCODE.
IF SY-SUBRC <> 0.
MESSAGE E899(MM)
WITH TEXT-E01 " Input Transaction Code is Invalid.
TEXT-E02. " Please Correct !!
ENDIF.
SELECT SINGLE TTEXT
INTO TSTCT-TTEXT
FROM TSTCT
WHERE SPRSL = SY-LANGU
AND TCODE = P_TCODE.
START-OF-SELECTION.
CLEAR GV_DEVCLASS.
SELECT SINGLE DEVCLASS
INTO GV_DEVCLASS
FROM TADIR
WHERE PGMID = GC_R3TR
AND OBJECT = GC_PROG
AND OBJ_NAME = TSTC-PGMNA.
IF SY-SUBRC <> 0.
SELECT SINGLE SUBC
INTO TRDIR-SUBC
FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC = GC_F. " Function Group
SELECT SINGLE FUNCNAME
INTO TFDIR-FUNCNAME
FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE AREA
INTO ENLFDIR-AREA
FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
CLEAR GV_DEVCLASS.
SELECT SINGLE DEVCLASS
INTO GV_DEVCLASS
FROM TADIR
WHERE PGMID = GC_R3TR
AND OBJECT = GC_FUGR
AND OBJ_NAME = ENLFDIR-AREA.
ENDIF.
ENDIF.
SELECT *
FROM TADIR
INTO TABLE GT_TADIR
WHERE PGMID = GC_R3TR
AND OBJECT = GC_SMOD
AND DEVCLASS = GV_DEVCLASS.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(36) TSTCT-TTEXT.
SKIP.
IF NOT GT_TADIR[] IS INITIAL.
WRITE:/(95) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Exit Name',
21 SY-VLINE ,
24 'Description',
95 SY-VLINE.
WRITE:/(95) SY-ULINE.
SORT GT_TADIR BY OBJ_NAME.
LOOP AT GT_TADIR.
SELECT SINGLE MODTEXT
INTO MODSAPT-MODTEXT
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = GT_TADIR-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/01 SY-VLINE,
02 GT_TADIR-OBJ_NAME HOTSPOT ON,
21 SY-VLINE,
22 MODSAPT-MODTEXT,
95 SY-VLINE.
ENDLOOP.
WRITE:/(95) SY-ULINE.
DESCRIBE TABLE GT_TADIR.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , SY-TFILL.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
AT LINE-SELECTION.
GET CURSOR FIELD GV_FIELD1.
IF GV_FIELD1(8) = 'GT_TADIR'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
ELSE.
MESSAGE I899(MM)
WITH TEXT-I01 " Click on the Exit Name to Drill-Down
TEXT-I02. " to SAP Enhancement Information.
ENDIF.
END-OF-SELECTION.
TOP-OF-PAGE.
S U B R O U T I N E S *
E N D O F R E P O R T **************************************** -
On my iPad I can see in mail only the headlines of the mails but not the text - why?
On my iPad I can see in mail only the headlines of the mails but not the text - why?
Try closing the Mail app completely and see if the text shows when you re-open the Mail app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
If that doesn't work then also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot -
When replying to a message in Apple Mail it does not use the address to which the original was sent
I use Apple Mail with Mountain Lion (10.8.2). When I reply to an email it does not, as it used to do, use the email address to which the email was sent. Nor does it use my nominated email address fro creating emails. (It simply selects the first address in my account list (iCloud) and I am unable to change the list order and in any case this is not a solution.)
I cannot find a setting to have replies sent from the address I received it in.
BruceHere we go. The problem is how the sender replied to a message then sent to you. He/she inserted the reply above the quoted text, and added a sig delimiter '-- '.
When you reply to the message you received, TB treats everything below the sig delimiter as signature, and cuts it off. This is the intended behavior.
http://email.about.com/od/emailsignaturenetiquette/qt/Use_the_Standard_Email_Signature_Delimiter.htm
So ideally the reply should be inserted below the quoted text. Since this is beyond your control, use 'Forward' instead of 'Reply' as a workaround.
You'll then need to add the recipients manually in the 'To' field. -
We have an itunes account on our desktop and both my kids have it on iphone and ipod. I went in and changed out user name from an old e-mail address which is no longer accessible to my one I use now... When the kids try to sign onto the itunes store it tells them they have the wrong user name..
Can this be fixed??Did you change the email address or create a new Apple ID?
If the email address associated with the account was merely changed, sign out of the Apple ID on the devices and sign in using the new credentials. -
The e mail address which is in the setting of my I tune store does not show up when I install apps or update them it shows a different email address how can I delete the e mail which shows up while updating apps & switch to the one already in my settings
All apps include DRM protection that is tied to the Apple ID that was used to download the apps.
This means the apps that need an update were downloaded with the Apple ID you are being prompted for.
Maybe you are looking for
-
Lion 10.7.4 -iphoto, safari and mail won't open
I just bought four iMacs for my school. Two of them won't open the mail, iphoto or safari. I have spent quite a bit of time with the Apple rep, but at this point, he has run out of ideas. I have reinstalled Lion - not a clean install, but hate the th
-
Question about Dynamic Overclocking - Need help/advice
Hello, I recently upgraded to version 3.9 bios on my MB (K8N SLI paltinum). I had DOT enabled before the upgrade, on 9% extra. this worked ok. as soon as a program required heavy CPU, DOT kicked in and give me a 9% boost. and it also cooled off, back
-
the VirtualizingObservableCollection does the following: Implements the same interfaces and methods as ObservableCollection<T> so you can use it anywhere you'd use an ObservableCollection<T> – no need to change any of your existing controls. Supports
-
I have a requirement where there are two entities in a master detail relationship (A and B respectively linked through entity association) EO A has a field called TotalQuantity (master) EO B has a field called Split Quantity (detail) The total quanti
-
Freezing at "Login Window starting"
Hello, my PB won't get past login screen. It freezes specifically when it says "Login Windows starting". Apple Hardware Test comes out fine but I can't repair using Disk Utility (the disk or permissions). Haven't tried Disk Warrior yet. I've tried st